aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorpennae <[email protected]>2023-05-06 20:53:06 +0200
committerpennae <[email protected]>2023-05-06 21:08:20 +0200
commitb38d496d519f87d7f455e6c6b32f5d6379af44a5 (patch)
tree68d682e82887b33e910dda7b37cf7f8e4957a257 /examples
parent374c7513f905fcbf353bee2987e78d68fe8ea303 (diff)
rp/pio: allow wrap-around program loading
execution wraps around after the end of instruction memory and wrapping works with this, so we may as well allow program loading across this boundary. could be useful for reusing chunks of instruction memory.
Diffstat (limited to 'examples')
-rw-r--r--examples/rp/src/bin/pio_hd44780.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/rp/src/bin/pio_hd44780.rs b/examples/rp/src/bin/pio_hd44780.rs
index 61c5565d3..088fd5649 100644
--- a/examples/rp/src/bin/pio_hd44780.rs
+++ b/examples/rp/src/bin/pio_hd44780.rs
@@ -95,6 +95,7 @@ impl<'l> HD44780<'l> {
95 let prg = pio_proc::pio_asm!( 95 let prg = pio_proc::pio_asm!(
96 r#" 96 r#"
97 .side_set 1 opt 97 .side_set 1 opt
98 .origin 20
98 99
99 loop: 100 loop:
100 out x, 24 101 out x, 24
@@ -148,7 +149,7 @@ impl<'l> HD44780<'l> {
148 // many side sets are only there to free up a delay bit! 149 // many side sets are only there to free up a delay bit!
149 let prg = pio_proc::pio_asm!( 150 let prg = pio_proc::pio_asm!(
150 r#" 151 r#"
151 .origin 7 152 .origin 27
152 .side_set 1 153 .side_set 1
153 154
154 .wrap_target 155 .wrap_target