Hi
Why is ARM_DWT_CYCCNT running default on Teensy 4.x and not on Teensy 3.x?
Are there disadvantages on having the following code in setup by default?
Why is ARM_DWT_CYCCNT running default on Teensy 4.x and not on Teensy 3.x?
Are there disadvantages on having the following code in setup by default?
Code:
if ( ARM_DWT_CYCCNT == ARM_DWT_CYCCNT )
{ // Enable CPU Cycle Counter
ARM_DEMCR |= ARM_DEMCR_TRCENA; // enable debug/trace
ARM_DWT_CTRL |= ARM_DWT_CTRL_CYCCNTENA; // enable cycle counter
}