compile fixes

This commit is contained in:
2024-09-12 15:41:09 +02:00
parent 39641ab3b6
commit 610a0b8bbe
3 changed files with 9 additions and 8 deletions

View File

@@ -63,6 +63,7 @@ mod app {
use super::*;
use cortex_m::asm;
use embedded_hal_nb::nb;
use embedded_io::Write;
use panic_rtt_target as _;
use rtic::Mutex;
use rtic_monotonics::systick::prelude::*;
@@ -200,11 +201,11 @@ mod app {
uart::Error::Overrun => {
cx.local.uart_rx.clear_fifo();
}
uart::Error::FramingError => todo!(),
uart::Error::ParityError => todo!(),
uart::Error::BreakCondition => todo!(),
uart::Error::TransferPending => todo!(),
uart::Error::BufferTooShort => todo!(),
uart::Error::FramingError => (),
uart::Error::ParityError => (),
uart::Error::BreakCondition => (),
uart::Error::TransferPending => (),
uart::Error::BufferTooShort => (),
}
}
nb::Error::WouldBlock => {
@@ -397,8 +398,9 @@ mod app {
],
shared=[]
)]
async fn pus_tm_tx_handler(_cx: pus_tm_tx_handler::Context) {
async fn pus_tm_tx_handler(cx: pus_tm_tx_handler::Context) {
loop {
// cx.local.uart_tx.write_all();
Mono::delay(500.millis()).await;
}
}