summaryrefslogtreecommitdiff
path: root/nuttx/arch/rgmp
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-07 13:42:47 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-07 13:42:47 -0600
commitc1603e96719150625a8f53748703dd83e9681ede (patch)
treeda40cc56c6fb975108cf3c607f183aaa129cb6f9 /nuttx/arch/rgmp
parent391b1d290aaedcb048c1c97d905f9ae9e9af0795 (diff)
downloadnuttx-c1603e96719150625a8f53748703dd83e9681ede.tar.gz
nuttx-c1603e96719150625a8f53748703dd83e9681ede.tar.bz2
nuttx-c1603e96719150625a8f53748703dd83e9681ede.zip
Change CONFIG_MSEC_PER_TICK to CONFIG_USEC_PER_TICK. This gives more options for system timers in general, but more importantly, let's us realize higher resolution for the case of CONFIG_SCHED_TICKLESS=y -- of course, at the risk of some new interger overvflow problems
Diffstat (limited to 'nuttx/arch/rgmp')
-rw-r--r--nuttx/arch/rgmp/src/rgmp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/arch/rgmp/src/rgmp.c b/nuttx/arch/rgmp/src/rgmp.c
index 495c5e05c..652e11cca 100644
--- a/nuttx/arch/rgmp/src/rgmp.c
+++ b/nuttx/arch/rgmp/src/rgmp.c
@@ -46,6 +46,8 @@
#include <nuttx/arch.h>
#include <nuttx/sched.h>
#include <nuttx/kmalloc.h>
+#include <nuttx/clock.h>
+
#include <semaphore.h>
#include <queue.h>
#include <stdlib.h>
@@ -55,8 +57,8 @@
int nest_irq = 0;
// the default time is 10ms
-#ifdef CONFIG_MSEC_PER_TICK
-const unsigned int rtos_tick_time = CONFIG_MSEC_PER_TICK;
+#ifdef MSEC_PER_TICK
+const unsigned int rtos_tick_time = MSEC_PER_TICK;
#else
const unsigned int rtos_tick_time = 10;
#endif