stm32_iwdg.h 381 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2018-2019, STMicroelectronics - All Rights Reserved
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef STM32_IWDG_H
  7. #define STM32_IWDG_H
  8. #include <stdint.h>
  9. #define IWDG_HW_ENABLED BIT(0)
  10. #define IWDG_DISABLE_ON_STOP BIT(1)
  11. #define IWDG_DISABLE_ON_STANDBY BIT(2)
  12. int stm32_iwdg_init(void);
  13. void stm32_iwdg_refresh(void);
  14. #endif /* STM32_IWDG_H */