123456789101112131415161718192021 |
- #ifndef __WATCHDOG_H
- #define __WATCHDOG_H
- /***********************************************************************************/
- #include "includes.h"
- #define EXTWATCHDOG_PIN GPIO_Pin_1
- #define EXTWATCHDOG_PORT GPIOA
- #define EXTWATCHDOG_HIGH (EXTWATCHDOG_PORT->BSRR = EXTWATCHDOG_PIN)
- #define EXTWATCHDOG_LOW (EXTWATCHDOG_PORT->BRR = EXTWATCHDOG_PIN)
- //#define FEED_EXTWATCHDOG() do{EXTWATCHDOG_HIGH;__nop();__nop();__nop();__nop();EXTWATCHDOG_LOW;}while(0);
- #define FEED_EXTWATCHDOG() GPIO_WriteBit(EXTWATCHDOG_PORT,EXTWATCHDOG_PIN, (BitAction) !GPIO_ReadOutputDataBit(EXTWATCHDOG_PORT,EXTWATCHDOG_PIN))
- extern void ExtWatchDogInit(void);
- #endif
- /***********************************************************************************/
|