From 016115ce29cfe3bf77d62328230ea0e5227d1f02 Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Tue, 3 Jun 2014 22:23:03 +0200 Subject: [PATCH] [omap] implement sys_time_usleep --- sw/airborne/arch/omap/mcu_periph/sys_time_arch.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sw/airborne/arch/omap/mcu_periph/sys_time_arch.h b/sw/airborne/arch/omap/mcu_periph/sys_time_arch.h index 07e40feee4..72f3cbb2f4 100644 --- a/sw/airborne/arch/omap/mcu_periph/sys_time_arch.h +++ b/sw/airborne/arch/omap/mcu_periph/sys_time_arch.h @@ -29,6 +29,7 @@ #define SYS_TIME_ARCH_H #include "std.h" +#include extern void sys_tick_handler(int signum); @@ -51,6 +52,8 @@ static inline uint32_t get_sys_time_msec(void) { msec_of_cpu_ticks(sys_time.nb_sec_rem); } -static inline void sys_time_usleep(uint32_t us __attribute__ ((unused))) {} +static inline void sys_time_usleep(uint32_t us) { + usleep(us); +} #endif /* SYS_TIME_ARCH_H */