Skip to content

Commit

Permalink
RP235x: Mention the right board.
Browse files Browse the repository at this point in the history
Of course changing the board name caused every comment to re-wrap.
  • Loading branch information
thejpster committed Aug 22, 2024
1 parent 2173130 commit b41c5a7
Show file tree
Hide file tree
Showing 34 changed files with 68 additions and 68 deletions.
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/adc_fifo_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/adc_fifo_irq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/adc_fifo_poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/arch_flip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/binary_info_demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/blinky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/block_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/dht11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/float_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/gpio_dyn_pin_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/gpio_in_out.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/gpio_irq_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/i2c_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/i2c_async_cancelled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/lcd_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/mem_to_mem_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/multicore_fifo_blink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/multicore_polyblink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/powman_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/pwm_blink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/pwm_blink_embedded_hal_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/pwm_irq_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/rom_funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/rosc_as_system_clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/spi_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/uart_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/usb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/vector_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions rp235x-hal-examples/src/bin/watchdog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b41c5a7

Please sign in to comment.