diff options
Diffstat (limited to 'tests/unit/stubs/freertos/timers.h')
| -rw-r--r-- | tests/unit/stubs/freertos/timers.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/unit/stubs/freertos/timers.h b/tests/unit/stubs/freertos/timers.h new file mode 100644 index 0000000..7575807 --- /dev/null +++ b/tests/unit/stubs/freertos/timers.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef STUBS_FREERTOS_TIMERS_H | ||
| 2 | #define STUBS_FREERTOS_TIMERS_H | ||
| 3 | |||
| 4 | #include <stdint.h> | ||
| 5 | |||
| 6 | typedef void *TimerHandle_t; | ||
| 7 | |||
| 8 | static inline TimerHandle_t xTimerCreate(const char *n, uint32_t pd, int ux, void *id, void *cb) { | ||
| 9 | (void)n; (void)pd; (void)ux; (void)id; (void)cb; return (TimerHandle_t)1; | ||
| 10 | } | ||
| 11 | static inline int xTimerStart(TimerHandle_t t, uint32_t blk) { (void)t; (void)blk; return 1; } | ||
| 12 | static inline int xTimerStop(TimerHandle_t t, uint32_t blk) { (void)t; (void)blk; return 1; } | ||
| 13 | static inline void xTimerDelete(TimerHandle_t t, uint32_t blk) { (void)t; (void)blk; } | ||
| 14 | |||
| 15 | #endif | ||