mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
Add boot2 feature to kb2040 BSP
This commit is contained in:
parent
3a0e23c406
commit
332fe645a8
|
@ -17,7 +17,8 @@ cortex-m-rt = { version = "0.7.0", optional = true }
|
||||||
embedded-hal = { version = "0.2.4", features = ["unproven"] }
|
embedded-hal = { version = "0.2.4", features = ["unproven"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["rt"]
|
default = ["rt", "boot2"]
|
||||||
|
boot2 = ["rp2040-boot2"]
|
||||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -6,6 +6,14 @@ extern crate cortex_m_rt;
|
||||||
#[cfg(feature = "rt")]
|
#[cfg(feature = "rt")]
|
||||||
pub use cortex_m_rt::entry;
|
pub use cortex_m_rt::entry;
|
||||||
|
|
||||||
|
/// 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.
|
||||||
|
#[cfg(feature = "boot2")]
|
||||||
|
#[link_section = ".boot2"]
|
||||||
|
#[no_mangle]
|
||||||
|
#[used]
|
||||||
|
pub static BOOT2_FIRMWARE: [u8; 256] = rp2040_boot2::BOOT_LOADER_W25Q080;
|
||||||
|
|
||||||
pub use hal::pac;
|
pub use hal::pac;
|
||||||
|
|
||||||
hal::bsp_pins!(
|
hal::bsp_pins!(
|
||||||
|
|
Loading…
Reference in a new issue