mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add uf2 identifier for baochip-1x
just pulled it out of a uuid generator, checked it has no collisions. At some point, maybe some official repo will allow us to be "real" but ain't nobody got time for those politics today.
This commit is contained in:
parent
54b16cdf64
commit
ba817cc1a9
2 changed files with 9 additions and 0 deletions
|
|
@ -17,6 +17,10 @@ pub mod sce;
|
|||
pub mod signatures;
|
||||
pub use offsets::*;
|
||||
|
||||
/// UF2 Family ID. Randomly generated, no collisions with the known list, still to be merged
|
||||
/// into the "official" list
|
||||
pub const BAOCHIP_1X_UF2_FAMILY: u32 = 0xa7d7_6373;
|
||||
|
||||
/// Constants used by both emulation and hardware implementations
|
||||
pub const PERCLK: u32 = 100_000_000;
|
||||
pub const SERVER_NAME_KBD: &str = "_Matrix keyboard driver_";
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@ pub const BOOT1_START: usize = 0x6002_0000;
|
|||
pub const LOADER_START: usize = 0x6006_0000;
|
||||
pub const BAREMETAL_START: usize = LOADER_START;
|
||||
pub const KERNEL_START: usize = 0x6008_0000;
|
||||
// loadable apps all "start" at this address for UF2 updates
|
||||
// however these are remapped into external flash based on a defragmentation table
|
||||
// and app ID. The app ID also has to get encoded into this offset, likely to be
|
||||
// stuck in bits 24-27, to give up to 16 app slots of up to 8MiB in size.
|
||||
pub const APP_START_UF2: usize = 0x7000_0000;
|
||||
|
||||
// Define a trait with just the offset
|
||||
pub trait OneWayEncoding: TryFrom<u32> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue