- 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
22 lines
543 B
C
22 lines
543 B
C
/**
|
|
* @file system_tick.h
|
|
* @brief 1 ms 系统节拍接口。
|
|
*/
|
|
#ifndef SYSTEM_TICK_H
|
|
#define SYSTEM_TICK_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/** 初始化系统节拍定时器。 */
|
|
void SystemTick_Init(void);
|
|
|
|
/** 返回系统启动后经过的毫秒数;约49.7天回绕一次。 */
|
|
uint32_t SystemTick_NowMs(void);
|
|
|
|
/** 在定时器中断服务程序中递增系统节拍。 */
|
|
void SystemTick_InterruptHandler(void);
|
|
/** TIM4中断处理函数主体,由主程序固定中断向量入口调用。 */
|
|
void SystemTick_TIM4_Handler(void);
|
|
|
|
#endif
|