mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
73 lines
1.4 KiB
C
73 lines
1.4 KiB
C
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef __ESP_TASK_WDT_H
|
|
#define __ESP_TASK_WDT_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
/** \defgroup Watchdog_APIs Watchdog APIs
|
|
* @brief Watchdog APIs
|
|
*/
|
|
|
|
/** @addtogroup Watchdog_APIs
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @brief Initialize the task watchdog. This is called in the init code, no need to
|
|
* call it explicitly.
|
|
*
|
|
* @param null
|
|
*
|
|
* @return null
|
|
*/
|
|
void task_wdt_init();
|
|
|
|
/**
|
|
* @brief Feed the watchdog. After the first feeding session, the watchdog will expect the calling
|
|
* task to keep feeding the watchdog until task_wdt_delete() is called.
|
|
*
|
|
* @param null
|
|
*
|
|
* @return null
|
|
*/
|
|
|
|
void task_wdt_feed();
|
|
|
|
|
|
/**
|
|
* @brief Delete the watchdog for the current task.
|
|
*
|
|
* @param null
|
|
*
|
|
* @return null
|
|
*/
|
|
void task_wdt_delete();
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
|
|
#endif |