Task-Driven, powersaving trial written, must test.
This commit is contained in:
21
include/mainEventLoop.hpp
Normal file
21
include/mainEventLoop.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef BM_EVENTS_H
|
||||
#define BM_EVENTS_H
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/queue.h"
|
||||
|
||||
// Event Types
|
||||
typedef enum {
|
||||
EVENT_CLEAR_CALIB,
|
||||
EVENT_SAVE_POS,
|
||||
EVENT_REQUEST_POS
|
||||
} main_event_type_t;
|
||||
|
||||
void mainEventLoop();
|
||||
|
||||
extern QueueHandle_t main_event_queue;
|
||||
|
||||
void wakeTimer(void* pvParameters);
|
||||
|
||||
extern TaskHandle_t wakeTaskHandle;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user