1 /* 2 * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #pragma once 7 8 #include <stdbool.h> 9 10 void print_banner(void); 11 int read_bootloader_header(void); 12 int check_bootloader_validity(void); 13 void config_wdt(void); 14 15 16 #if defined(CONFIG_SOC_SERIES_ESP32) || defined (CONFIG_SOC_SERIES_ESP32S3) 17 void wdt_reset_info_dump(int cpu); 18 #endif 19 20 void wdt_reset_cpu0_info_enable(void); 21 22 #if defined(CONFIG_SOC_SERIES_ESP32) 23 void reset_mmu(void); 24 #endif 25 26 #if !defined(CONFIG_SOC_SERIES_ESP32) 27 void super_wdt_auto_feed(void); 28 #endif 29 30 31 void check_wdt_reset(void); 32 33 void soc_hw_init(void); 34 35 void ana_super_wdt_reset_config(bool enable); 36 37 void ana_bod_reset_config(bool enable); 38 39 void ana_clock_glitch_reset_config(bool enable); 40 41 void ana_reset_config(void); 42