Skip to content

Commit

Permalink
Don't manually disable RTC WDT
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Aug 30, 2023
1 parent 311693d commit 920cde6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ object-chain = { workspace = true }

[patch.crates-io]
# needed because of esp-wifi
esp-hal-common = { git = "https://github.com/esp-rs/esp-hal.git", rev = "92a2cc7" }
esp32s3-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "92a2cc7" }
esp-hal-common = { git = "https://github.com/esp-rs/esp-hal.git", rev = "4dd9fbd" }
esp32s3-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "4dd9fbd" }

[patch.'https://github.com/esp-rs/esp-wifi']
esp-wifi = { git = "https://github.com/bugadani/esp-wifi.git", branch = "dev" }
Expand Down
5 changes: 1 addition & 4 deletions src/board/hardware/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ impl super::startup::StartupResources {
let mut system = peripherals.SYSTEM.split();
let clocks = ClockControl::configure(system.clock_control, CpuClock::Clock240MHz).freeze();

let mut rtc = Rtc::new(peripherals.RTC_CNTL);
rtc.rwdt.disable();

embassy::init(&clocks, SystemTimer::new(peripherals.SYSTIMER));

let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);
Expand Down Expand Up @@ -152,7 +149,7 @@ impl super::startup::StartupResources {
}),
clocks,
peripheral_clock_control: system.peripheral_clock_control,
rtc,
rtc: Rtc::new(peripherals.RTC_CNTL),

misc_pins: MiscPins {
vbus_detect,
Expand Down
5 changes: 1 addition & 4 deletions src/board/hardware/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ impl super::startup::StartupResources {
let mut system = peripherals.SYSTEM.split();
let clocks = ClockControl::configure(system.clock_control, CpuClock::Clock240MHz).freeze();

let mut rtc = Rtc::new(peripherals.RTC_CNTL);
rtc.rwdt.disable();

embassy::init(&clocks, SystemTimer::new(peripherals.SYSTIMER));

let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);
Expand Down Expand Up @@ -215,8 +212,8 @@ impl super::startup::StartupResources {
)
}),
clocks,
rtc,
peripheral_clock_control: system.peripheral_clock_control,
rtc: Rtc::new(peripherals.RTC_CNTL),

misc_pins: MiscPins {
vbus_detect,
Expand Down

0 comments on commit 920cde6

Please sign in to comment.