/** * @file app_main.c * @brief AliceRC application initialization and task management */ #include #include #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "esp_log.h" #include "esp_system.h" #include "driver/gpio.h" #include "driver/adc.h" #include "nvs_flash.h" #include "app_main.h" /* Queue handles for inter-task communication */ QueueHandle_t adc_data_queue = NULL; QueueHandle_t rf_command_queue = NULL; QueueHandle_t ui_event_queue = NULL; static const char *TAG = "app_main"; void app_init_gpio(void) { /* Configure button GPIOs as inputs with pull-ups */ gpio_config_t btn_conf = { .pin_bit_mask = (1ULL<