       // by setting device.dividerClockspeed = F_BUS, divisor is exactly equal to value to put in timer
       sumpSetup.busClockDivisor = divisor;
 
+#if not Teensy_4_0
       sumpSetup.clockFrequency = F_BUS / (divisor + 1);
 
       if (F_CPU >= 144000000) {

  SUMPreset();
}


inline void waitForTimeout (void)
{
  #ifdef TIMING_DISCRETES     
    digitalWriteFast (TIMING_PIN_0, HIGH);
  #endif

  // for speed, to reduce jitter
  if (TIMER_FLAG_REGISTER)

/* Teensy Logic Analyzer
 * Copyright (c) 2020 LAtimes2
 *
 * The MIT License (MIT)
 *
