aboutsummaryrefslogtreecommitdiff
path: root/examples/rp/src/bin/pio_async.rs
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-07-15 14:18:01 -0500
committerxoviat <[email protected]>2023-07-15 14:18:01 -0500
commit8a146a50ecd9168b2c856532b6f167e5b39433bb (patch)
treecd343e5a6283bd64a7fca130b0aaa9587bcc1eff /examples/rp/src/bin/pio_async.rs
parentf90b170dad91848d5a0ff746d873bd8a4ce7e91f (diff)
parent0bde4992ea1b9f662fecaf062b1f6e09dd909112 (diff)
Merge branch 'master' into mac-3
Diffstat (limited to 'examples/rp/src/bin/pio_async.rs')
-rw-r--r--examples/rp/src/bin/pio_async.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/examples/rp/src/bin/pio_async.rs b/examples/rp/src/bin/pio_async.rs
index 69034c92a..c001d6440 100644
--- a/examples/rp/src/bin/pio_async.rs
+++ b/examples/rp/src/bin/pio_async.rs
@@ -1,3 +1,5 @@
1//! This example shows powerful PIO module in the RP2040 chip.
2
1#![no_std] 3#![no_std]
2#![no_main] 4#![no_main]
3#![feature(type_alias_impl_trait)] 5#![feature(type_alias_impl_trait)]
@@ -54,7 +56,14 @@ fn setup_pio_task_sm1<'a>(pio: &mut Common<'a, PIO0>, sm: &mut StateMachine<'a,
54 // Setupm sm1 56 // Setupm sm1
55 57
56 // Read 0b10101 repeatedly until ISR is full 58 // Read 0b10101 repeatedly until ISR is full
57 let prg = pio_proc::pio_asm!(".origin 8", "set x, 0x15", ".wrap_target", "in x, 5 [31]", ".wrap",); 59 let prg = pio_proc::pio_asm!(
60 //
61 ".origin 8",
62 "set x, 0x15",
63 ".wrap_target",
64 "in x, 5 [31]",
65 ".wrap",
66 );
58 67
59 let relocated = RelocatedProgram::new(&prg.program); 68 let relocated = RelocatedProgram::new(&prg.program);
60 let mut cfg = Config::default(); 69 let mut cfg = Config::default();