DockerFluxDC/main/main.h

47 lines
1.2 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @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 <stdio.h>
#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__