重命名串口写入函数以反映DMA使用,并更新应用程序中的调用
All checks were successful
Build and Upload Artifact / build and upload-artifact (push) Successful in 19m59s
All checks were successful
Build and Upload Artifact / build and upload-artifact (push) Successful in 19m59s
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user