OVMS3-idf/components/esp32/include/esp_task_wdt.h

73 lines
1.4 KiB
C
Raw Normal View History

2016-10-25 10:18:11 +00:00
// 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();
2016-10-25 10:18:11 +00:00
/**
* @brief Delete the watchdog for the current task.
*
* @param null
*
* @return null
*/
void task_wdt_delete();
2016-10-25 10:18:11 +00:00
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif