Browse Source

track millis - no magic

teensy4-core
Defragster 6 years ago
parent
commit
f5df47d9e5
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy4/EventResponder.cpp

+ 1
- 1
teensy4/EventResponder.cpp View File

extern "C" volatile uint32_t systick_cycle_count; extern "C" volatile uint32_t systick_cycle_count;
extern "C" void systick_isr(void) extern "C" void systick_isr(void)
{ {
systick_cycle_count += F_CPU_ACTUAL/1000;
systick_cycle_count = ARM_DWT_CYCCNT;
systick_millis_count++; systick_millis_count++;
MillisTimer::runFromTimer(); MillisTimer::runFromTimer();
} }

Loading…
Cancel
Save