Browse Source

Merge pull request #300 from FrankBoesing/patch-4

default 128 priority for all interrupts
teensy4-core
Paul Stoffregen 5 years ago
parent
commit
188d382d43
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      teensy4/startup.c

+ 2
- 1
teensy4/startup.c View File

@@ -53,7 +53,8 @@ void ResetHandler(void)
SCB_CPACR = 0x00F00000;

// set up blank interrupt & exception vector table
for (i=0; i < 176; i++) _VectorsRam[i] = &unused_interrupt_vector;
for (i=0; i < NVIC_NUM_INTERRUPTS + 16; i++) _VectorsRam[i] = &unused_interrupt_vector;
for (i=0; i < NVIC_NUM_INTERRUPTS; i++) NVIC_SET_PRIORITY(i, 128);
SCB_VTOR = (uint32_t)_VectorsRam;

// Configure clocks

Loading…
Cancel
Save