Sfoglia il codice sorgente

Merge pull request #452 from FrankBoesing/patch-4

Fix Macro clockCyclesPerMicrosecond
main
Paul Stoffregen 4 anni fa
parent
commit
eda37ec204
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      teensy4/wiring.h

+ 1
- 1
teensy4/wiring.h Vedi File

@@ -157,7 +157,7 @@ extern long double pow10l(long double x);
#define interrupts() __enable_irq()
#define noInterrupts() __disable_irq()

#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
#define clockCyclesPerMicrosecond() ( F_CPU_ACTUAL / 1000000L )
#define clockCyclesToMicroseconds(a) ( (a) / clockCyclesPerMicrosecond() )
#define microsecondsToClockCycles(a) ( (a) * clockCyclesPerMicrosecond() )


Loading…
Annulla
Salva