From c1603e96719150625a8f53748703dd83e9681ede Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 7 Aug 2014 13:42:47 -0600 Subject: 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 --- nuttx/arch/rgmp/src/rgmp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nuttx/arch/rgmp') 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 #include #include +#include + #include #include #include @@ -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 -- cgit v1.2.3