aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f7/src
diff options
context:
space:
mode:
authorCorey Schuhen <[email protected]>2024-03-07 22:48:25 +1000
committerCorey Schuhen <[email protected]>2024-03-13 17:46:50 +1000
commit12a3af5043fd1d9a32f57b5cab9b5729a304ffc5 (patch)
treef98fe58851d3643363d48cf8b563a280212f0970 /examples/stm32f7/src
parent35f284ec22848d7085e00f377136fd66067ca756 (diff)
Shared frame types.
Remove BXCAN speciffic id and frame modules Remove SizedClassicData
Diffstat (limited to 'examples/stm32f7/src')
-rw-r--r--examples/stm32f7/src/bin/can.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f7/src/bin/can.rs b/examples/stm32f7/src/bin/can.rs
index c3e14bbf4..2701196ed 100644
--- a/examples/stm32f7/src/bin/can.rs
+++ b/examples/stm32f7/src/bin/can.rs
@@ -26,7 +26,7 @@ bind_interrupts!(struct Irqs {
26#[embassy_executor::task] 26#[embassy_executor::task]
27pub async fn send_can_message(tx: &'static mut CanTx<'static, CAN3>) { 27pub async fn send_can_message(tx: &'static mut CanTx<'static, CAN3>) {
28 loop { 28 loop {
29 let frame = Frame::new_data(unwrap!(StandardId::new(0 as _)), [0]); 29 let frame = Frame::new_data(unwrap!(StandardId::new(0 as _)), &[0]);
30 tx.write(&frame).await; 30 tx.write(&frame).await;
31 embassy_time::Timer::after_secs(1).await; 31 embassy_time::Timer::after_secs(1).await;
32 } 32 }