generated from Template/H563ZI-HAL-CMake-Template
新增 CommonCenter 类和 Config 结构体,提供超声波测距功能的配置和实例化支持
This commit is contained in:
@@ -3,11 +3,13 @@
|
||||
|
||||
#include "Common/serial_port.hpp"
|
||||
#include "Helper/gpio_helper.hpp"
|
||||
#include "Center/common_center.hpp"
|
||||
|
||||
|
||||
void Setup() {
|
||||
GpioHelper::EnableAllGpioPeripheral();
|
||||
DelaySetup();
|
||||
auto ultrasonic = CommonCenter::GetUltrasonic();
|
||||
}
|
||||
|
||||
extern "C" void AppStart() {
|
||||
|
||||
Reference in New Issue
Block a user