Skip to content

Commit

Permalink
Merge pull request #106 from card-io-ecg/wdt
Browse files Browse the repository at this point in the history
Don't manually disable RTC WDT
  • Loading branch information
bugadani authored Aug 30, 2023
2 parents e8d4f7b + 4adf4c3 commit 2969589
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 @@ -116,8 +116,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 = "32d1ea0" }
esp32s3-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "32d1ea0" }
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 @@ -144,7 +141,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: io.pins.gpio47.into(),
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 @@ -206,8 +203,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: io.pins.gpio17.into(),
Expand Down

0 comments on commit 2969589

Please sign in to comment.