Sfoglia il codice sorgente

Merge pull request #107 from duff2013/master

Add SCB_SCR register definitions
main
Paul Stoffregen 9 anni fa
parent
commit
793f58fe39
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      teensy3/kinetis.h

+ 3
- 0
teensy3/kinetis.h Vedi File

@@ -4536,6 +4536,9 @@ typedef struct __attribute__((packed)) {
#define SCB_VTOR (*(volatile uint32_t *)0xE000ED08) // Vector Table Offset
#define SCB_AIRCR (*(volatile uint32_t *)0xE000ED0C) // Application Interrupt and Reset Control
#define SCB_SCR (*(volatile uint32_t *)0xE000ED10) // System Control Register
#define SCB_SCR_SEVONPEND ((uint8_t)0x10) // Send Event on Pending bit
#define SCB_SCR_SLEEPDEEP ((uint8_t)0x04) // Sleep or Deep Sleep
#define SCB_SCR_SLEEPONEXIT ((uint8_t)0x02) // Sleep-on-exit
#define SCB_CCR (*(volatile uint32_t *)0xE000ED14) // Configuration and Control
#define SCB_SHPR1 (*(volatile uint32_t *)0xE000ED18) // System Handler Priority Register 1
#define SCB_SHPR2 (*(volatile uint32_t *)0xE000ED1C) // System Handler Priority Register 2

Loading…
Annulla
Salva