Sfoglia il codice sorgente

Fix NVIC_TRIGGER_IRQ on Teensy-LC

teensy4-core
PaulStoffregen 9 anni fa
parent
commit
0dcc3a1f5e
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      teensy3/kinetis.h

+ 4
- 0
teensy3/kinetis.h Vedi File

@@ -2915,7 +2915,11 @@ typedef struct __attribute__((packed)) {
#define NVIC_CLEAR_PENDING(n) (*((volatile uint32_t *)0xE000E280 + ((n) >> 5)) = (1 << ((n) & 31)))
#define NVIC_IS_PENDING(n) (*((volatile uint32_t *)0xE000E200 + ((n) >> 5)) & (1 << ((n) & 31)))
#define NVIC_IS_ACTIVE(n) (*((volatile uint32_t *)0xE000E300 + ((n) >> 5)) & (1 << ((n) & 31)))
#ifdef KINETISK
#define NVIC_TRIGGER_IRQ(n) NVIC_STIR=(n)
#else
#define NVIC_TRIGGER_IRQ(n) NVIC_SET_PENDING(n)
#endif

#define NVIC_ISER0 (*(volatile uint32_t *)0xE000E100)
#define NVIC_ISER1 (*(volatile uint32_t *)0xE000E104)

Loading…
Annulla
Salva