Timers.h 433 B

12345678910111213141516171819
  1. #ifndef INCLUDE_TIMERS_H
  2. #define INCLUDE_TIMERS_H
  3. #include <cstdint>
  4. namespace Nspire
  5. {
  6. namespace Timers
  7. {
  8. void init(uint32_t timer);
  9. void restore(uint32_t timer);
  10. void mode(uint32_t timer, bool free_run, bool oneshot, bool interrupt,
  11. uint32_t div, bool full_width_counter);
  12. void load(uint32_t timer, uint32_t value);
  13. uint32_t read(uint32_t timer);
  14. }
  15. }
  16. #endif