one zero too much, delete obsolete module
This commit is contained in:
@ -20,7 +20,6 @@ pub mod gpio;
|
||||
pub mod gtc;
|
||||
pub mod i2c;
|
||||
pub mod log;
|
||||
pub mod mmu;
|
||||
pub mod prelude;
|
||||
pub mod slcr;
|
||||
pub mod spi;
|
||||
|
@ -1,16 +0,0 @@
|
||||
use zynq_mmu::L1Table;
|
||||
|
||||
pub struct Mmu(&'static mut L1Table);
|
||||
|
||||
impl Mmu {
|
||||
#[inline]
|
||||
pub const fn new(table: &'static mut L1Table) -> Self {
|
||||
Mmu(table)
|
||||
}
|
||||
|
||||
pub fn update_l1_table(&mut self, f: impl FnOnce(&mut L1Table)) {
|
||||
// TODO: Disable MMU
|
||||
f(self.0);
|
||||
// DSB, ISB? enable MMU again.
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user