mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
c34049a323
The ROM patch for chips missing clock source configuration in wdt_hal_init was re-implementing the full function in IRAM. Instead, delegate to the ROM version and only append the missing clock configuration afterwards, saving ~550 bytes of IRAM.
26 lines
709 B
Plaintext
26 lines
709 B
Plaintext
/*
|
|
* SPDX-FileCopyrightText: 2022-2026 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
/***************************************
|
|
Group hal_wdt
|
|
***************************************/
|
|
|
|
/* Functions */
|
|
|
|
/* Patch init/deinit to add clock configuration missing from ROM version */
|
|
rom_wdt_hal_init = 0x4000038c;
|
|
rom_wdt_hal_deinit = 0x40000390;
|
|
|
|
/* Functions */
|
|
wdt_hal_config_stage = 0x40000394;
|
|
wdt_hal_write_protect_disable = 0x40000398;
|
|
wdt_hal_write_protect_enable = 0x4000039c;
|
|
wdt_hal_enable = 0x400003a0;
|
|
wdt_hal_disable = 0x400003a4;
|
|
wdt_hal_handle_intr = 0x400003a8;
|
|
wdt_hal_feed = 0x400003ac;
|
|
wdt_hal_set_flashboot_en = 0x400003b0;
|
|
wdt_hal_is_enabled = 0x400003b4;
|