25 lines
480 B
C
25 lines
480 B
C
#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,
|
|
};
|
|
/*其他外设初始化后快速闪烁,提示初始化完成*/
|
|
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);
|
|
} |