?? hal_wdog.h
字號:
/* Copyright (c) 2008 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRENTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
* $LastChangedRevision$
*/
/** @file
* Interface for Watchdog HAL
* @defgroup nordic_hal_wdog Watchdog timer
* @{
* @ingroup nordic_hal
*
* @brief Interface functions for the watchdog
*
* The on-chip watchdog counter is intended to force a system reset if the software hangs.
* This module contains functions for initializing and enabling the watchdog, reloading
* the watchdog ("kicking the dog") and for reading the current watchdog counter value.
*
* @author Rune Brandsegg
*/
#ifndef HAL_WDOG_H__
#define HAL_WDOG_H__
#include <stdint.h>
#include <stdbool.h>
/** Function to initialize and enable the watch dog.
*
* @remark Remember to enable the low frequency clock before use
* @param cnt The value to load into the watch dog counter.
*/
void hal_wdog_init(uint16_t start_value);
/** Function to reload the watch dog.
* This function reloads the watch dog counter with the parameter given in the
* hal_wdog_init function.
*/
void hal_wdog_restart(void);
#endif // HAL_WDOG_H__
/**
@}
@} */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -