mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
Remove static BOOT2 decl in BSP examples so they build
This commit is contained in:
parent
c02984b422
commit
0e1fe81384
|
@ -28,12 +28,6 @@ use adafruit_kb2040::{
|
||||||
use smart_leds::{brightness, SmartLedsWrite, RGB8};
|
use smart_leds::{brightness, SmartLedsWrite, RGB8};
|
||||||
use ws2812_pio::Ws2812;
|
use ws2812_pio::Ws2812;
|
||||||
|
|
||||||
/// The linker will place this boot block at the start of our program image.
|
|
||||||
/// We need this to help the ROM bootloader get our code up and running.
|
|
||||||
#[link_section = ".boot2"]
|
|
||||||
#[used]
|
|
||||||
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER_W25Q080;
|
|
||||||
|
|
||||||
/// Entry point to our bare-metal application.
|
/// Entry point to our bare-metal application.
|
||||||
///
|
///
|
||||||
/// The `#[entry]` macro ensures the Cortex-M start-up code calls this
|
/// The `#[entry]` macro ensures the Cortex-M start-up code calls this
|
||||||
|
|
|
@ -70,12 +70,6 @@ struct UartQueue {
|
||||||
interrupt: pac::Interrupt,
|
interrupt: pac::Interrupt,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The linker will place this boot block at the start of our program image. We
|
|
||||||
/// need this to help the ROM bootloader get our code up and running.
|
|
||||||
#[link_section = ".boot2"]
|
|
||||||
#[used]
|
|
||||||
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER_W25Q080;
|
|
||||||
|
|
||||||
/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust
|
/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust
|
||||||
/// if your board has a different frequency
|
/// if your board has a different frequency
|
||||||
const XTAL_FREQ_HZ: u32 = 12_000_000u32;
|
const XTAL_FREQ_HZ: u32 = 12_000_000u32;
|
||||||
|
|
|
@ -61,12 +61,6 @@ type UartPins = (
|
||||||
/// Alias the type for our UART to make things clearer.
|
/// Alias the type for our UART to make things clearer.
|
||||||
type Uart = hal::uart::UartPeripheral<hal::uart::Enabled, pac::UART0, UartPins>;
|
type Uart = hal::uart::UartPeripheral<hal::uart::Enabled, pac::UART0, UartPins>;
|
||||||
|
|
||||||
/// The linker will place this boot block at the start of our program image. We
|
|
||||||
/// need this to help the ROM bootloader get our code up and running.
|
|
||||||
#[link_section = ".boot2"]
|
|
||||||
#[used]
|
|
||||||
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER_W25Q080;
|
|
||||||
|
|
||||||
/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust
|
/// External high-speed crystal on the Raspberry Pi Pico board is 12 MHz. Adjust
|
||||||
/// if your board has a different frequency
|
/// if your board has a different frequency
|
||||||
const XTAL_FREQ_HZ: u32 = 12_000_000u32;
|
const XTAL_FREQ_HZ: u32 = 12_000_000u32;
|
||||||
|
|
Loading…
Reference in a new issue