feat: complete assembly mesh relay control path
- synchronize STM8 application and external flash layout updates\n- add assembly bootloader and assembly application test projects\n- add UART1 interrupt receive ring buffer\n- parse JDY-28M Mesh outer frames and source addresses\n- add CRC-16/MODBUS validation\n- implement relay control command 0x01 and response 0x81\n- support unicast and broadcast relay control frames\n- update host protocol, OTA documents, and serial tools
This commit is contained in:
+4
-3
@@ -3,8 +3,9 @@
|
||||
* @brief 蓝牙 Mesh 继电器硬件板级接口定义。
|
||||
*
|
||||
* 本阶段先提供稳定的硬件抽象接口,不在业务层直接操作 GPIO 寄存器。
|
||||
* PA1 的有效电平已经确认:高电平吸合、低电平断开;PB5 为低电平点亮的
|
||||
* 蓝牙组网/故障指示灯,PD3 为高电平点亮的继电器状态灯。
|
||||
* PA1 的有效电平已经确认:高电平吸合、低电平断开;PB4 为低电平点亮的
|
||||
* 蓝牙组网/故障指示灯,PB5 为低电平点亮的程序运行/OTA状态灯,PD3 为
|
||||
* 高电平点亮的继电器状态灯。
|
||||
*/
|
||||
#ifndef BOARD_H
|
||||
#define BOARD_H
|
||||
@@ -29,7 +30,7 @@ void Board_SetLed3(uint8_t on);
|
||||
/** 设置继电器状态灯,1表示点亮,0表示熄灭;硬件高电平点亮。 */
|
||||
void Board_SetRelayLed(uint8_t on);
|
||||
|
||||
/** 周期驱动PB4程序状态灯;正常运行500ms翻转,OTA期间100ms翻转。 */
|
||||
/** 周期驱动PB5程序状态灯;硬件低电平点亮,正常运行500ms翻转,OTA期间100ms翻转。 */
|
||||
void Board_StatusLedTask(uint8_t ota_active);
|
||||
|
||||
/** 设置 PWRC:1 表示拉低进入 AT 窗口,0 表示恢复高电平通信。 */
|
||||
|
||||
Reference in New Issue
Block a user