diff options
| author | Caleb Jamison <[email protected]> | 2024-10-01 10:51:18 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-01 16:51:18 +0200 |
| commit | bc0180800d751e651c0d15c807285c11cdb4f486 (patch) | |
| tree | e5dfbef44d9173fe295ec9bce2639944e2630b9e /examples | |
| parent | e6ce81018bdd1a78d27a285260ac53b276690553 (diff) | |
Remove binary_info blocks from most examples. (#3385)
Diffstat (limited to 'examples')
45 files changed, 8 insertions, 445 deletions
diff --git a/examples/rp23/src/bin/adc.rs b/examples/rp23/src/bin/adc.rs index d1f053d39..f7db9653a 100644 --- a/examples/rp23/src/bin/adc.rs +++ b/examples/rp23/src/bin/adc.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example test the ADC (Analog to Digital Conversion) of the RS2040 pin 26, 27 and 28. | 1 | //! This example test the ADC (Analog to Digital Conversion) of the RP2350A pins 26, 27 and 28. |
| 2 | //! It also reads the temperature sensor in the chip. | 2 | //! It also reads the temperature sensor in the chip. |
| 3 | 3 | ||
| 4 | #![no_std] | 4 | #![no_std] |
| @@ -17,16 +17,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 17 | #[used] | 17 | #[used] |
| 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 19 | 19 | ||
| 20 | // Program metadata for `picotool info` | ||
| 21 | #[link_section = ".bi_entries"] | ||
| 22 | #[used] | ||
| 23 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 24 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 25 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 26 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 27 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 28 | ]; | ||
| 29 | |||
| 30 | bind_interrupts!(struct Irqs { | 20 | bind_interrupts!(struct Irqs { |
| 31 | ADC_IRQ_FIFO => InterruptHandler; | 21 | ADC_IRQ_FIFO => InterruptHandler; |
| 32 | }); | 22 | }); |
diff --git a/examples/rp23/src/bin/adc_dma.rs b/examples/rp23/src/bin/adc_dma.rs index 5046e5530..a6814c23a 100644 --- a/examples/rp23/src/bin/adc_dma.rs +++ b/examples/rp23/src/bin/adc_dma.rs | |||
| @@ -17,16 +17,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 17 | #[used] | 17 | #[used] |
| 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 19 | 19 | ||
| 20 | // Program metadata for `picotool info` | ||
| 21 | #[link_section = ".bi_entries"] | ||
| 22 | #[used] | ||
| 23 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 24 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 25 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 26 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 27 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 28 | ]; | ||
| 29 | |||
| 30 | bind_interrupts!(struct Irqs { | 20 | bind_interrupts!(struct Irqs { |
| 31 | ADC_IRQ_FIFO => InterruptHandler; | 21 | ADC_IRQ_FIFO => InterruptHandler; |
| 32 | }); | 22 | }); |
diff --git a/examples/rp23/src/bin/assign_resources.rs b/examples/rp23/src/bin/assign_resources.rs index 2f9783917..0d4ad8dc3 100644 --- a/examples/rp23/src/bin/assign_resources.rs +++ b/examples/rp23/src/bin/assign_resources.rs | |||
| @@ -24,16 +24,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 24 | #[used] | 24 | #[used] |
| 25 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 25 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 26 | 26 | ||
| 27 | // Program metadata for `picotool info` | ||
| 28 | #[link_section = ".bi_entries"] | ||
| 29 | #[used] | ||
| 30 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 31 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 32 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 33 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 34 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 35 | ]; | ||
| 36 | |||
| 37 | #[embassy_executor::main] | 27 | #[embassy_executor::main] |
| 38 | async fn main(spawner: Spawner) { | 28 | async fn main(spawner: Spawner) { |
| 39 | // initialize the peripherals | 29 | // initialize the peripherals |
diff --git a/examples/rp23/src/bin/blinky.rs b/examples/rp23/src/bin/blinky.rs index 9e45679c8..c1ddbb7d2 100644 --- a/examples/rp23/src/bin/blinky.rs +++ b/examples/rp23/src/bin/blinky.rs | |||
| @@ -17,20 +17,23 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 17 | #[used] | 17 | #[used] |
| 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 19 | 19 | ||
| 20 | // Program metadata for `picotool info` | 20 | // Program metadata for `picotool info`. |
| 21 | // This isn't needed, but it's recomended to have these minimal entries. | ||
| 21 | #[link_section = ".bi_entries"] | 22 | #[link_section = ".bi_entries"] |
| 22 | #[used] | 23 | #[used] |
| 23 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | 24 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ |
| 24 | embassy_rp::binary_info::rp_program_name!(c"example"), | 25 | embassy_rp::binary_info::rp_program_name!(c"Blinky Example"), |
| 26 | embassy_rp::binary_info::rp_program_description!( | ||
| 27 | c"This example tests the RP Pico on board LED, connected to gpio 25" | ||
| 28 | ), | ||
| 25 | embassy_rp::binary_info::rp_cargo_version!(), | 29 | embassy_rp::binary_info::rp_cargo_version!(), |
| 26 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 27 | embassy_rp::binary_info::rp_program_build_attribute!(), | 30 | embassy_rp::binary_info::rp_program_build_attribute!(), |
| 28 | ]; | 31 | ]; |
| 29 | 32 | ||
| 30 | #[embassy_executor::main] | 33 | #[embassy_executor::main] |
| 31 | async fn main(_spawner: Spawner) { | 34 | async fn main(_spawner: Spawner) { |
| 32 | let p = embassy_rp::init(Default::default()); | 35 | let p = embassy_rp::init(Default::default()); |
| 33 | let mut led = Output::new(p.PIN_2, Level::Low); | 36 | let mut led = Output::new(p.PIN_25, Level::Low); |
| 34 | 37 | ||
| 35 | loop { | 38 | loop { |
| 36 | info!("led on!"); | 39 | info!("led on!"); |
diff --git a/examples/rp23/src/bin/blinky_two_channels.rs b/examples/rp23/src/bin/blinky_two_channels.rs index 87fc58bbc..ce482858e 100644 --- a/examples/rp23/src/bin/blinky_two_channels.rs +++ b/examples/rp23/src/bin/blinky_two_channels.rs | |||
| @@ -19,16 +19,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 19 | #[used] | 19 | #[used] |
| 20 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 20 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 21 | 21 | ||
| 22 | // Program metadata for `picotool info` | ||
| 23 | #[link_section = ".bi_entries"] | ||
| 24 | #[used] | ||
| 25 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 26 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 27 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 28 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 29 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 30 | ]; | ||
| 31 | |||
| 32 | enum LedState { | 22 | enum LedState { |
| 33 | Toggle, | 23 | Toggle, |
| 34 | } | 24 | } |
diff --git a/examples/rp23/src/bin/blinky_two_tasks.rs b/examples/rp23/src/bin/blinky_two_tasks.rs index 40236c53b..5dc62245d 100644 --- a/examples/rp23/src/bin/blinky_two_tasks.rs +++ b/examples/rp23/src/bin/blinky_two_tasks.rs | |||
| @@ -19,16 +19,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 19 | #[used] | 19 | #[used] |
| 20 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 20 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 21 | 21 | ||
| 22 | // Program metadata for `picotool info` | ||
| 23 | #[link_section = ".bi_entries"] | ||
| 24 | #[used] | ||
| 25 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 26 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 27 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 28 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 29 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 30 | ]; | ||
| 31 | |||
| 32 | type LedType = Mutex<ThreadModeRawMutex, Option<Output<'static>>>; | 22 | type LedType = Mutex<ThreadModeRawMutex, Option<Output<'static>>>; |
| 33 | static LED: LedType = Mutex::new(None); | 23 | static LED: LedType = Mutex::new(None); |
| 34 | 24 | ||
diff --git a/examples/rp23/src/bin/button.rs b/examples/rp23/src/bin/button.rs index fb067a370..85f1bcae3 100644 --- a/examples/rp23/src/bin/button.rs +++ b/examples/rp23/src/bin/button.rs | |||
| @@ -14,16 +14,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 14 | #[used] | 14 | #[used] |
| 15 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 15 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 16 | 16 | ||
| 17 | // Program metadata for `picotool info` | ||
| 18 | #[link_section = ".bi_entries"] | ||
| 19 | #[used] | ||
| 20 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 21 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 22 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 23 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 24 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 25 | ]; | ||
| 26 | |||
| 27 | #[embassy_executor::main] | 17 | #[embassy_executor::main] |
| 28 | async fn main(_spawner: Spawner) { | 18 | async fn main(_spawner: Spawner) { |
| 29 | let p = embassy_rp::init(Default::default()); | 19 | let p = embassy_rp::init(Default::default()); |
diff --git a/examples/rp23/src/bin/debounce.rs b/examples/rp23/src/bin/debounce.rs index e672521ec..4c8b80d92 100644 --- a/examples/rp23/src/bin/debounce.rs +++ b/examples/rp23/src/bin/debounce.rs | |||
| @@ -15,16 +15,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 15 | #[used] | 15 | #[used] |
| 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 17 | 17 | ||
| 18 | // Program metadata for `picotool info` | ||
| 19 | #[link_section = ".bi_entries"] | ||
| 20 | #[used] | ||
| 21 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 22 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 23 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 24 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 25 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 26 | ]; | ||
| 27 | |||
| 28 | pub struct Debouncer<'a> { | 18 | pub struct Debouncer<'a> { |
| 29 | input: Input<'a>, | 19 | input: Input<'a>, |
| 30 | debounce: Duration, | 20 | debounce: Duration, |
diff --git a/examples/rp23/src/bin/flash.rs b/examples/rp23/src/bin/flash.rs index 84011e394..28dec24c9 100644 --- a/examples/rp23/src/bin/flash.rs +++ b/examples/rp23/src/bin/flash.rs | |||
| @@ -15,16 +15,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 15 | #[used] | 15 | #[used] |
| 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 17 | 17 | ||
| 18 | // Program metadata for `picotool info` | ||
| 19 | #[link_section = ".bi_entries"] | ||
| 20 | #[used] | ||
| 21 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 22 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 23 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 24 | embassy_rp::binary_info::rp_program_description!(c"Flash"), | ||
| 25 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 26 | ]; | ||
| 27 | |||
| 28 | const ADDR_OFFSET: u32 = 0x100000; | 18 | const ADDR_OFFSET: u32 = 0x100000; |
| 29 | const FLASH_SIZE: usize = 2 * 1024 * 1024; | 19 | const FLASH_SIZE: usize = 2 * 1024 * 1024; |
| 30 | 20 | ||
diff --git a/examples/rp23/src/bin/gpio_async.rs b/examples/rp23/src/bin/gpio_async.rs index ff12367bf..bfb9a3f95 100644 --- a/examples/rp23/src/bin/gpio_async.rs +++ b/examples/rp23/src/bin/gpio_async.rs | |||
| @@ -17,16 +17,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 17 | #[used] | 17 | #[used] |
| 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 19 | 19 | ||
| 20 | // Program metadata for `picotool info` | ||
| 21 | #[link_section = ".bi_entries"] | ||
| 22 | #[used] | ||
| 23 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 24 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 25 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 26 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 27 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 28 | ]; | ||
| 29 | |||
| 30 | /// It requires an external signal to be manually triggered on PIN 16. For | 20 | /// It requires an external signal to be manually triggered on PIN 16. For |
| 31 | /// example, this could be accomplished using an external power source with a | 21 | /// example, this could be accomplished using an external power source with a |
| 32 | /// button so that it is possible to toggle the signal from low to high. | 22 | /// button so that it is possible to toggle the signal from low to high. |
diff --git a/examples/rp23/src/bin/gpout.rs b/examples/rp23/src/bin/gpout.rs index d2ee55197..3cc2ea938 100644 --- a/examples/rp23/src/bin/gpout.rs +++ b/examples/rp23/src/bin/gpout.rs | |||
| @@ -16,16 +16,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 16 | #[used] | 16 | #[used] |
| 17 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 17 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 18 | 18 | ||
| 19 | // Program metadata for `picotool info` | ||
| 20 | #[link_section = ".bi_entries"] | ||
| 21 | #[used] | ||
| 22 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 23 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 24 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 25 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 26 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 27 | ]; | ||
| 28 | |||
| 29 | #[embassy_executor::main] | 19 | #[embassy_executor::main] |
| 30 | async fn main(_spawner: Spawner) { | 20 | async fn main(_spawner: Spawner) { |
| 31 | let p = embassy_rp::init(Default::default()); | 21 | let p = embassy_rp::init(Default::default()); |
diff --git a/examples/rp23/src/bin/i2c_async.rs b/examples/rp23/src/bin/i2c_async.rs index c8d918b56..b30088bae 100644 --- a/examples/rp23/src/bin/i2c_async.rs +++ b/examples/rp23/src/bin/i2c_async.rs | |||
| @@ -20,16 +20,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 20 | #[used] | 20 | #[used] |
| 21 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 21 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 22 | 22 | ||
| 23 | // Program metadata for `picotool info` | ||
| 24 | #[link_section = ".bi_entries"] | ||
| 25 | #[used] | ||
| 26 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 27 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 28 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 29 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 30 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 31 | ]; | ||
| 32 | |||
| 33 | bind_interrupts!(struct Irqs { | 23 | bind_interrupts!(struct Irqs { |
| 34 | I2C1_IRQ => InterruptHandler<I2C1>; | 24 | I2C1_IRQ => InterruptHandler<I2C1>; |
| 35 | }); | 25 | }); |
diff --git a/examples/rp23/src/bin/i2c_async_embassy.rs b/examples/rp23/src/bin/i2c_async_embassy.rs index cce0abcde..c783a80c5 100644 --- a/examples/rp23/src/bin/i2c_async_embassy.rs +++ b/examples/rp23/src/bin/i2c_async_embassy.rs | |||
| @@ -15,16 +15,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 15 | #[used] | 15 | #[used] |
| 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 17 | 17 | ||
| 18 | // Program metadata for `picotool info` | ||
| 19 | #[link_section = ".bi_entries"] | ||
| 20 | #[used] | ||
| 21 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 22 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 23 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 24 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 25 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 26 | ]; | ||
| 27 | |||
| 28 | // Our anonymous hypotetical temperature sensor could be: | 18 | // Our anonymous hypotetical temperature sensor could be: |
| 29 | // a 12-bit sensor, with 100ms startup time, range of -40*C - 125*C, and precision 0.25*C | 19 | // a 12-bit sensor, with 100ms startup time, range of -40*C - 125*C, and precision 0.25*C |
| 30 | // It requires no configuration or calibration, works with all i2c bus speeds, | 20 | // It requires no configuration or calibration, works with all i2c bus speeds, |
diff --git a/examples/rp23/src/bin/i2c_blocking.rs b/examples/rp23/src/bin/i2c_blocking.rs index 85c33bf0d..a68677311 100644 --- a/examples/rp23/src/bin/i2c_blocking.rs +++ b/examples/rp23/src/bin/i2c_blocking.rs | |||
| @@ -18,16 +18,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 18 | #[used] | 18 | #[used] |
| 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 20 | 20 | ||
| 21 | // Program metadata for `picotool info` | ||
| 22 | #[link_section = ".bi_entries"] | ||
| 23 | #[used] | ||
| 24 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 25 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 26 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 27 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 28 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 29 | ]; | ||
| 30 | |||
| 31 | #[allow(dead_code)] | 21 | #[allow(dead_code)] |
| 32 | mod mcp23017 { | 22 | mod mcp23017 { |
| 33 | pub const ADDR: u8 = 0x20; // default addr | 23 | pub const ADDR: u8 = 0x20; // default addr |
diff --git a/examples/rp23/src/bin/i2c_slave.rs b/examples/rp23/src/bin/i2c_slave.rs index fb5f3cda1..8817538c0 100644 --- a/examples/rp23/src/bin/i2c_slave.rs +++ b/examples/rp23/src/bin/i2c_slave.rs | |||
| @@ -15,16 +15,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 15 | #[used] | 15 | #[used] |
| 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 17 | 17 | ||
| 18 | // Program metadata for `picotool info` | ||
| 19 | #[link_section = ".bi_entries"] | ||
| 20 | #[used] | ||
| 21 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 22 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 23 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 24 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 25 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 26 | ]; | ||
| 27 | |||
| 28 | bind_interrupts!(struct Irqs { | 18 | bind_interrupts!(struct Irqs { |
| 29 | I2C0_IRQ => i2c::InterruptHandler<I2C0>; | 19 | I2C0_IRQ => i2c::InterruptHandler<I2C0>; |
| 30 | I2C1_IRQ => i2c::InterruptHandler<I2C1>; | 20 | I2C1_IRQ => i2c::InterruptHandler<I2C1>; |
diff --git a/examples/rp23/src/bin/interrupt.rs b/examples/rp23/src/bin/interrupt.rs index ee3d9bfe7..d9b662253 100644 --- a/examples/rp23/src/bin/interrupt.rs +++ b/examples/rp23/src/bin/interrupt.rs | |||
| @@ -29,16 +29,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 29 | #[used] | 29 | #[used] |
| 30 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 30 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 31 | 31 | ||
| 32 | // Program metadata for `picotool info` | ||
| 33 | #[link_section = ".bi_entries"] | ||
| 34 | #[used] | ||
| 35 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 36 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 37 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 38 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 39 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 40 | ]; | ||
| 41 | |||
| 42 | static COUNTER: AtomicU32 = AtomicU32::new(0); | 32 | static COUNTER: AtomicU32 = AtomicU32::new(0); |
| 43 | static PWM: Mutex<CriticalSectionRawMutex, RefCell<Option<Pwm>>> = Mutex::new(RefCell::new(None)); | 33 | static PWM: Mutex<CriticalSectionRawMutex, RefCell<Option<Pwm>>> = Mutex::new(RefCell::new(None)); |
| 44 | static ADC: Mutex<CriticalSectionRawMutex, RefCell<Option<(Adc<Blocking>, adc::Channel)>>> = | 34 | static ADC: Mutex<CriticalSectionRawMutex, RefCell<Option<(Adc<Blocking>, adc::Channel)>>> = |
diff --git a/examples/rp23/src/bin/multicore.rs b/examples/rp23/src/bin/multicore.rs index 9ab43d7a5..d4d470fa2 100644 --- a/examples/rp23/src/bin/multicore.rs +++ b/examples/rp23/src/bin/multicore.rs | |||
| @@ -20,16 +20,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 20 | #[used] | 20 | #[used] |
| 21 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 21 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 22 | 22 | ||
| 23 | // Program metadata for `picotool info` | ||
| 24 | #[link_section = ".bi_entries"] | ||
| 25 | #[used] | ||
| 26 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 27 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 28 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 29 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 30 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 31 | ]; | ||
| 32 | |||
| 33 | static mut CORE1_STACK: Stack<4096> = Stack::new(); | 23 | static mut CORE1_STACK: Stack<4096> = Stack::new(); |
| 34 | static EXECUTOR0: StaticCell<Executor> = StaticCell::new(); | 24 | static EXECUTOR0: StaticCell<Executor> = StaticCell::new(); |
| 35 | static EXECUTOR1: StaticCell<Executor> = StaticCell::new(); | 25 | static EXECUTOR1: StaticCell<Executor> = StaticCell::new(); |
diff --git a/examples/rp23/src/bin/multiprio.rs b/examples/rp23/src/bin/multiprio.rs index 27cd3656e..787854aa9 100644 --- a/examples/rp23/src/bin/multiprio.rs +++ b/examples/rp23/src/bin/multiprio.rs | |||
| @@ -70,16 +70,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 70 | #[used] | 70 | #[used] |
| 71 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 71 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 72 | 72 | ||
| 73 | // Program metadata for `picotool info` | ||
| 74 | #[link_section = ".bi_entries"] | ||
| 75 | #[used] | ||
| 76 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 77 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 78 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 79 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 80 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 81 | ]; | ||
| 82 | |||
| 83 | #[embassy_executor::task] | 73 | #[embassy_executor::task] |
| 84 | async fn run_high() { | 74 | async fn run_high() { |
| 85 | loop { | 75 | loop { |
diff --git a/examples/rp23/src/bin/otp.rs b/examples/rp23/src/bin/otp.rs index 106e514ca..c67c9821a 100644 --- a/examples/rp23/src/bin/otp.rs +++ b/examples/rp23/src/bin/otp.rs | |||
| @@ -14,16 +14,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 14 | #[used] | 14 | #[used] |
| 15 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 15 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 16 | 16 | ||
| 17 | // Program metadata for `picotool info` | ||
| 18 | #[link_section = ".bi_entries"] | ||
| 19 | #[used] | ||
| 20 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 21 | embassy_rp::binary_info::rp_program_name!(c"OTP Read Example"), | ||
| 22 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 23 | embassy_rp::binary_info::rp_program_description!(c"OTP Read Example"), | ||
| 24 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 25 | ]; | ||
| 26 | |||
| 27 | #[embassy_executor::main] | 17 | #[embassy_executor::main] |
| 28 | async fn main(_spawner: Spawner) { | 18 | async fn main(_spawner: Spawner) { |
| 29 | let _ = embassy_rp::init(Default::default()); | 19 | let _ = embassy_rp::init(Default::default()); |
diff --git a/examples/rp23/src/bin/pio_async.rs b/examples/rp23/src/bin/pio_async.rs index 231afc80e..896447e28 100644 --- a/examples/rp23/src/bin/pio_async.rs +++ b/examples/rp23/src/bin/pio_async.rs | |||
| @@ -16,16 +16,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 16 | #[used] | 16 | #[used] |
| 17 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 17 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 18 | 18 | ||
| 19 | // Program metadata for `picotool info` | ||
| 20 | #[link_section = ".bi_entries"] | ||
| 21 | #[used] | ||
| 22 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 23 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 24 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 25 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 26 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 27 | ]; | ||
| 28 | |||
| 29 | bind_interrupts!(struct Irqs { | 19 | bind_interrupts!(struct Irqs { |
| 30 | PIO0_IRQ_0 => InterruptHandler<PIO0>; | 20 | PIO0_IRQ_0 => InterruptHandler<PIO0>; |
| 31 | }); | 21 | }); |
diff --git a/examples/rp23/src/bin/pio_dma.rs b/examples/rp23/src/bin/pio_dma.rs index 60fbcb83a..b5f754798 100644 --- a/examples/rp23/src/bin/pio_dma.rs +++ b/examples/rp23/src/bin/pio_dma.rs | |||
| @@ -17,16 +17,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 17 | #[used] | 17 | #[used] |
| 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 19 | 19 | ||
| 20 | // Program metadata for `picotool info` | ||
| 21 | #[link_section = ".bi_entries"] | ||
| 22 | #[used] | ||
| 23 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 24 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 25 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 26 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 27 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 28 | ]; | ||
| 29 | |||
| 30 | bind_interrupts!(struct Irqs { | 20 | bind_interrupts!(struct Irqs { |
| 31 | PIO0_IRQ_0 => InterruptHandler<PIO0>; | 21 | PIO0_IRQ_0 => InterruptHandler<PIO0>; |
| 32 | }); | 22 | }); |
diff --git a/examples/rp23/src/bin/pio_hd44780.rs b/examples/rp23/src/bin/pio_hd44780.rs index 92aa858f9..5a6d7a9c5 100644 --- a/examples/rp23/src/bin/pio_hd44780.rs +++ b/examples/rp23/src/bin/pio_hd44780.rs | |||
| @@ -22,16 +22,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 22 | #[used] | 22 | #[used] |
| 23 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 23 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 24 | 24 | ||
| 25 | // Program metadata for `picotool info` | ||
| 26 | #[link_section = ".bi_entries"] | ||
| 27 | #[used] | ||
| 28 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 29 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 30 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 31 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 32 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 33 | ]; | ||
| 34 | |||
| 35 | bind_interrupts!(pub struct Irqs { | 25 | bind_interrupts!(pub struct Irqs { |
| 36 | PIO0_IRQ_0 => InterruptHandler<PIO0>; | 26 | PIO0_IRQ_0 => InterruptHandler<PIO0>; |
| 37 | }); | 27 | }); |
diff --git a/examples/rp23/src/bin/pio_i2s.rs b/examples/rp23/src/bin/pio_i2s.rs index d6d2d0ade..46e5eac88 100644 --- a/examples/rp23/src/bin/pio_i2s.rs +++ b/examples/rp23/src/bin/pio_i2s.rs | |||
| @@ -25,16 +25,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 25 | #[used] | 25 | #[used] |
| 26 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 26 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 27 | 27 | ||
| 28 | // Program metadata for `picotool info` | ||
| 29 | #[link_section = ".bi_entries"] | ||
| 30 | #[used] | ||
| 31 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 32 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 33 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 34 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 35 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 36 | ]; | ||
| 37 | |||
| 38 | bind_interrupts!(struct Irqs { | 28 | bind_interrupts!(struct Irqs { |
| 39 | PIO0_IRQ_0 => InterruptHandler<PIO0>; | 29 | PIO0_IRQ_0 => InterruptHandler<PIO0>; |
| 40 | }); | 30 | }); |
diff --git a/examples/rp23/src/bin/pio_pwm.rs b/examples/rp23/src/bin/pio_pwm.rs index 587f91ac3..3cffd213d 100644 --- a/examples/rp23/src/bin/pio_pwm.rs +++ b/examples/rp23/src/bin/pio_pwm.rs | |||
| @@ -18,16 +18,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 18 | #[used] | 18 | #[used] |
| 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 20 | 20 | ||
| 21 | // Program metadata for `picotool info` | ||
| 22 | #[link_section = ".bi_entries"] | ||
| 23 | #[used] | ||
| 24 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 25 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 26 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 27 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 28 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 29 | ]; | ||
| 30 | |||
| 31 | const REFRESH_INTERVAL: u64 = 20000; | 21 | const REFRESH_INTERVAL: u64 = 20000; |
| 32 | 22 | ||
| 33 | bind_interrupts!(struct Irqs { | 23 | bind_interrupts!(struct Irqs { |
diff --git a/examples/rp23/src/bin/pio_rotary_encoder.rs b/examples/rp23/src/bin/pio_rotary_encoder.rs index c147351e8..9542d63b7 100644 --- a/examples/rp23/src/bin/pio_rotary_encoder.rs +++ b/examples/rp23/src/bin/pio_rotary_encoder.rs | |||
| @@ -17,16 +17,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 17 | #[used] | 17 | #[used] |
| 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 19 | 19 | ||
| 20 | // Program metadata for `picotool info` | ||
| 21 | #[link_section = ".bi_entries"] | ||
| 22 | #[used] | ||
| 23 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 24 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 25 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 26 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 27 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 28 | ]; | ||
| 29 | |||
| 30 | bind_interrupts!(struct Irqs { | 20 | bind_interrupts!(struct Irqs { |
| 31 | PIO0_IRQ_0 => InterruptHandler<PIO0>; | 21 | PIO0_IRQ_0 => InterruptHandler<PIO0>; |
| 32 | }); | 22 | }); |
diff --git a/examples/rp23/src/bin/pio_servo.rs b/examples/rp23/src/bin/pio_servo.rs index 5e8714178..3202ab475 100644 --- a/examples/rp23/src/bin/pio_servo.rs +++ b/examples/rp23/src/bin/pio_servo.rs | |||
| @@ -18,16 +18,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 18 | #[used] | 18 | #[used] |
| 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 20 | 20 | ||
| 21 | // Program metadata for `picotool info` | ||
| 22 | #[link_section = ".bi_entries"] | ||
| 23 | #[used] | ||
| 24 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 25 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 26 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 27 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 28 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 29 | ]; | ||
| 30 | |||
| 31 | const DEFAULT_MIN_PULSE_WIDTH: u64 = 1000; // uncalibrated default, the shortest duty cycle sent to a servo | 21 | const DEFAULT_MIN_PULSE_WIDTH: u64 = 1000; // uncalibrated default, the shortest duty cycle sent to a servo |
| 32 | const DEFAULT_MAX_PULSE_WIDTH: u64 = 2000; // uncalibrated default, the longest duty cycle sent to a servo | 22 | const DEFAULT_MAX_PULSE_WIDTH: u64 = 2000; // uncalibrated default, the longest duty cycle sent to a servo |
| 33 | const DEFAULT_MAX_DEGREE_ROTATION: u64 = 160; // 160 degrees is typical | 23 | const DEFAULT_MAX_DEGREE_ROTATION: u64 = 160; // 160 degrees is typical |
diff --git a/examples/rp23/src/bin/pio_stepper.rs b/examples/rp23/src/bin/pio_stepper.rs index 24785443b..5e87da6eb 100644 --- a/examples/rp23/src/bin/pio_stepper.rs +++ b/examples/rp23/src/bin/pio_stepper.rs | |||
| @@ -21,16 +21,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 21 | #[used] | 21 | #[used] |
| 22 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 22 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 23 | 23 | ||
| 24 | // Program metadata for `picotool info` | ||
| 25 | #[link_section = ".bi_entries"] | ||
| 26 | #[used] | ||
| 27 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 28 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 29 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 30 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 31 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 32 | ]; | ||
| 33 | |||
| 34 | bind_interrupts!(struct Irqs { | 24 | bind_interrupts!(struct Irqs { |
| 35 | PIO0_IRQ_0 => InterruptHandler<PIO0>; | 25 | PIO0_IRQ_0 => InterruptHandler<PIO0>; |
| 36 | }); | 26 | }); |
diff --git a/examples/rp23/src/bin/pio_ws2812.rs b/examples/rp23/src/bin/pio_ws2812.rs index 00fe5e396..1f1984c4d 100644 --- a/examples/rp23/src/bin/pio_ws2812.rs +++ b/examples/rp23/src/bin/pio_ws2812.rs | |||
| @@ -23,16 +23,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 23 | #[used] | 23 | #[used] |
| 24 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 24 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 25 | 25 | ||
| 26 | // Program metadata for `picotool info` | ||
| 27 | #[link_section = ".bi_entries"] | ||
| 28 | #[used] | ||
| 29 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 30 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 31 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 32 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 33 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 34 | ]; | ||
| 35 | |||
| 36 | bind_interrupts!(struct Irqs { | 26 | bind_interrupts!(struct Irqs { |
| 37 | PIO0_IRQ_0 => InterruptHandler<PIO0>; | 27 | PIO0_IRQ_0 => InterruptHandler<PIO0>; |
| 38 | }); | 28 | }); |
diff --git a/examples/rp23/src/bin/pwm.rs b/examples/rp23/src/bin/pwm.rs index bfc2c6f67..15eae09ee 100644 --- a/examples/rp23/src/bin/pwm.rs +++ b/examples/rp23/src/bin/pwm.rs | |||
| @@ -16,16 +16,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 16 | #[used] | 16 | #[used] |
| 17 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 17 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 18 | 18 | ||
| 19 | // Program metadata for `picotool info` | ||
| 20 | #[link_section = ".bi_entries"] | ||
| 21 | #[used] | ||
| 22 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 23 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 24 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 25 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 26 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 27 | ]; | ||
| 28 | |||
| 29 | #[embassy_executor::main] | 19 | #[embassy_executor::main] |
| 30 | async fn main(_spawner: Spawner) { | 20 | async fn main(_spawner: Spawner) { |
| 31 | let p = embassy_rp::init(Default::default()); | 21 | let p = embassy_rp::init(Default::default()); |
diff --git a/examples/rp23/src/bin/pwm_input.rs b/examples/rp23/src/bin/pwm_input.rs index b65f2778b..ef87fe8b5 100644 --- a/examples/rp23/src/bin/pwm_input.rs +++ b/examples/rp23/src/bin/pwm_input.rs | |||
| @@ -15,16 +15,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 15 | #[used] | 15 | #[used] |
| 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 17 | 17 | ||
| 18 | // Program metadata for `picotool info` | ||
| 19 | #[link_section = ".bi_entries"] | ||
| 20 | #[used] | ||
| 21 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 22 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 23 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 24 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 25 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 26 | ]; | ||
| 27 | |||
| 28 | #[embassy_executor::main] | 18 | #[embassy_executor::main] |
| 29 | async fn main(_spawner: Spawner) { | 19 | async fn main(_spawner: Spawner) { |
| 30 | let p = embassy_rp::init(Default::default()); | 20 | let p = embassy_rp::init(Default::default()); |
diff --git a/examples/rp23/src/bin/rosc.rs b/examples/rp23/src/bin/rosc.rs index f65b236b1..a096f0b7a 100644 --- a/examples/rp23/src/bin/rosc.rs +++ b/examples/rp23/src/bin/rosc.rs | |||
| @@ -17,16 +17,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 17 | #[used] | 17 | #[used] |
| 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 19 | 19 | ||
| 20 | // Program metadata for `picotool info` | ||
| 21 | #[link_section = ".bi_entries"] | ||
| 22 | #[used] | ||
| 23 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 24 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 25 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 26 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 27 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 28 | ]; | ||
| 29 | |||
| 30 | #[embassy_executor::main] | 20 | #[embassy_executor::main] |
| 31 | async fn main(_spawner: Spawner) { | 21 | async fn main(_spawner: Spawner) { |
| 32 | let mut config = embassy_rp::config::Config::default(); | 22 | let mut config = embassy_rp::config::Config::default(); |
diff --git a/examples/rp23/src/bin/shared_bus.rs b/examples/rp23/src/bin/shared_bus.rs index b3fde13e3..2151ccb56 100644 --- a/examples/rp23/src/bin/shared_bus.rs +++ b/examples/rp23/src/bin/shared_bus.rs | |||
| @@ -23,16 +23,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 23 | #[used] | 23 | #[used] |
| 24 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 24 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 25 | 25 | ||
| 26 | // Program metadata for `picotool info` | ||
| 27 | #[link_section = ".bi_entries"] | ||
| 28 | #[used] | ||
| 29 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 30 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 31 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 32 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 33 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 34 | ]; | ||
| 35 | |||
| 36 | type Spi1Bus = Mutex<NoopRawMutex, Spi<'static, SPI1, spi::Async>>; | 26 | type Spi1Bus = Mutex<NoopRawMutex, Spi<'static, SPI1, spi::Async>>; |
| 37 | type I2c1Bus = Mutex<NoopRawMutex, I2c<'static, I2C1, i2c::Async>>; | 27 | type I2c1Bus = Mutex<NoopRawMutex, I2c<'static, I2C1, i2c::Async>>; |
| 38 | 28 | ||
diff --git a/examples/rp23/src/bin/sharing.rs b/examples/rp23/src/bin/sharing.rs index 4a3301cfd..68eb5d133 100644 --- a/examples/rp23/src/bin/sharing.rs +++ b/examples/rp23/src/bin/sharing.rs | |||
| @@ -36,16 +36,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 36 | #[used] | 36 | #[used] |
| 37 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 37 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 38 | 38 | ||
| 39 | // Program metadata for `picotool info` | ||
| 40 | #[link_section = ".bi_entries"] | ||
| 41 | #[used] | ||
| 42 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 43 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 44 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 45 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 46 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 47 | ]; | ||
| 48 | |||
| 49 | type UartAsyncMutex = mutex::Mutex<CriticalSectionRawMutex, UartTx<'static, UART0, uart::Async>>; | 39 | type UartAsyncMutex = mutex::Mutex<CriticalSectionRawMutex, UartTx<'static, UART0, uart::Async>>; |
| 50 | 40 | ||
| 51 | struct MyType { | 41 | struct MyType { |
diff --git a/examples/rp23/src/bin/spi.rs b/examples/rp23/src/bin/spi.rs index 924873e60..aacb8c7db 100644 --- a/examples/rp23/src/bin/spi.rs +++ b/examples/rp23/src/bin/spi.rs | |||
| @@ -17,16 +17,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 17 | #[used] | 17 | #[used] |
| 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 18 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 19 | 19 | ||
| 20 | // Program metadata for `picotool info` | ||
| 21 | #[link_section = ".bi_entries"] | ||
| 22 | #[used] | ||
| 23 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 24 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 25 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 26 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 27 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 28 | ]; | ||
| 29 | |||
| 30 | #[embassy_executor::main] | 20 | #[embassy_executor::main] |
| 31 | async fn main(_spawner: Spawner) { | 21 | async fn main(_spawner: Spawner) { |
| 32 | let p = embassy_rp::init(Default::default()); | 22 | let p = embassy_rp::init(Default::default()); |
diff --git a/examples/rp23/src/bin/spi_async.rs b/examples/rp23/src/bin/spi_async.rs index 4a74f991c..ac7f02fa8 100644 --- a/examples/rp23/src/bin/spi_async.rs +++ b/examples/rp23/src/bin/spi_async.rs | |||
| @@ -15,16 +15,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 15 | #[used] | 15 | #[used] |
| 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 17 | 17 | ||
| 18 | // Program metadata for `picotool info` | ||
| 19 | #[link_section = ".bi_entries"] | ||
| 20 | #[used] | ||
| 21 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 22 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 23 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 24 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 25 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 26 | ]; | ||
| 27 | |||
| 28 | #[embassy_executor::main] | 18 | #[embassy_executor::main] |
| 29 | async fn main(_spawner: Spawner) { | 19 | async fn main(_spawner: Spawner) { |
| 30 | let p = embassy_rp::init(Default::default()); | 20 | let p = embassy_rp::init(Default::default()); |
diff --git a/examples/rp23/src/bin/spi_display.rs b/examples/rp23/src/bin/spi_display.rs index 71dd84658..195db5a97 100644 --- a/examples/rp23/src/bin/spi_display.rs +++ b/examples/rp23/src/bin/spi_display.rs | |||
| @@ -32,16 +32,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 32 | #[used] | 32 | #[used] |
| 33 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 33 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 34 | 34 | ||
| 35 | // Program metadata for `picotool info` | ||
| 36 | #[link_section = ".bi_entries"] | ||
| 37 | #[used] | ||
| 38 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 39 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 40 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 41 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 42 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 43 | ]; | ||
| 44 | |||
| 45 | use crate::my_display_interface::SPIDeviceInterface; | 35 | use crate::my_display_interface::SPIDeviceInterface; |
| 46 | use crate::touch::Touch; | 36 | use crate::touch::Touch; |
| 47 | 37 | ||
diff --git a/examples/rp23/src/bin/spi_sdmmc.rs b/examples/rp23/src/bin/spi_sdmmc.rs index dabf41ab8..aa6b44ffa 100644 --- a/examples/rp23/src/bin/spi_sdmmc.rs +++ b/examples/rp23/src/bin/spi_sdmmc.rs | |||
| @@ -21,16 +21,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 21 | #[used] | 21 | #[used] |
| 22 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 22 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 23 | 23 | ||
| 24 | // Program metadata for `picotool info` | ||
| 25 | #[link_section = ".bi_entries"] | ||
| 26 | #[used] | ||
| 27 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 28 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 29 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 30 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 31 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 32 | ]; | ||
| 33 | |||
| 34 | struct DummyTimesource(); | 24 | struct DummyTimesource(); |
| 35 | 25 | ||
| 36 | impl embedded_sdmmc::TimeSource for DummyTimesource { | 26 | impl embedded_sdmmc::TimeSource for DummyTimesource { |
diff --git a/examples/rp23/src/bin/trng.rs b/examples/rp23/src/bin/trng.rs index e146baa2e..8251ebd8b 100644 --- a/examples/rp23/src/bin/trng.rs +++ b/examples/rp23/src/bin/trng.rs | |||
| @@ -18,16 +18,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 18 | #[used] | 18 | #[used] |
| 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 20 | 20 | ||
| 21 | // Program metadata for `picotool info` | ||
| 22 | #[link_section = ".bi_entries"] | ||
| 23 | #[used] | ||
| 24 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 25 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 26 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 27 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 28 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 29 | ]; | ||
| 30 | |||
| 31 | bind_interrupts!(struct Irqs { | 21 | bind_interrupts!(struct Irqs { |
| 32 | TRNG_IRQ => embassy_rp::trng::InterruptHandler<TRNG>; | 22 | TRNG_IRQ => embassy_rp::trng::InterruptHandler<TRNG>; |
| 33 | }); | 23 | }); |
diff --git a/examples/rp23/src/bin/uart.rs b/examples/rp23/src/bin/uart.rs index 0ffe0b293..fe28bb046 100644 --- a/examples/rp23/src/bin/uart.rs +++ b/examples/rp23/src/bin/uart.rs | |||
| @@ -16,16 +16,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 16 | #[used] | 16 | #[used] |
| 17 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 17 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 18 | 18 | ||
| 19 | // Program metadata for `picotool info` | ||
| 20 | #[link_section = ".bi_entries"] | ||
| 21 | #[used] | ||
| 22 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 23 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 24 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 25 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 26 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 27 | ]; | ||
| 28 | |||
| 29 | #[embassy_executor::main] | 19 | #[embassy_executor::main] |
| 30 | async fn main(_spawner: Spawner) { | 20 | async fn main(_spawner: Spawner) { |
| 31 | let p = embassy_rp::init(Default::default()); | 21 | let p = embassy_rp::init(Default::default()); |
diff --git a/examples/rp23/src/bin/uart_buffered_split.rs b/examples/rp23/src/bin/uart_buffered_split.rs index 4e69a20c4..9ed130727 100644 --- a/examples/rp23/src/bin/uart_buffered_split.rs +++ b/examples/rp23/src/bin/uart_buffered_split.rs | |||
| @@ -22,16 +22,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 22 | #[used] | 22 | #[used] |
| 23 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 23 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 24 | 24 | ||
| 25 | // Program metadata for `picotool info` | ||
| 26 | #[link_section = ".bi_entries"] | ||
| 27 | #[used] | ||
| 28 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 29 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 30 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 31 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 32 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 33 | ]; | ||
| 34 | |||
| 35 | bind_interrupts!(struct Irqs { | 25 | bind_interrupts!(struct Irqs { |
| 36 | UART0_IRQ => BufferedInterruptHandler<UART0>; | 26 | UART0_IRQ => BufferedInterruptHandler<UART0>; |
| 37 | }); | 27 | }); |
diff --git a/examples/rp23/src/bin/uart_r503.rs b/examples/rp23/src/bin/uart_r503.rs index 5ac8839e3..9aed42785 100644 --- a/examples/rp23/src/bin/uart_r503.rs +++ b/examples/rp23/src/bin/uart_r503.rs | |||
| @@ -15,16 +15,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 15 | #[used] | 15 | #[used] |
| 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 17 | 17 | ||
| 18 | // Program metadata for `picotool info` | ||
| 19 | #[link_section = ".bi_entries"] | ||
| 20 | #[used] | ||
| 21 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 22 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 23 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 24 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 25 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 26 | ]; | ||
| 27 | |||
| 28 | bind_interrupts!(pub struct Irqs { | 18 | bind_interrupts!(pub struct Irqs { |
| 29 | UART0_IRQ => UARTInterruptHandler<UART0>; | 19 | UART0_IRQ => UARTInterruptHandler<UART0>; |
| 30 | }); | 20 | }); |
diff --git a/examples/rp23/src/bin/uart_unidir.rs b/examples/rp23/src/bin/uart_unidir.rs index 988e44a79..12214c4c2 100644 --- a/examples/rp23/src/bin/uart_unidir.rs +++ b/examples/rp23/src/bin/uart_unidir.rs | |||
| @@ -21,16 +21,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 21 | #[used] | 21 | #[used] |
| 22 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 22 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 23 | 23 | ||
| 24 | // Program metadata for `picotool info` | ||
| 25 | #[link_section = ".bi_entries"] | ||
| 26 | #[used] | ||
| 27 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 28 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 29 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 30 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 31 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 32 | ]; | ||
| 33 | |||
| 34 | bind_interrupts!(struct Irqs { | 24 | bind_interrupts!(struct Irqs { |
| 35 | UART1_IRQ => InterruptHandler<UART1>; | 25 | UART1_IRQ => InterruptHandler<UART1>; |
| 36 | }); | 26 | }); |
diff --git a/examples/rp23/src/bin/usb_webusb.rs b/examples/rp23/src/bin/usb_webusb.rs index 3ade2226b..15279cabc 100644 --- a/examples/rp23/src/bin/usb_webusb.rs +++ b/examples/rp23/src/bin/usb_webusb.rs | |||
| @@ -34,16 +34,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 34 | #[used] | 34 | #[used] |
| 35 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 35 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 36 | 36 | ||
| 37 | // Program metadata for `picotool info` | ||
| 38 | #[link_section = ".bi_entries"] | ||
| 39 | #[used] | ||
| 40 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 41 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 42 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 43 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 44 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 45 | ]; | ||
| 46 | |||
| 47 | bind_interrupts!(struct Irqs { | 37 | bind_interrupts!(struct Irqs { |
| 48 | USBCTRL_IRQ => InterruptHandler<USB>; | 38 | USBCTRL_IRQ => InterruptHandler<USB>; |
| 49 | }); | 39 | }); |
diff --git a/examples/rp23/src/bin/watchdog.rs b/examples/rp23/src/bin/watchdog.rs index a901c1164..efc24c4e3 100644 --- a/examples/rp23/src/bin/watchdog.rs +++ b/examples/rp23/src/bin/watchdog.rs | |||
| @@ -18,16 +18,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 18 | #[used] | 18 | #[used] |
| 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 19 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 20 | 20 | ||
| 21 | // Program metadata for `picotool info` | ||
| 22 | #[link_section = ".bi_entries"] | ||
| 23 | #[used] | ||
| 24 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 25 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 26 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 27 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 28 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 29 | ]; | ||
| 30 | |||
| 31 | #[embassy_executor::main] | 21 | #[embassy_executor::main] |
| 32 | async fn main(_spawner: Spawner) { | 22 | async fn main(_spawner: Spawner) { |
| 33 | let p = embassy_rp::init(Default::default()); | 23 | let p = embassy_rp::init(Default::default()); |
diff --git a/examples/rp23/src/bin/zerocopy.rs b/examples/rp23/src/bin/zerocopy.rs index 86fca6f12..d317c4b56 100644 --- a/examples/rp23/src/bin/zerocopy.rs +++ b/examples/rp23/src/bin/zerocopy.rs | |||
| @@ -23,16 +23,6 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 23 | #[used] | 23 | #[used] |
| 24 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | 24 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); |
| 25 | 25 | ||
| 26 | // Program metadata for `picotool info` | ||
| 27 | #[link_section = ".bi_entries"] | ||
| 28 | #[used] | ||
| 29 | pub static PICOTOOL_ENTRIES: [embassy_rp::binary_info::EntryAddr; 4] = [ | ||
| 30 | embassy_rp::binary_info::rp_program_name!(c"example"), | ||
| 31 | embassy_rp::binary_info::rp_cargo_version!(), | ||
| 32 | embassy_rp::binary_info::rp_program_description!(c"Blinky"), | ||
| 33 | embassy_rp::binary_info::rp_program_build_attribute!(), | ||
| 34 | ]; | ||
| 35 | |||
| 36 | type SampleBuffer = [u16; 512]; | 26 | type SampleBuffer = [u16; 512]; |
| 37 | 27 | ||
| 38 | bind_interrupts!(struct Irqs { | 28 | bind_interrupts!(struct Irqs { |
