P0功能已实现,按键、LED、过零检测、配网、OTA都已正常实现

This commit is contained in:
2026-09-04 18:49:07 +08:00
parent 2fb61a6458
commit 0de88083ba
47 changed files with 5184 additions and 26 deletions
+32
View File
@@ -0,0 +1,32 @@
/******************************************************************************
* @file led_manager.h
* @brief CBR1 红绿 LED 通道与事件表(跟继电器/配对/OTA)
* @author cyWu <1917507415@qq.com>
* @date 2026.09.04
* @version V1.0.0P0 Bring-up(门夹双通道框架裁剪:红 PA7 / 绿 PA8)
******************************************************************************/
#ifndef __LED_MANAGER_H__
#define __LED_MANAGER_H__
#include "led.h"
typedef enum {
LED_CH_RED = 0,
LED_CH_GREEN,
LED_CH_MAX
} LedChannel_t;
/**
* @brief 注册 GPIO 回调并装载 CBR1 事件表
* @return 无
*/
void user_led_init(void);
/**
* @brief 跑一轮 LED 事件
* @return 无
*/
void user_led_handle(void);
#endif /* __LED_MANAGER_H__ */