watchdog.h

来自「A few drivers for the Motorola C380 s ce」· C头文件 代码 · 共 35 行

H
35
字号
#ifndef WATCHDOG_DRV_H
#define WATCHDOG_DRV_H
#include "../libs/motolibs.h"/* Flags for wdog_init() *//* Tells Watchdog to generate wdog_b signal instead of a reset signal */#define WDOG_INIT_FLAG_WDOGB 0x8/* Enables Watchdog */#define WDOG_INIT_FLAG_ENABLE 0x4/* Tells Watchdog to suspend operation in debug mode */#define WDOG_INIT_FLAG_DBUG 0x2/* Tells Watchdog to suspend operation in low-power modes */#define WDOG_INIT_FLAG_DZST 0x1/* A mask to filter WDOG_INIT_* flags */#define WDOG_INIT_FLAGS_MASK 0xF/* Resets Watchdog timer */void wdog_service(void);/* Issues a software reset */
void wdog_reset(void);/* Issues a software powerdown */
void wdog_assert(void);/* Initializes Watchdog and configures as specified */
void wdog_init(byte timeout, byte flags);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?