blob: 64cbaeaa7d55d513733502152fdeda606a80a397 [file] [log] [blame]
Shubham Kulkarnic75b3c72021-07-20 11:43:28 +05301/*
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
10void 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}