Skip to content

Commit

Permalink
Simplify module paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed Dec 22, 2023
1 parent 2ee1fe8 commit 9786dc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esp-hal-common/src/soc/esp32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ pub unsafe extern "C" fn ESP32Reset() -> ! {
}

// set stack pointer to end of memory: no need to retain stack up to this point
esp_hal_common::xtensa_lx::set_stack_pointer(&mut _stack_start_cpu0);
xtensa_lx::set_stack_pointer(&mut _stack_start_cpu0);

// copying data from flash to various data segments is done by the bootloader
// initialization to zero needs to be done by the application

// Initialize RTC RAM
esp_hal_common::xtensa_lx_rt::zero_bss(&mut _rtc_fast_bss_start, &mut _rtc_fast_bss_end);
esp_hal_common::xtensa_lx_rt::zero_bss(&mut _rtc_slow_bss_start, &mut _rtc_slow_bss_end);
xtensa_lx_rt::zero_bss(&mut _rtc_fast_bss_start, &mut _rtc_fast_bss_end);
xtensa_lx_rt::zero_bss(&mut _rtc_slow_bss_start, &mut _rtc_slow_bss_end);

// continue with default reset handler
esp_hal_common::xtensa_lx_rt::Reset();
xtensa_lx_rt::Reset();
}

/// The ESP32 has a first stage bootloader that handles loading program data
Expand Down

0 comments on commit 9786dc6

Please sign in to comment.