Skip to content

Commit

Permalink
Fix examples and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Jul 20, 2022
1 parent ad5c0e4 commit 4591176
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 31 deletions.
16 changes: 0 additions & 16 deletions esp32-hal/.vscode/settings.json

This file was deleted.

6 changes: 0 additions & 6 deletions esp32-hal/examples/gpio_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ use esp32_hal::{
Cpu,
Delay,
RtcCntl,
Serial,
Timer,
};
use panic_halt as _;
use xtensa_lx::mutex::{Mutex, SpinLockMutex};
Expand All @@ -34,12 +32,8 @@ fn main() -> ! {
let timer_group0 = TimerGroup::new(peripherals.TIMG0, &clocks);
let mut wdt = timer_group0.wdt;

// Disable the TIMG watchdog timer.
let serial0 = Serial::new(peripherals.UART0);
let mut rtc_cntl = RtcCntl::new(peripherals.RTC_CNTL);

esp_println::println!("Hello esp_println!");

// Disable MWDT and RWDT (Watchdog) flash boot protection
wdt.disable();
rtc_cntl.set_wdt_global_enable(false);
Expand Down
4 changes: 0 additions & 4 deletions esp32s2-hal/examples/gpio_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ use esp32s2_hal::{
Cpu,
Delay,
RtcCntl,
Serial,
Timer
};
use panic_halt as _;
use xtensa_lx::mutex::{CriticalSectionMutex, Mutex};
Expand All @@ -35,8 +33,6 @@ fn main() -> ! {
let mut wdt = timer_group0.wdt;
let mut rtc_cntl = RtcCntl::new(peripherals.RTC_CNTL);

esp_println::println!("Hello esp_println!");

// Disable MWDT and RWDT (Watchdog) flash boot protection
wdt.disable();
rtc_cntl.set_wdt_global_enable(false);
Expand Down
2 changes: 0 additions & 2 deletions esp32s3-hal/examples/gpio_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ use esp32s3_hal::{
Cpu,
Delay,
RtcCntl,
Serial,
Timer,
};
use panic_halt as _;
use xtensa_lx::mutex::{Mutex, SpinLockMutex};
Expand Down
6 changes: 3 additions & 3 deletions esp32s3-hal/examples/timer_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ fn main() -> ! {
interrupt::CpuInterrupt::Interrupt20LevelPriority2,
);
interrupt::enable(
Cpu::ProCpu,
pac::Interrupt::TG1_T0_LEVEL,
interrupt::CpuInterrupt::Interrupt23LevelPriority3,
Cpu::ProCpu,
pac::Interrupt::TG1_T0_LEVEL,
interrupt::CpuInterrupt::Interrupt23LevelPriority3,
);
interrupt::enable(
Cpu::ProCpu,
Expand Down

0 comments on commit 4591176

Please sign in to comment.