upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/unit/stubs/freertos/FreeRTOS.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/stubs/freertos/FreeRTOS.h')
-rw-r--r--tests/unit/stubs/freertos/FreeRTOS.h6
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
6typedef int32_t BaseType_t;
7typedef uint32_t UBaseType_t;
8typedef uint32_t TickType_t;
9
6static inline uint32_t xTaskGetTickCount(void) { return 0; } 10static inline uint32_t xTaskGetTickCount(void) { return 0; }
7static inline void vTaskDelay(uint32_t ticks) { (void)ticks; } 11static 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