1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#![no_std]
#![allow(non_camel_case_types)]
extern "C" {
pub fn xTaskGetTickCountFromISR() -> TickType_t;
pub fn xTaskGetTickCount() -> TickType_t;
pub fn xTaskGetCurrentTaskHandle() -> TaskHandle_t;
pub fn vTaskResume(xTaskToResume: TaskHandle_t);
pub fn vTaskSuspend(xTaskToSuspend: TaskHandle_t);
pub fn vTaskDelayUntil(pxPreviousWakeTime: *mut TickType_t, xTimeIncrement: TickType_t);
pub fn xTaskDelayUntil(
pxPreviousWakeTime: *mut TickType_t,
xTimeIncrement: TickType_t,
) -> BaseType_t;
pub fn vTaskDelay(xTicksToDelay: TickType_t);
}
pub type BaseType_t = i32;
pub type TickType_t = u32;
pub type TaskHandle_t = *mut core::ffi::c_void;