generated from Template/H563ZI-HAL-CMake-Template
新增 Hc05 类,支持 HC-05 蓝牙模块的串口通信,增加串口设置波特率函数
All checks were successful
Build and Upload Artifact / build and upload-artifact (push) Successful in 20m1s
All checks were successful
Build and Upload Artifact / build and upload-artifact (push) Successful in 20m1s
This commit is contained in:
@@ -56,7 +56,8 @@ public:
|
||||
return {port, pin};
|
||||
}
|
||||
|
||||
static Gpio GpioInit(const Gpio& gpio, const uint32_t mode, const uint32_t pull, const GPIO_PinState state) {
|
||||
static Gpio GpioInit(const Gpio& gpio, const uint32_t mode, const uint32_t pull,
|
||||
const std::optional<GPIO_PinState> state = std::nullopt) {
|
||||
return GpioInit(gpio.port, gpio.pin, mode, pull, state);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user