Files
STM8_Mesh_Control/include/interrupt_control.h
T
十七 ebef6a8694 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
2026-11-05 16:12:51 +08:00

17 lines
523 B
C

/**
* @file interrupt_control.h
* @brief STM8 全局中断控制接口。
*
* STM8 的全局中断允许位位于 CPU 条件代码寄存器中,不能像 GPIO 或定时器
* 那样通过普通 C 变量直接访问,因此由本模块统一封装 SDCC 内联汇编。
*/
#ifndef INTERRUPT_CONTROL_H
#define INTERRUPT_CONTROL_H
/** 开启 STM8 全局中断,使 TIM4、UART 等中断可以进入。 */
void Interrupts_Enable(void);
/** 关闭 STM8 全局中断,用于极短的不可打断临界区。 */
#endif