Initial commit: my SECS2 project

This commit is contained in:
2026-06-12 14:19:01 +08:00
commit 2c3e2c4dc2
1138 changed files with 603966 additions and 0 deletions

25
usr/bsp/bsp_Led.c Normal file
View File

@@ -0,0 +1,25 @@
#include "bsp_Led.h"
#include "os_timer.h"
static void bsp_Led_Init(void);
static void bsp_Led_Flash(void);
bsp_Led_t Led =
{
.Init = bsp_Led_Init,
.Flash = bsp_Led_Flash,
};
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˸<EFBFBD><CBB8><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
static void bsp_Led_Init(void)
{
for(u8 i = 0;i < 20;i++)
{
Delay_ms(50);
HAL_GPIO_TogglePin(LED_RUN_GPIO_Port, LED_RUN_Pin);
}
}
static void bsp_Led_Flash(void)
{
HAL_GPIO_TogglePin(LED_RUN_GPIO_Port, LED_RUN_Pin);
}