Task-Driven, powersaving trial written, must test.

This commit is contained in:
2026-01-11 19:02:14 -06:00
parent 27a5e27972
commit 45fa356d66
18 changed files with 550 additions and 198 deletions

21
include/mainEventLoop.hpp Normal file
View 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