logic.h 495 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_string(void);
  21. //
  22. void logic_string_next(void);
  23. //
  24. void logic_cnt_task(void);
  25. //
  26. void logic_main(void);
  27. //
  28. void logic_set_out_pwm(void);
  29. //
  30. void wdt_init(void);
  31. //
  32. void logic_led_freq(void);
  33. #endif