logic.h 372 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __LOGIC_H
  2. #define __LOGIC_H
  3. #include <stdbool.h>
  4. typedef struct
  5. {
  6. GPIO_TypeDef* port;
  7. uint16_t pin;
  8. } channel_t;
  9. //
  10. typedef struct
  11. {
  12. bool active;
  13. uint16_t cnt;
  14. } channel_cnt_t;
  15. //
  16. void channel_init(void);
  17. //
  18. void logic_single(void);
  19. //
  20. void logic_main(void);
  21. //
  22. void logic_set_out_pwm(void);
  23. //
  24. void wdt_init(void);
  25. #endif