Fixed examples and added defmt format to the new error types
This commit is contained in:
committed by
Dario Nieuwenhuis
parent
4950682a50
commit
e6ec81b999
@ -26,7 +26,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
|
||||
let irq = interrupt::take!(UARTE0_UART0);
|
||||
let mut state = State::new();
|
||||
let u = unsafe {
|
||||
BufferedUarte::new(
|
||||
unwrap!(BufferedUarte::new(
|
||||
&mut state,
|
||||
p.UARTE0,
|
||||
p.TIMER0,
|
||||
@ -40,7 +40,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
|
||||
config,
|
||||
&mut rx_buffer,
|
||||
&mut tx_buffer,
|
||||
)
|
||||
))
|
||||
};
|
||||
pin_mut!(u);
|
||||
|
||||
|
@ -21,9 +21,9 @@ async fn main(_spawner: Spawner, p: Peripherals) {
|
||||
|
||||
let irq = interrupt::take!(UARTE0_UART0);
|
||||
let mut uart = unsafe {
|
||||
uarte::UarteWithIdle::new(
|
||||
unwrap!(uarte::UarteWithIdle::new(
|
||||
p.UARTE0, p.TIMER0, p.PPI_CH0, p.PPI_CH1, irq, p.P0_08, p.P0_06, NoPin, NoPin, config,
|
||||
)
|
||||
))
|
||||
};
|
||||
|
||||
info!("uarte initialized!");
|
||||
|
Reference in New Issue
Block a user