rtos.h 725 Bytes
Newer Older
Jacob Priddy's avatar
Jacob Priddy committed
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
#ifndef DOOR_CONTROLLER_MAIN_INCLUDE_CONNECTORS_RTOS_H_
#define DOOR_CONTROLLER_MAIN_INCLUDE_CONNECTORS_RTOS_H_

#include <stdbool.h>
#include <stdint.h>

#define BIT1     0x00000002
#define BIT0     0x00000001

void door_rtos_initialize(void);

//void door_rtos_destroy(void);

void door_rtos_wait_forever_for_event(unsigned identifier);

void door_rtos_set_event(unsigned identifier);

bool door_rtos_get_event(unsigned identifier);

void door_rtos_clear_event(unsigned identifier);

void door_rtos_kill_current_task(void);

void door_rtos_task_delay(uint32_t ms);

void door_rtos_restart(void);

bool door_rtos_wait_ms_for_event(unsigned identifier, uint32_t ms);

#endif //DOOR_CONTROLLER_MAIN_INCLUDE_CONNECTORS_RTOS_H_