mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add hook to USB testing, and also move the kernel to make space for loader USB
This commit is contained in:
parent
3a4ae8f09f
commit
d8cd9ba5c5
1 changed files with 8 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ pub const FLASH_BASE: usize = utralib::generated::HW_RERAM_MEM;
|
|||
|
||||
// location of kernel, as offset from the base of ReRAM. This needs to match up with what is in link.x.
|
||||
// exclusive of the signature block offset
|
||||
pub const KERNEL_OFFSET: usize = 0x4_0000;
|
||||
pub const KERNEL_OFFSET: usize = 0x5_0000;
|
||||
|
||||
#[cfg(feature = "cramium-soc")]
|
||||
pub fn early_init() -> u32 {
|
||||
|
|
@ -344,6 +344,13 @@ pub fn early_init() -> u32 {
|
|||
i2c.i2c_await(Some(&mut ldo), false).unwrap();
|
||||
crate::println!("LDO result - last value should be 0xe: {:x?}", ldo);
|
||||
|
||||
//------------- test USB ---------------
|
||||
crate::platform::cramium::usb::init_usb();
|
||||
// this does not return if USB is initialized correctly...
|
||||
unsafe {
|
||||
crate::platform::cramium::usb::test_usb();
|
||||
}
|
||||
|
||||
//------------- test OV2640 ------------
|
||||
let (pid, mid) = cam.read_id(&mut i2c);
|
||||
crate::println!("Camera pid {:x}, mid {:x}", pid, mid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue