/** * @file main.h * @brief 主程序头文件,包含项目所需的各类依赖和声明 * @details 该头文件整合了FreeRTOS、ESP32外设驱动、LVGL图形库等组件的头文件, * 为项目提供统一的依赖引入入口,并支持C/C++编译环境 * @author 王大金 * @date 2025-11-28 */ #ifndef __MAIN_H__ #define __MAIN_H__ #ifdef __cplusplus extern "C" { #endif #include #include "freertos/FreeRTOS.h" ///< FreeRTOS核心头文件 #include "freertos/task.h" ///< 任务管理相关API #include "freertos/semphr.h" ///< 信号量/互斥锁等同步机制 #include "esp_timer.h" ///< 高精度定时器驱动 #include "esp_err.h" ///< ESP错误码定义 #include "esp_log.h" ///< 日志输出功能 #include "driver/gpio.h" ///< GPIO外设驱动 #include "driver/ledc.h" ///< LEDC PWM驱动 #include "esp_lcd_panel_io.h" ///< LCD面板IO接口 #include "esp_lcd_panel_vendor.h" ///< 厂商特定LCD面板驱动 #include "esp_lcd_panel_ops.h" ///< LCD面板操作接口 #include "driver/gpio.h" #include "hal/gpio_hal.h" #include "user_power_task.h" #include "user_common.h" #ifdef __cplusplus } #endif #endif // __MAIN_H__