common_gpio.h 395 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __COMMON_GPIO_H
  2. #define __COMMON_GPIO_H
  3. #include <stdbool.h>
  4. //
  5. void gpio_wdt_init(void);
  6. //
  7. void gpio_mbaddr_init(void);
  8. //
  9. uint8_t gpio_get_mbaddr(void);
  10. //
  11. bool gpio_check_mbaddr(uint8_t old_addr, uint8_t *new_addr);
  12. //
  13. void gpio_update_rev(void);
  14. //
  15. uint8_t gpio_get_board_rev(void);
  16. //
  17. void extern_wdt_togle(void);
  18. extern uint8_t board_rev;
  19. #endif // __COMMON_GPIO_H