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) { |