Browse Source

default 128 priority for all interrupts

main
Frank 5 years ago
parent
commit
95ad3b5a30
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