2022-11-13 21:46:52 +08:00
|
|
|
|
#include "bsp_init.h"
|
|
|
|
|
#include "bsp_log.h"
|
|
|
|
|
#include "bsp_dwt.h"
|
2023-02-05 14:11:59 +08:00
|
|
|
|
#include "bsp_usb.h"
|
2022-11-13 21:46:52 +08:00
|
|
|
|
#include "bsp_buzzer.h"
|
|
|
|
|
#include "bsp_led.h"
|
|
|
|
|
#include "bsp_temperature.h"
|
|
|
|
|
|
|
|
|
|
// CAN和串口会在注册实例的时候自动初始化,不注册不初始化
|
|
|
|
|
void BSPInit()
|
|
|
|
|
{
|
|
|
|
|
DWT_Init(168);
|
2022-12-05 21:01:26 +08:00
|
|
|
|
BSPLogInit();
|
2023-01-01 17:32:22 +08:00
|
|
|
|
|
2023-02-14 11:13:32 +08:00
|
|
|
|
|
|
|
|
|
// legacy support,待删除,将在实现了led/tempctrl/buzzer的module之后移动到app层进行XXXRegister()
|
2022-12-05 21:01:26 +08:00
|
|
|
|
LEDInit();
|
2022-11-13 21:46:52 +08:00
|
|
|
|
IMUTempInit();
|
2022-12-05 21:01:26 +08:00
|
|
|
|
BuzzerInit();
|
2022-11-13 21:46:52 +08:00
|
|
|
|
}
|