22 lines
556 B
C
22 lines
556 B
C
// components/controller/app_task.h
|
|
#pragma once
|
|
|
|
#include <freertos/FreeRTOS.h>
|
|
#include <freertos/queue.h>
|
|
#include "hal/led_stub.h"
|
|
#include "hal/switch_stub.h"
|
|
|
|
// Application task parameters
|
|
struct AppTaskParams {
|
|
LedStub* led_driver;
|
|
SwitchStub* switch_driver;
|
|
QueueHandle_t midi_queue;
|
|
};
|
|
|
|
// Application task function
|
|
BaseType_t app_task(void* parameters);
|
|
|
|
// Application state management
|
|
void app_process_midi_event(const MidiEvent& event);
|
|
void app_process_switch_event(uint8_t switch_id, bool pressed);
|
|
void app_initialize_config(); |