mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
update handling of id numbers
This commit is contained in:
parent
d91c2e7671
commit
815621d829
2 changed files with 11 additions and 3 deletions
|
|
@ -132,10 +132,10 @@ struct DeviceDescriptor {
|
||||||
pub i_serial_number: u8,
|
pub i_serial_number: u8,
|
||||||
pub b_num_configurations: u8,
|
pub b_num_configurations: u8,
|
||||||
}
|
}
|
||||||
const VENDOR_ID: u16 = 0x1209;
|
const VENDOR_ID: u16 = 0x1d50;
|
||||||
const PRODUCT_ID: u16 = 0x3613; // this needs to change! this is the Precursor product ID.
|
const PRODUCT_ID: u16 = 0x6196; // This is pending acceptance of a PR to the openmoko registry
|
||||||
const MANUFACTURER: &'static str = "Baochip";
|
const MANUFACTURER: &'static str = "Baochip";
|
||||||
const PRODUCT: &'static str = "Dabao";
|
const PRODUCT: &'static str = "Baochip-1x";
|
||||||
|
|
||||||
impl DeviceDescriptor {
|
impl DeviceDescriptor {
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
|
|
||||||
|
|
@ -281,6 +281,14 @@ impl Repl {
|
||||||
"Public serial number: {}",
|
"Public serial number: {}",
|
||||||
bao1x_hal::usb::derive_usb_serial_number(&owc, &slot_mgr)
|
bao1x_hal::usb::derive_usb_serial_number(&owc, &slot_mgr)
|
||||||
);
|
);
|
||||||
|
let uuid = slot_mgr.read(&bao1x_hal::board::UUID).unwrap();
|
||||||
|
crate::println!(
|
||||||
|
"UUID: {:08x}-{:08x}-{:08x}-{:08x}",
|
||||||
|
u32::from_le_bytes(uuid[12..16].try_into().unwrap()),
|
||||||
|
u32::from_le_bytes(uuid[8..12].try_into().unwrap()),
|
||||||
|
u32::from_le_bytes(uuid[4..8].try_into().unwrap()),
|
||||||
|
u32::from_le_bytes(uuid[..4].try_into().unwrap())
|
||||||
|
);
|
||||||
crate::println!("Revocations:");
|
crate::println!("Revocations:");
|
||||||
crate::println!("Stage key0 key1 key2 key3");
|
crate::println!("Stage key0 key1 key2 key3");
|
||||||
let key_array = [
|
let key_array = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue