cargo fmt
Some checks failed
ci / Check build (pull_request) Has been cancelled
ci / Check formatting (pull_request) Has been cancelled
ci / Check Documentation Build (pull_request) Has been cancelled
ci / Clippy (pull_request) Has been cancelled
ci / Check build (push) Has been cancelled
ci / Check formatting (push) Has been cancelled
ci / Check Documentation Build (push) Has been cancelled
ci / Clippy (push) Has been cancelled
Some checks failed
ci / Check build (pull_request) Has been cancelled
ci / Check formatting (pull_request) Has been cancelled
ci / Check Documentation Build (pull_request) Has been cancelled
ci / Clippy (pull_request) Has been cancelled
ci / Check build (push) Has been cancelled
ci / Check formatting (push) Has been cancelled
ci / Check Documentation Build (push) Has been cancelled
ci / Clippy (push) Has been cancelled
This commit is contained in:
@@ -8,7 +8,7 @@ use embedded_hal::{delay::DelayNs, digital::StatefulOutputPin};
|
|||||||
use zynq7000::PsPeripherals;
|
use zynq7000::PsPeripherals;
|
||||||
use zynq7000_hal::{
|
use zynq7000_hal::{
|
||||||
clocks::Clocks,
|
clocks::Clocks,
|
||||||
gpio::{mio, Output, PinState},
|
gpio::{Output, PinState, mio},
|
||||||
l2_cache,
|
l2_cache,
|
||||||
priv_tim::CpuPrivateTimer,
|
priv_tim::CpuPrivateTimer,
|
||||||
time::Hertz,
|
time::Hertz,
|
||||||
@@ -31,7 +31,6 @@ pub enum Lib {
|
|||||||
Hal,
|
Hal,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Entry point (not called like a normal main function)
|
/// Entry point (not called like a normal main function)
|
||||||
#[unsafe(no_mangle)]
|
#[unsafe(no_mangle)]
|
||||||
pub extern "C" fn boot_core(cpu_id: u32) -> ! {
|
pub extern "C" fn boot_core(cpu_id: u32) -> ! {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ use zynq7000::{
|
|||||||
slcr::{BootModeRegister, BootPllConfig, LevelShifterRegister},
|
slcr::{BootModeRegister, BootPllConfig, LevelShifterRegister},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub mod boot_image;
|
||||||
pub mod cache;
|
pub mod cache;
|
||||||
pub mod clocks;
|
pub mod clocks;
|
||||||
pub mod ddr;
|
pub mod ddr;
|
||||||
@@ -29,14 +30,13 @@ pub mod i2c;
|
|||||||
pub mod l2_cache;
|
pub mod l2_cache;
|
||||||
pub mod log;
|
pub mod log;
|
||||||
pub mod prelude;
|
pub mod prelude;
|
||||||
|
pub mod priv_tim;
|
||||||
pub mod qspi;
|
pub mod qspi;
|
||||||
pub mod slcr;
|
pub mod slcr;
|
||||||
pub mod spi;
|
pub mod spi;
|
||||||
pub mod time;
|
pub mod time;
|
||||||
pub mod ttc;
|
pub mod ttc;
|
||||||
pub mod uart;
|
pub mod uart;
|
||||||
pub mod priv_tim;
|
|
||||||
pub mod boot_image;
|
|
||||||
|
|
||||||
/// This enumeration encodes the various boot sources.
|
/// This enumeration encodes the various boot sources.
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(Debug, Copy, Clone)]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use arbitrary_int::{u2, u3, u6, Number};
|
use arbitrary_int::{Number, u2, u3, u6};
|
||||||
use zynq7000::{
|
use zynq7000::{
|
||||||
qspi::{
|
qspi::{
|
||||||
BaudRateDivisor, Config, InstructionCode, LinearQspiConfig, LoopbackMasterClockDelay,
|
BaudRateDivisor, Config, InstructionCode, LinearQspiConfig, LoopbackMasterClockDelay,
|
||||||
@@ -12,19 +12,19 @@ use zynq7000::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
PeriphSelect,
|
||||||
clocks::Clocks,
|
clocks::Clocks,
|
||||||
enable_amba_peripheral_clock,
|
enable_amba_peripheral_clock,
|
||||||
gpio::{
|
gpio::{
|
||||||
|
IoPeriphPin,
|
||||||
mio::{
|
mio::{
|
||||||
Mio0, Mio1, Mio10, Mio11, Mio12, Mio13, Mio2, Mio3, Mio4, Mio5, Mio6, Mio8, Mio9,
|
Mio0, Mio1, Mio2, Mio3, Mio4, Mio5, Mio6, Mio8, Mio9, Mio10, Mio11, Mio12, Mio13,
|
||||||
MioPinMarker, MuxConfig, Pin,
|
MioPinMarker, MuxConfig, Pin,
|
||||||
},
|
},
|
||||||
IoPeriphPin,
|
|
||||||
},
|
},
|
||||||
slcr::Slcr,
|
slcr::Slcr,
|
||||||
spi_mode_const_to_cpol_cpha,
|
spi_mode_const_to_cpol_cpha,
|
||||||
time::Hertz,
|
time::Hertz,
|
||||||
PeriphSelect,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub(crate) mod lqspi_configs;
|
pub(crate) mod lqspi_configs;
|
||||||
|
|||||||
@@ -22,10 +22,10 @@ pub mod eth;
|
|||||||
pub mod gic;
|
pub mod gic;
|
||||||
pub mod gpio;
|
pub mod gpio;
|
||||||
pub mod gtc;
|
pub mod gtc;
|
||||||
pub mod priv_tim;
|
|
||||||
pub mod i2c;
|
pub mod i2c;
|
||||||
pub mod l2_cache;
|
pub mod l2_cache;
|
||||||
pub mod mpcore;
|
pub mod mpcore;
|
||||||
|
pub mod priv_tim;
|
||||||
pub mod qspi;
|
pub mod qspi;
|
||||||
pub mod slcr;
|
pub mod slcr;
|
||||||
pub mod spi;
|
pub mod spi;
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ pub struct CpuPrivateTimer {
|
|||||||
interrupt_status: InterruptStatus,
|
interrupt_status: InterruptStatus,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl CpuPrivateTimer {
|
impl CpuPrivateTimer {
|
||||||
/// Create a new CPU Private Timer MMIO instance at the fixed base address.
|
/// Create a new CPU Private Timer MMIO instance at the fixed base address.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user