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 */