Files
BlindCane/Core/App/app.cpp
chauyinn 5beaf15efd
Some checks failed
Build and Upload Artifact / build and upload-artifact (push) Has been cancelled
新增 DfPlayer 和 CanMv 类,优化 UART 读写方法,更新 CommonCenter 以支持新类实例化
2025-05-10 19:38:20 +08:00

25 lines
610 B
C++

#include "Helper/delay_helper.h"
#include "stm32h563xx.h"
#include "Common/serial_port.hpp"
#include "Helper/gpio_helper.hpp"
#include "Center/common_center.hpp"
void Setup() {
GpioHelper::EnableAllGpioPeripheral();
DelaySetup();
auto ultrasonic = CommonCenter::GetUltrasonic();
auto dfPlayer = CommonCenter::GetDfPlayer();
auto canMv = CommonCenter::GetCanMv();
}
extern "C" void AppStart() {
Setup();
auto gpio = GpioHelper::GpioInit(GPIOB, GPIO_PIN_0, GPIO_MODE_OUTPUT_PP, GPIO_NOPULL, GPIO_PIN_SET);
while (true) {
gpio.Toggle();
DelayS(1);
}
}