File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
bsp/raspberrypi/exception Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ diff -uNr 19_kernel_heap/kernel/src/_arch/aarch64/time.rs 20_timer_callbacks/ker
5858+
5959+ /// The associated IRQ number.
6060+ pub const fn timeout_irq() -> exception::asynchronous::IRQNumber {
61- + bsp::exception::asynchronous::irq_map::ARM_NS_PHYISCAL_TIMER
61+ + bsp::exception::asynchronous::irq_map::ARM_NS_PHYSICAL_TIMER
6262+ }
6363+
6464+ /// Program a timer IRQ to be fired after `delay` has passed.
@@ -398,7 +398,7 @@ diff -uNr 19_kernel_heap/kernel/src/bsp/raspberrypi/exception/asynchronous.rs 20
398398
399399- pub const PL011_UART: IRQNumber = IRQNumber::Peripheral(PeripheralIRQ::new(57));
400400+ /// The non-secure physical timer IRQ number.
401- + pub const ARM_NS_PHYISCAL_TIMER : IRQNumber = IRQNumber::Local(LocalIRQ::new(1));
401+ + pub const ARM_NS_PHYSICAL_TIMER : IRQNumber = IRQNumber::Local(LocalIRQ::new(1));
402402+
403403+ pub(in crate::bsp) const PL011_UART: IRQNumber = IRQNumber::Peripheral(PeripheralIRQ::new(57));
404404 }
@@ -411,7 +411,7 @@ diff -uNr 19_kernel_heap/kernel/src/bsp/raspberrypi/exception/asynchronous.rs 20
411411
412412- pub const PL011_UART: IRQNumber = IRQNumber::new(153);
413413+ /// The non-secure physical timer IRQ number.
414- + pub const ARM_NS_PHYISCAL_TIMER : IRQNumber = IRQNumber::new(30);
414+ + pub const ARM_NS_PHYSICAL_TIMER : IRQNumber = IRQNumber::new(30);
415415+
416416+ pub(in crate::bsp) const PL011_UART: IRQNumber = IRQNumber::new(153);
417417 }
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ pub fn spin_for(duration: Duration) {
166166
167167/// The associated IRQ number.
168168pub const fn timeout_irq ( ) -> exception:: asynchronous:: IRQNumber {
169- bsp:: exception:: asynchronous:: irq_map:: ARM_NS_PHYISCAL_TIMER
169+ bsp:: exception:: asynchronous:: irq_map:: ARM_NS_PHYSICAL_TIMER
170170}
171171
172172/// Program a timer IRQ to be fired after `delay` has passed.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub mod irq_map {
1919 use super :: bsp:: device_driver:: { IRQNumber , LocalIRQ , PeripheralIRQ } ;
2020
2121 /// The non-secure physical timer IRQ number.
22- pub const ARM_NS_PHYISCAL_TIMER : IRQNumber = IRQNumber :: Local ( LocalIRQ :: new ( 1 ) ) ;
22+ pub const ARM_NS_PHYSICAL_TIMER : IRQNumber = IRQNumber :: Local ( LocalIRQ :: new ( 1 ) ) ;
2323
2424 pub ( in crate :: bsp) const PL011_UART : IRQNumber = IRQNumber :: Peripheral ( PeripheralIRQ :: new ( 57 ) ) ;
2525}
@@ -30,7 +30,7 @@ pub mod irq_map {
3030 use super :: bsp:: device_driver:: IRQNumber ;
3131
3232 /// The non-secure physical timer IRQ number.
33- pub const ARM_NS_PHYISCAL_TIMER : IRQNumber = IRQNumber :: new ( 30 ) ;
33+ pub const ARM_NS_PHYSICAL_TIMER : IRQNumber = IRQNumber :: new ( 30 ) ;
3434
3535 pub ( in crate :: bsp) const PL011_UART : IRQNumber = IRQNumber :: new ( 153 ) ;
3636}
You can’t perform that action at this time.
0 commit comments