Browse Source

align(32) funct_table for faster access

teensy4-core
Frank 6 years ago
parent
commit
cd0a7122b1
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy4/IntervalTimer.cpp

+ 1
- 1
teensy4/IntervalTimer.cpp View File

static void pit_isr(void); static void pit_isr(void);


#define NUM_CHANNELS 4 #define NUM_CHANNELS 4
static void (*funct_table[4])(void) = {dummy_funct, dummy_funct, dummy_funct, dummy_funct};
static void (*funct_table[4])(void) __attribute((aligned(32))) = {dummy_funct, dummy_funct, dummy_funct, dummy_funct} __attribute((aligned(32)));
uint8_t IntervalTimer::nvic_priorites[4] = {255, 255, 255, 255}; uint8_t IntervalTimer::nvic_priorites[4] = {255, 255, 255, 255};





Loading…
Cancel
Save