dev_systick.c 291 B

123456789101112131415161718
  1. #include "dev_systick.h"
  2. volatile static uint32_t delay;
  3. volatile uint32_t sys_tick_u32 = 0;
  4. static uint32_t fac_us = 168;
  5. void dev_systick_decrement(void)
  6. {
  7. if (0u != delay)
  8. {
  9. delay--;
  10. }
  11. }
  12. void dev_systick_increase(void)
  13. {
  14. sys_tick_u32++;
  15. }