WatchDog.h 634 B

1234567891011121314151617181920
  1. #ifndef __WATCHDOG_H
  2. #define __WATCHDOG_H
  3. /***********************************************************************************/
  4. #include "includes.h"
  5. #define EXTWATCHDOG_PIN GPIO_Pin_11
  6. #define EXTWATCHDOG_PORT GPIOA
  7. #define EXTWATCHDOG_HIGH (EXTWATCHDOG_PORT->BSRR = EXTWATCHDOG_PIN)
  8. #define EXTWATCHDOG_LOW (EXTWATCHDOG_PORT->BRR = EXTWATCHDOG_PIN)
  9. #define FEED_EXTWATCHDOG() GPIO_WriteBit(EXTWATCHDOG_PORT,EXTWATCHDOG_PIN, (BitAction) !GPIO_ReadOutputDataBit(EXTWATCHDOG_PORT,EXTWATCHDOG_PIN))
  10. extern void ExtWatchDogInit(void);
  11. #endif
  12. /***********************************************************************************/