removed NVIC for cortex cpu, unused for xtensa
This commit is contained in:
@@ -55,13 +55,6 @@ async fn main(spawner: Spawner) {
|
||||
TIMER0.borrow_ref_mut(cs).replace(timer0);
|
||||
});
|
||||
|
||||
// enable NVIC entry for this timer
|
||||
interrupt::enable(
|
||||
peripherals::Interrupt::TG1_T0_LEVEL,
|
||||
interrupt::Priority::Priority2, // medium priority
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
// Initialize GPIO4 as output (starts LOW)
|
||||
let mut gpio4 = Output::new(peripherals.GPIO4, Level::Low, OutputConfig::default());
|
||||
|
||||
|
||||
@@ -57,13 +57,6 @@ async fn main(spawner: Spawner) {
|
||||
TIMER0.borrow_ref_mut(cs).replace(timer0);
|
||||
});
|
||||
|
||||
// enable NVIC entry for this timer
|
||||
interrupt::enable(
|
||||
peripherals::Interrupt::TG1_T0_LEVEL,
|
||||
interrupt::Priority::Priority2, // medium priority
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
// Initialize GPIO4 as output (starts LOW)
|
||||
let gpio4 = Output::new(peripherals.GPIO4, Level::Low, OutputConfig::default());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user