feat: add STM8 mesh relay firmware

This commit is contained in:
十七
2026-11-02 20:30:08 +08:00
commit d275a3523b
27 changed files with 2985 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
/**
* @file bluetooth_manager.h
* @brief JDY-28M 上电初始化、短地址查询和 LED 状态管理接口。
*/
#ifndef BLUETOOTH_MANAGER_H
#define BLUETOOTH_MANAGER_H
#include <stdint.h>
/** 初始化蓝牙管理状态机。 */
void BluetoothManager_Init(void);
/** 执行一次非阻塞蓝牙初始化和 LED 状态任务。 */
void BluetoothManager_Task(void);
/** 返回蓝牙初始化是否成功。 */
uint8_t BluetoothManager_IsReady(void);
/** 返回蓝牙初始化故障状态。 */
uint8_t BluetoothManager_IsFault(void);
/** 返回最近一次查询到的短地址。 */
uint16_t BluetoothManager_GetShortAddress(void);
#endif