重命名串口写入函数以反映DMA使用,并更新应用程序中的调用
All checks were successful
Build and Upload Artifact / build and upload-artifact (push) Successful in 19m59s

This commit is contained in:
chauyin
2025-05-07 16:03:07 +08:00
parent 1914e7e0da
commit 1698cd0592
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ extern "C" void AppStart() {
auto gpio = GpioHelper::GpioInit(GPIOB, GPIO_PIN_0, GPIO_MODE_OUTPUT_PP, GPIO_NOPULL, GPIO_PIN_SET);
while (true) {
gpio.Toggle();
SerialPort::WriteLine("LED is toggled,current state: %s", gpio.Read() ? "OFF" : "ON");
SerialPort::WriteBlocking("LED is toggled,current state: %s", gpio.Read() ? "OFF" : "ON");
DelayS(1);
}
}