소스 검색

Fix IntervalTimer on Teensy 3.5

teensy4-core
PaulStoffregen 8 년 전
부모
커밋
afbfd3b298
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      teensy3/IntervalTimer.cpp

+ 1
- 0
teensy3/IntervalTimer.cpp 파일 보기

@@ -50,6 +50,7 @@ bool IntervalTimer::beginCycles(void (*funct)(), uint32_t cycles)
channel->TFLG = 1;
} else {
SIM_SCGC6 |= SIM_SCGC6_PIT;
__asm__ volatile("nop"); // solves timing problem on Teensy 3.5
PIT_MCR = 1;
channel = KINETISK_PIT_CHANNELS;
while (1) {

Loading…
취소
저장