Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Раз уж пользуем stdint, так подключим его, а то другие модули могут его и не подключать, а ошибок нам не надо
- #include <stdint.h>
- // Внешние модули пусть видят только самое жизненно необходимое - да и так проще потом вспоминать, что тут надо вызывать
- #ifndef SLOW_TIMER_H
- #define SLOW_TIMER_H
- // Настройки
- #define SLOW_TIMER_COUNT 10
- #define SLOW_TIMER_NUMBER 5 //Timer name = TIMER5 or another
- #define SLOW_TIMER_FREQUENCY 500 // 2..1000
- void Init_Slow_Timer(void);
- int8_t Slow_Timer_Add(uint8_t mode, uint16_t counter, void (*handler)(void));
- void Slow_Timer_Delete(int8_t index);
- void Slow_Timer_Modify(int8_t index, uint8_t mode, uint16_t counter, uint16_t reload);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement