Shubham Kulkarni | c75b3c7 | 2021-07-20 11:43:28 +0530 | [diff] [blame^] | 1 | /* |
2 | * Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd. | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: Apache-2.0 | ||||
5 | */ | ||||
6 | |||||
7 | #include <bootloader_wdt.h> | ||||
8 | #include <hal/wdt_hal.h> | ||||
9 | |||||
10 | void bootloader_wdt_feed(void) | ||||
11 | { | ||||
12 | wdt_hal_context_t rtc_wdt_ctx = {.inst = WDT_RWDT, .rwdt_dev = &RTCCNTL}; | ||||
13 | wdt_hal_write_protect_disable(&rtc_wdt_ctx); | ||||
14 | wdt_hal_feed(&rtc_wdt_ctx); | ||||
15 | wdt_hal_write_protect_enable(&rtc_wdt_ctx); | ||||
16 | } |