diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-06-25 12:58:56 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-25 12:58:56 +0000 |
| commit | bce7c73a3ac5f88d9b5d089dbcf2826593eeef2f (patch) | |
| tree | 4e5b82babcc6c668c43bd1e8da4418ae21d8b1b9 /embassy-rp | |
| parent | 89cd0e7cca8472073a1c5bc2dd72352041075d25 (diff) | |
| parent | 957be1980d721bbae1b7819b81b798051887ac7c (diff) | |
Merge pull request #3118 from diondokter/rp-boot2-none
RP: add option to provide your own boot2
Diffstat (limited to 'embassy-rp')
| -rw-r--r-- | embassy-rp/Cargo.toml | 8 | ||||
| -rw-r--r-- | embassy-rp/src/lib.rs | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index 3ba6fe2e7..447c96b4d 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml | |||
| @@ -79,6 +79,14 @@ boot2-ram-memcpy = [] | |||
| 79 | boot2-w25q080 = [] | 79 | boot2-w25q080 = [] |
| 80 | ## Use boot2 with support for Winbond W25X10CL SPI flash. | 80 | ## Use boot2 with support for Winbond W25X10CL SPI flash. |
| 81 | boot2-w25x10cl = [] | 81 | boot2-w25x10cl = [] |
| 82 | ## Have embassy not provide the boot2 so you can use your own. | ||
| 83 | ## Place your own in the ".boot2" section like: | ||
| 84 | ## ``` | ||
| 85 | ## #[link_section = ".boot2"] | ||
| 86 | ## #[used] | ||
| 87 | ## static BOOT2: [u8; 256] = [0; 256]; // Provide your own with e.g. include_bytes! | ||
| 88 | ## ``` | ||
| 89 | boot2-none = [] | ||
| 82 | 90 | ||
| 83 | [dependencies] | 91 | [dependencies] |
| 84 | embassy-sync = { version = "0.6.0", path = "../embassy-sync" } | 92 | embassy-sync = { version = "0.6.0", path = "../embassy-sync" } |
diff --git a/embassy-rp/src/lib.rs b/embassy-rp/src/lib.rs index 507d42280..b7e386d4f 100644 --- a/embassy-rp/src/lib.rs +++ b/embassy-rp/src/lib.rs | |||
| @@ -226,6 +226,7 @@ macro_rules! select_bootloader { | |||
| 226 | } | 226 | } |
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | #[cfg(not(feature = "boot2-none"))] | ||
| 229 | select_bootloader! { | 230 | select_bootloader! { |
| 230 | "boot2-at25sf128a" => BOOT_LOADER_AT25SF128A, | 231 | "boot2-at25sf128a" => BOOT_LOADER_AT25SF128A, |
| 231 | "boot2-gd25q64cs" => BOOT_LOADER_GD25Q64CS, | 232 | "boot2-gd25q64cs" => BOOT_LOADER_GD25Q64CS, |
