⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 watchdog.h

📁 A few drivers for the Motorola C380 s celluar phone hardware with a simple test application. It s co
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -