Browse Source

Merge pull request #300 from FrankBoesing/patch-4

default 128 priority for all interrupts
main
Paul Stoffregen 6 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

SCB_CPACR = 0x00F00000; SCB_CPACR = 0x00F00000;


// set up blank interrupt & exception vector table // 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; SCB_VTOR = (uint32_t)_VectorsRam;


// Configure clocks // Configure clocks

Loading…
Cancel
Save