diff options
Diffstat (limited to 'tests/unit/stubs/freertos/FreeRTOS.h')
| -rw-r--r-- | tests/unit/stubs/freertos/FreeRTOS.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/stubs/freertos/FreeRTOS.h b/tests/unit/stubs/freertos/FreeRTOS.h index 2d2b967..fc38846 100644 --- a/tests/unit/stubs/freertos/FreeRTOS.h +++ b/tests/unit/stubs/freertos/FreeRTOS.h | |||
| @@ -3,11 +3,17 @@ | |||
| 3 | 3 | ||
| 4 | #include <stdint.h> | 4 | #include <stdint.h> |
| 5 | 5 | ||
| 6 | typedef int32_t BaseType_t; | ||
| 7 | typedef uint32_t UBaseType_t; | ||
| 8 | typedef uint32_t TickType_t; | ||
| 9 | |||
| 6 | static inline uint32_t xTaskGetTickCount(void) { return 0; } | 10 | static inline uint32_t xTaskGetTickCount(void) { return 0; } |
| 7 | static inline void vTaskDelay(uint32_t ticks) { (void)ticks; } | 11 | static inline void vTaskDelay(uint32_t ticks) { (void)ticks; } |
| 8 | #define pdMS_TO_TICKS(ms) ((ms) / 10) | 12 | #define pdMS_TO_TICKS(ms) ((ms) / 10) |
| 9 | #define portTICK_PERIOD_MS 10 | 13 | #define portTICK_PERIOD_MS 10 |
| 14 | #define configTICK_RATE_HZ 100 | ||
| 10 | #define portMAX_DELAY 0xFFFFFFFF | 15 | #define portMAX_DELAY 0xFFFFFFFF |
| 11 | #define pdTRUE 1 | 16 | #define pdTRUE 1 |
| 17 | #define pdFALSE 0 | ||
| 12 | 18 | ||
| 13 | #endif | 19 | #endif |