compile fixes

This commit is contained in:
Robin Müller 2024-09-12 15:41:09 +02:00
parent 39641ab3b6
commit 610a0b8bbe
Signed by: muellerr
GPG Key ID: A649FB78196E3849
3 changed files with 9 additions and 8 deletions

View File

@ -13,4 +13,3 @@ crc = "3"
[dependencies.va416xx-hal]
path = "../va416xx-hal"
version = "0.1.0"

View File

@ -8,6 +8,7 @@ cortex-m = "0.7"
cortex-m-rt = "0.7"
embedded-hal = "1"
embedded-hal-nb = "1"
embedded-io = "0.6"
panic-rtt-target = { version = "0.1.3" }
rtt-target = { version = "0.5" }
rtt-log = "0.3"
@ -31,7 +32,6 @@ default-features = false
[dependencies.va416xx-hal]
path = "../va416xx-hal"
version = "0.1.0"
[dependencies.rtic]
version = "2"

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;
}
}