blob: b9bcc6ea0526fc08bcf2a6abce381b9725ba9eff [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>
Almir Okato1dc71362022-04-14 01:18:07 -03009#include "soc/rtc.h"
Shubham Kulkarnic75b3c72021-07-20 11:43:28 +053010
11void bootloader_wdt_feed(void)
12{
Almir Okato54ef4842023-03-07 17:56:53 -030013 wdt_hal_context_t rtc_wdt_ctx = RWDT_HAL_CONTEXT_DEFAULT();
Shubham Kulkarnic75b3c72021-07-20 11:43:28 +053014 wdt_hal_write_protect_disable(&rtc_wdt_ctx);
15 wdt_hal_feed(&rtc_wdt_ctx);
16 wdt_hal_write_protect_enable(&rtc_wdt_ctx);
17}