diff options
Diffstat (limited to 'nuttx/arch/rgmp/src/rgmp.c')
-rw-r--r-- | nuttx/arch/rgmp/src/rgmp.c | 6 |
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 |