瀏覽代碼

Merge pull request #107 from duff2013/master

Add SCB_SCR register definitions
main
Paul Stoffregen 8 年之前
父節點
當前提交
793f58fe39
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      teensy3/kinetis.h

+ 3
- 0
teensy3/kinetis.h 查看文件

@@ -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…
取消
儲存