iwdg.h 650 B

1234567891011121314151617181920212223242526
  1. #ifndef __WTDG_H
  2. #define __WTDG_H
  3. #include "includes.h"
  4. #include "stm32f4xx_iwdg.h"
  5. #define CURRENT_DOG 0x00000001
  6. #define SOC_DOG 0x00000002
  7. #define ADC_DOG 0x00000004
  8. #define INCAN_RX_DOG 0x00000008
  9. #define INCAN_TX_DOG 0x00000010
  10. #define INCAN_INFO_DOG 0x00000020
  11. #define CAN2_TX_DOG 0x00000040
  12. #define CAN2_RX_DOG 0x00000080
  13. #define FAULT_DIG_DOG 0x00000100
  14. #define UART1_DOG 0x00000200
  15. #define UART3_DOG 0x00000400
  16. #define BALANCE_DOG 0x00000800
  17. #define MISC_DOG 0x00001000
  18. #define PROCESS_DOG 0x00002000
  19. extern OS_EVENT *wtdg_mutex;
  20. void iwdg_init(void);
  21. void iwdg_feed(INT32U dog);
  22. #endif