From b41c5a7e56c4d31e16dc3ff43a802bb007d1e0bb Mon Sep 17 00:00:00 2001 From: Jonathan 'theJPster' Pallant Date: Thu, 22 Aug 2024 19:42:44 +0100 Subject: [PATCH] RP235x: Mention the right board. Of course changing the board name caused every comment to re-wrap. --- rp235x-hal-examples/src/bin/adc.rs | 4 ++-- rp235x-hal-examples/src/bin/adc_fifo_dma.rs | 4 ++-- rp235x-hal-examples/src/bin/adc_fifo_irq.rs | 4 ++-- rp235x-hal-examples/src/bin/adc_fifo_poll.rs | 4 ++-- rp235x-hal-examples/src/bin/alloc.rs | 4 ++-- rp235x-hal-examples/src/bin/arch_flip.rs | 4 ++-- rp235x-hal-examples/src/bin/binary_info_demo.rs | 4 ++-- rp235x-hal-examples/src/bin/blinky.rs | 4 ++-- rp235x-hal-examples/src/bin/block_loop.rs | 4 ++-- rp235x-hal-examples/src/bin/dht11.rs | 4 ++-- rp235x-hal-examples/src/bin/float_test.rs | 4 ++-- rp235x-hal-examples/src/bin/gpio_dyn_pin_array.rs | 4 ++-- rp235x-hal-examples/src/bin/gpio_in_out.rs | 4 ++-- rp235x-hal-examples/src/bin/gpio_irq_example.rs | 4 ++-- rp235x-hal-examples/src/bin/i2c.rs | 4 ++-- rp235x-hal-examples/src/bin/i2c_async.rs | 4 ++-- rp235x-hal-examples/src/bin/i2c_async_cancelled.rs | 4 ++-- rp235x-hal-examples/src/bin/lcd_display.rs | 4 ++-- rp235x-hal-examples/src/bin/mem_to_mem_dma.rs | 4 ++-- rp235x-hal-examples/src/bin/multicore_fifo_blink.rs | 4 ++-- rp235x-hal-examples/src/bin/multicore_polyblink.rs | 4 ++-- rp235x-hal-examples/src/bin/powman_test.rs | 4 ++-- rp235x-hal-examples/src/bin/pwm_blink.rs | 4 ++-- rp235x-hal-examples/src/bin/pwm_blink_embedded_hal_1.rs | 4 ++-- rp235x-hal-examples/src/bin/pwm_irq_input.rs | 4 ++-- rp235x-hal-examples/src/bin/rom_funcs.rs | 4 ++-- rp235x-hal-examples/src/bin/rosc_as_system_clock.rs | 4 ++-- rp235x-hal-examples/src/bin/spi.rs | 4 ++-- rp235x-hal-examples/src/bin/spi_dma.rs | 4 ++-- rp235x-hal-examples/src/bin/uart.rs | 4 ++-- rp235x-hal-examples/src/bin/uart_dma.rs | 4 ++-- rp235x-hal-examples/src/bin/usb.rs | 4 ++-- rp235x-hal-examples/src/bin/vector_table.rs | 4 ++-- rp235x-hal-examples/src/bin/watchdog.rs | 4 ++-- 34 files changed, 68 insertions(+), 68 deletions(-) diff --git a/rp235x-hal-examples/src/bin/adc.rs b/rp235x-hal-examples/src/bin/adc.rs index cb9b6fc0f..76aad66d7 100644 --- a/rp235x-hal-examples/src/bin/adc.rs +++ b/rp235x-hal-examples/src/bin/adc.rs @@ -33,8 +33,8 @@ use hal::uart::{DataBits, StopBits, UartConfig}; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/adc_fifo_dma.rs b/rp235x-hal-examples/src/bin/adc_fifo_dma.rs index 6aaad760e..74f1e0e10 100644 --- a/rp235x-hal-examples/src/bin/adc_fifo_dma.rs +++ b/rp235x-hal-examples/src/bin/adc_fifo_dma.rs @@ -34,8 +34,8 @@ use hal::uart::{DataBits, StopBits, UartConfig}; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/adc_fifo_irq.rs b/rp235x-hal-examples/src/bin/adc_fifo_irq.rs index 7041acb98..5553a9c38 100644 --- a/rp235x-hal-examples/src/bin/adc_fifo_irq.rs +++ b/rp235x-hal-examples/src/bin/adc_fifo_irq.rs @@ -31,8 +31,8 @@ mod app { use hal::Clock; use rp235x_hal as hal; - /// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust - /// if your board has a different frequency + /// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. + /// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; // This example will capture 1000 samples to `shared.buf`. diff --git a/rp235x-hal-examples/src/bin/adc_fifo_poll.rs b/rp235x-hal-examples/src/bin/adc_fifo_poll.rs index f384348cb..ad4ec5cb1 100644 --- a/rp235x-hal-examples/src/bin/adc_fifo_poll.rs +++ b/rp235x-hal-examples/src/bin/adc_fifo_poll.rs @@ -31,8 +31,8 @@ use hal::uart::{DataBits, StopBits, UartConfig}; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/alloc.rs b/rp235x-hal-examples/src/bin/alloc.rs index 050c883e8..def80245c 100644 --- a/rp235x-hal-examples/src/bin/alloc.rs +++ b/rp235x-hal-examples/src/bin/alloc.rs @@ -38,8 +38,8 @@ use embedded_hal::digital::OutputPin; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/arch_flip.rs b/rp235x-hal-examples/src/bin/arch_flip.rs index c899891f0..f79c6beea 100644 --- a/rp235x-hal-examples/src/bin/arch_flip.rs +++ b/rp235x-hal-examples/src/bin/arch_flip.rs @@ -33,8 +33,8 @@ use embedded_hal::digital::OutputPin; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/binary_info_demo.rs b/rp235x-hal-examples/src/bin/binary_info_demo.rs index ea7bc245f..a0cb55835 100644 --- a/rp235x-hal-examples/src/bin/binary_info_demo.rs +++ b/rp235x-hal-examples/src/bin/binary_info_demo.rs @@ -28,8 +28,8 @@ use embedded_hal::digital::OutputPin; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/blinky.rs b/rp235x-hal-examples/src/bin/blinky.rs index eb94b1c3b..69472b90e 100644 --- a/rp235x-hal-examples/src/bin/blinky.rs +++ b/rp235x-hal-examples/src/bin/blinky.rs @@ -25,8 +25,8 @@ use embedded_hal::digital::OutputPin; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/block_loop.rs b/rp235x-hal-examples/src/bin/block_loop.rs index b4b20f203..8d3217bd6 100644 --- a/rp235x-hal-examples/src/bin/block_loop.rs +++ b/rp235x-hal-examples/src/bin/block_loop.rs @@ -38,8 +38,8 @@ pub static END_IMAGE_DEF: hal::block::Block<1> = hal::block::Block::new([hal::block::item_ignored()]) .with_offset(unsafe { core::ptr::addr_of!(end_to_start) }); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/dht11.rs b/rp235x-hal-examples/src/bin/dht11.rs index da1bf7219..0a033871b 100644 --- a/rp235x-hal-examples/src/bin/dht11.rs +++ b/rp235x-hal-examples/src/bin/dht11.rs @@ -27,8 +27,8 @@ use embedded_hal::digital::OutputPin; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; use dht_sensor::{dht11, DhtReading}; diff --git a/rp235x-hal-examples/src/bin/float_test.rs b/rp235x-hal-examples/src/bin/float_test.rs index a2da63695..3cf65478d 100644 --- a/rp235x-hal-examples/src/bin/float_test.rs +++ b/rp235x-hal-examples/src/bin/float_test.rs @@ -100,8 +100,8 @@ use hal::Clock; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; struct GlobalUart { diff --git a/rp235x-hal-examples/src/bin/gpio_dyn_pin_array.rs b/rp235x-hal-examples/src/bin/gpio_dyn_pin_array.rs index 34749a88b..0ca06f868 100644 --- a/rp235x-hal-examples/src/bin/gpio_dyn_pin_array.rs +++ b/rp235x-hal-examples/src/bin/gpio_dyn_pin_array.rs @@ -33,8 +33,8 @@ use embedded_hal::digital::OutputPin; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/gpio_in_out.rs b/rp235x-hal-examples/src/bin/gpio_in_out.rs index 2f9a4dd62..e5e04e92a 100644 --- a/rp235x-hal-examples/src/bin/gpio_in_out.rs +++ b/rp235x-hal-examples/src/bin/gpio_in_out.rs @@ -25,8 +25,8 @@ use embedded_hal::digital::OutputPin; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/gpio_irq_example.rs b/rp235x-hal-examples/src/bin/gpio_irq_example.rs index 5ae688c72..03baf9886 100644 --- a/rp235x-hal-examples/src/bin/gpio_irq_example.rs +++ b/rp235x-hal-examples/src/bin/gpio_irq_example.rs @@ -48,8 +48,8 @@ use gpio::Interrupt::EdgeLow; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; // Pin types quickly become very long! diff --git a/rp235x-hal-examples/src/bin/i2c.rs b/rp235x-hal-examples/src/bin/i2c.rs index a3939e5e8..3b9627867 100644 --- a/rp235x-hal-examples/src/bin/i2c.rs +++ b/rp235x-hal-examples/src/bin/i2c.rs @@ -26,8 +26,8 @@ use hal::gpio::{FunctionI2C, Pin}; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/i2c_async.rs b/rp235x-hal-examples/src/bin/i2c_async.rs index 38e99eac4..8b104bc99 100644 --- a/rp235x-hal-examples/src/bin/i2c_async.rs +++ b/rp235x-hal-examples/src/bin/i2c_async.rs @@ -35,8 +35,8 @@ use embedded_hal_async::i2c::I2c; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Bind the interrupt handler with the peripheral diff --git a/rp235x-hal-examples/src/bin/i2c_async_cancelled.rs b/rp235x-hal-examples/src/bin/i2c_async_cancelled.rs index e7d6cf297..f9b069389 100644 --- a/rp235x-hal-examples/src/bin/i2c_async_cancelled.rs +++ b/rp235x-hal-examples/src/bin/i2c_async_cancelled.rs @@ -38,8 +38,8 @@ use defmt_rtt as _; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; #[interrupt] diff --git a/rp235x-hal-examples/src/bin/lcd_display.rs b/rp235x-hal-examples/src/bin/lcd_display.rs index 40eea2703..b94301e7a 100644 --- a/rp235x-hal-examples/src/bin/lcd_display.rs +++ b/rp235x-hal-examples/src/bin/lcd_display.rs @@ -27,8 +27,8 @@ use hd44780_driver as hd44780; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/mem_to_mem_dma.rs b/rp235x-hal-examples/src/bin/mem_to_mem_dma.rs index f621e32cb..8748289cc 100644 --- a/rp235x-hal-examples/src/bin/mem_to_mem_dma.rs +++ b/rp235x-hal-examples/src/bin/mem_to_mem_dma.rs @@ -24,8 +24,8 @@ use panic_halt as _; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; #[hal::entry] diff --git a/rp235x-hal-examples/src/bin/multicore_fifo_blink.rs b/rp235x-hal-examples/src/bin/multicore_fifo_blink.rs index 78ee4571e..50a901dc3 100644 --- a/rp235x-hal-examples/src/bin/multicore_fifo_blink.rs +++ b/rp235x-hal-examples/src/bin/multicore_fifo_blink.rs @@ -30,8 +30,8 @@ use panic_halt as _; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Value to indicate that Core 1 has completed its task diff --git a/rp235x-hal-examples/src/bin/multicore_polyblink.rs b/rp235x-hal-examples/src/bin/multicore_polyblink.rs index 54ac1fbe2..a8ccfe9a1 100644 --- a/rp235x-hal-examples/src/bin/multicore_polyblink.rs +++ b/rp235x-hal-examples/src/bin/multicore_polyblink.rs @@ -30,8 +30,8 @@ use embedded_hal::digital::StatefulOutputPin; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// The frequency at which core 0 will blink its LED (Hz). diff --git a/rp235x-hal-examples/src/bin/powman_test.rs b/rp235x-hal-examples/src/bin/powman_test.rs index 096d8e193..80a517ee0 100644 --- a/rp235x-hal-examples/src/bin/powman_test.rs +++ b/rp235x-hal-examples/src/bin/powman_test.rs @@ -26,8 +26,8 @@ use hal::Clock; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; struct GlobalUart { diff --git a/rp235x-hal-examples/src/bin/pwm_blink.rs b/rp235x-hal-examples/src/bin/pwm_blink.rs index 0347ea3d5..34eae8d29 100644 --- a/rp235x-hal-examples/src/bin/pwm_blink.rs +++ b/rp235x-hal-examples/src/bin/pwm_blink.rs @@ -31,8 +31,8 @@ const LOW: u16 = 0; /// The maximum PWM value (i.e. LED brightness) we want const HIGH: u16 = 25000; -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/pwm_blink_embedded_hal_1.rs b/rp235x-hal-examples/src/bin/pwm_blink_embedded_hal_1.rs index c9dc23399..6695d872e 100644 --- a/rp235x-hal-examples/src/bin/pwm_blink_embedded_hal_1.rs +++ b/rp235x-hal-examples/src/bin/pwm_blink_embedded_hal_1.rs @@ -32,8 +32,8 @@ const LOW: u16 = 0; /// The maximum PWM value (i.e. LED brightness) we want const HIGH: u16 = 25000; -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/pwm_irq_input.rs b/rp235x-hal-examples/src/bin/pwm_irq_input.rs index a72458e3e..75c428df0 100644 --- a/rp235x-hal-examples/src/bin/pwm_irq_input.rs +++ b/rp235x-hal-examples/src/bin/pwm_irq_input.rs @@ -47,8 +47,8 @@ const LOW_US: u16 = 1475; /// The PWM threshold value for turning on the LED in us const HIGH_US: u16 = 1525; -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Pin types quickly become very long! diff --git a/rp235x-hal-examples/src/bin/rom_funcs.rs b/rp235x-hal-examples/src/bin/rom_funcs.rs index 77be82909..79b73f7fc 100644 --- a/rp235x-hal-examples/src/bin/rom_funcs.rs +++ b/rp235x-hal-examples/src/bin/rom_funcs.rs @@ -29,8 +29,8 @@ use hal::uart::{DataBits, StopBits, UartConfig}; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/rosc_as_system_clock.rs b/rp235x-hal-examples/src/bin/rosc_as_system_clock.rs index f80e7bcfc..96d54d971 100644 --- a/rp235x-hal-examples/src/bin/rosc_as_system_clock.rs +++ b/rp235x-hal-examples/src/bin/rosc_as_system_clock.rs @@ -30,8 +30,8 @@ use hal::rosc::RingOscillator; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/spi.rs b/rp235x-hal-examples/src/bin/spi.rs index e2464c931..04d5aae62 100644 --- a/rp235x-hal-examples/src/bin/spi.rs +++ b/rp235x-hal-examples/src/bin/spi.rs @@ -29,8 +29,8 @@ use hal::fugit::RateExtU32; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/spi_dma.rs b/rp235x-hal-examples/src/bin/spi_dma.rs index 74991af88..d78704ae0 100644 --- a/rp235x-hal-examples/src/bin/spi_dma.rs +++ b/rp235x-hal-examples/src/bin/spi_dma.rs @@ -28,8 +28,8 @@ use panic_halt as _; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; #[hal::entry] diff --git a/rp235x-hal-examples/src/bin/uart.rs b/rp235x-hal-examples/src/bin/uart.rs index d361fb355..a5bfb4125 100644 --- a/rp235x-hal-examples/src/bin/uart.rs +++ b/rp235x-hal-examples/src/bin/uart.rs @@ -34,8 +34,8 @@ use hal::uart::{DataBits, StopBits, UartConfig, ValidatedPinRx, ValidatedPinTx}; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/uart_dma.rs b/rp235x-hal-examples/src/bin/uart_dma.rs index 8e8a81a22..e6b603c1c 100644 --- a/rp235x-hal-examples/src/bin/uart_dma.rs +++ b/rp235x-hal-examples/src/bin/uart_dma.rs @@ -33,8 +33,8 @@ use hal::uart::{DataBits, StopBits, UartConfig}; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/usb.rs b/rp235x-hal-examples/src/bin/usb.rs index ffd84335b..51e93a417 100644 --- a/rp235x-hal-examples/src/bin/usb.rs +++ b/rp235x-hal-examples/src/bin/usb.rs @@ -34,8 +34,8 @@ use usbd_serial::SerialPort; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/vector_table.rs b/rp235x-hal-examples/src/bin/vector_table.rs index d4fa011b3..f975c1966 100644 --- a/rp235x-hal-examples/src/bin/vector_table.rs +++ b/rp235x-hal-examples/src/bin/vector_table.rs @@ -47,8 +47,8 @@ const FAST_BLINK_INTERVAL_US: MicrosDurationU32 = MicrosDurationU32::millis(300) #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. diff --git a/rp235x-hal-examples/src/bin/watchdog.rs b/rp235x-hal-examples/src/bin/watchdog.rs index 0b3727ef9..74691fd55 100644 --- a/rp235x-hal-examples/src/bin/watchdog.rs +++ b/rp235x-hal-examples/src/bin/watchdog.rs @@ -26,8 +26,8 @@ use hal::fugit::ExtU32; #[used] pub static IMAGE_DEF: hal::block::ImageDef = hal::block::ImageDef::secure_exe(); -/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust -/// if your board has a different frequency +/// External high-speed crystal on the Raspberry Pi Pico 2 board is 12 MHz. +/// Adjust if your board has a different frequency const XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application.