Selaa lähdekoodia

Merge pull request #296 from FrankBoesing/patch-1

Reset Control Bit Definitions
main
Paul Stoffregen 5 vuotta sitten
vanhempi
commit
7d9032cca2
No account linked to committer's email address
1 muutettua tiedostoa jossa 26 lisäystä ja 1 poistoa
  1. +26
    -1
      teensy4/imxrt.h

+ 26
- 1
teensy4/imxrt.h Näytä tiedosto

@@ -6618,7 +6618,9 @@ typedef struct {
#define SRC_SBMR1 (IMXRT_SRC.offset004)
#define SRC_SRSR (IMXRT_SRC.offset008)
#define SRC_SBMR2 (IMXRT_SRC.offset01C)
#define SRC_GPR1 (IMXRT_SRC.offset020)
/*
These register are used by the ROM code and should not be used by application software
#define SRC_GPR1 (IMXRT_SRC.offset020)
#define SRC_GPR2 (IMXRT_SRC.offset024)
#define SRC_GPR3 (IMXRT_SRC.offset028)
#define SRC_GPR4 (IMXRT_SRC.offset02C)
@@ -6628,6 +6630,29 @@ typedef struct {
#define SRC_GPR8 (IMXRT_SRC.offset03C)
#define SRC_GPR9 (IMXRT_SRC.offset040)
#define SRC_GPR10 (IMXRT_SRC.offset044)
*/
#define SRC_SCR_MASK_WDOG3_RST(n) ((uint32_t)(((n) & 0x0f) << 28))
#define SRC_SCR_DBG_RST_MSK_PG ((uint32_t)(1 << 25))
#define SRC_SCR_CORE0_DBG_RST ((uint32_t)(1 << 17))
#define SRC_SCR_CORE0_RST ((uint32_t)(1 << 13))
#define SRC_SCR_MASK_WDOG_RST(n) ((uint32_t)(((n) & 0x0f) << 7))
#define SRC_SBMR1_BOOT_CFG4(n) ((uint32_t)(((n) & 0xff) << 24))
#define SRC_SBMR1_BOOT_CFG3(n) ((uint32_t)(((n) & 0xff) << 16))
#define SRC_SBMR1_BOOT_CFG2(n) ((uint32_t)(((n) & 0xff) << 8))
#define SRC_SBMR1_BOOT_CFG1(n) ((uint32_t)(((n) & 0xff) << 0))
#define SRC_SRSR_TEMPSENSE_RST_B ((uint32_t)(1 << 8))
#define SRC_SRSR_WDOG3_RST_B ((uint32_t)(1 << 7))
#define SRC_SRSR_JTAG_SW_RST ((uint32_t)(1 << 6))
#define SRC_SRSR_JTAG_RST_B ((uint32_t)(1 << 5))
#define SRC_SRSR_WDOG_RST_B ((uint32_t)(1 << 4))
#define SRC_SRSR_IPP_USER_RESET_B ((uint32_t)(1 << 3))
#define SRC_SRSR_CSU_RESET_B ((uint32_t)(1 << 2))
#define SRC_SRSR_LOCKUP_SYSRESETREQ ((uint32_t)(1 << 1))
#define SRC_SRSR_IPP_RESET_B ((uint32_t)(1 << 0))
#define SRC_SBMR2_BMOD(n) ((uint32_t)(((n) & 0x03) << 24))
#define SRC_SBMR2_BT_FUSE_SEL ((uint32_t)(1 << 4))
#define SRC_SBMR2_DIR_BT_DIS ((uint32_t)(1 << 3))
#define SRC_SBMR2_SEC_CONFIG(n) ((uint32_t)(((n) & 0x03) << 0))

// 53.3: page 2986
#define IMXRT_TEMPMON (*(IMXRT_REGISTER32_t *)0x400F8180)

Loading…
Peruuta
Tallenna