Browse Source

Fix IntervalTimer on Teensy 3.5

teensy4-core
PaulStoffregen 7 years ago
parent
commit
afbfd3b298
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy3/IntervalTimer.cpp

+ 1
- 0
teensy3/IntervalTimer.cpp View File

channel->TFLG = 1; channel->TFLG = 1;
} else { } else {
SIM_SCGC6 |= SIM_SCGC6_PIT; SIM_SCGC6 |= SIM_SCGC6_PIT;
__asm__ volatile("nop"); // solves timing problem on Teensy 3.5
PIT_MCR = 1; PIT_MCR = 1;
channel = KINETISK_PIT_CHANNELS; channel = KINETISK_PIT_CHANNELS;
while (1) { while (1) {

Loading…
Cancel
Save