Sfoglia il codice sorgente

Merge pull request #301 from FrankBoesing/patch-5

SCB_SHPR3 = 0x20000000;  // Systick = priority 32
main
Paul Stoffregen 6 anni fa
parent
commit
db94e10519
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      teensy4/startup.c

+ 1
- 0
teensy4/startup.c Vedi File

@@ -120,6 +120,7 @@ static void configure_systick(void)
SYST_RVR = (SYSTICK_EXT_FREQ / 1000) - 1;
SYST_CVR = 0;
SYST_CSR = SYST_CSR_TICKINT | SYST_CSR_ENABLE;
SCB_SHPR3 = 0x20000000; // Systick = priority 32
ARM_DEMCR |= ARM_DEMCR_TRCENA;
ARM_DWT_CTRL |= ARM_DWT_CTRL_CYCCNTENA; // turn on cycle counter
}

Loading…
Annulla
Salva