Files
2026-09-09 15:03:50 +08:00

33 lines
792 B
C
Raw Permalink 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 led_manager.h
* @brief CBR2 红绿 LED 通道与事件表(绿=作业 / 红=配对 / OTA、失败占双灯)
* @author cyWu <1917507415@qq.com>
* @date 2026.09.09
* @version V1.0.0P0 Bring-up
******************************************************************************/
#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 回调并装载 CBR2 事件表(GPIO 已在 bsp_hw_init 配置)
* @return 无
*/
void user_led_init(void);
/**
* @brief 跑一轮 LED 事件
* @return 无
*/
void user_led_handle(void);
#endif /* __LED_MANAGER_H__ */