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
blob: 696da87d9d5c6eb37ad43d53b85510c7996857bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef STUBS_FREERTOS_FREERTOS_H
#define STUBS_FREERTOS_FREERTOS_H

#include <stdint.h>

static inline uint32_t xTaskGetTickCount(void) { return 0; }
static inline void vTaskDelay(uint32_t ticks) { (void)ticks; }
#define pdMS_TO_TICKS(ms) ((ms) / 10)
#define portTICK_PERIOD_MS 10
#define portMAX_DELAY 0xFFFFFFFF

#endif