add delay ms safe & add led heart beat

This commit is contained in:
2025-08-13 00:56:55 +08:00
parent 1dde17d211
commit e9a96aec6a
6 changed files with 68 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ OF SUCH DAMAGE.
#include "systick.h"
#include "uart.h"
#include "uart_ring_buffer.h"
#include "led.h"
/*!
\brief this function handles NMI exception
@@ -96,6 +97,7 @@ void PendSV_Handler(void)
\retval none
*/
void SysTick_Handler(void) {
led_heart_beat(); // LED心跳指示灯
}
void USART0_IRQHandler(void) {