| 1234567891011121314151617181920 |
- #ifndef __WATCHDOG_H
- #define __WATCHDOG_H
- /***********************************************************************************/
- #include "includes.h"
- #define EXTWATCHDOG_PIN GPIO_Pin_11
- #define EXTWATCHDOG_PORT GPIOA
- #define EXTWATCHDOG_HIGH (EXTWATCHDOG_PORT->BSRR = EXTWATCHDOG_PIN)
- #define EXTWATCHDOG_LOW (EXTWATCHDOG_PORT->BRR = EXTWATCHDOG_PIN)
- #define FEED_EXTWATCHDOG() GPIO_WriteBit(EXTWATCHDOG_PORT,EXTWATCHDOG_PIN, (BitAction) !GPIO_ReadOutputDataBit(EXTWATCHDOG_PORT,EXTWATCHDOG_PIN))
- extern void ExtWatchDogInit(void);
- #endif
- /***********************************************************************************/
|