Browse Source

Merge pull request #294 from mjs513/master

Update imxrt.h
main
Paul Stoffregen 5 years ago
parent
commit
dd22b5bbb8
No account linked to committer's email address
1 changed files with 14 additions and 2 deletions
  1. +14
    -2
      teensy4/imxrt.h

+ 14
- 2
teensy4/imxrt.h View File

#define CCM_CBCMR_LCDIF_PODF_MASK ((uint32_t)(0x07 << 23)) #define CCM_CBCMR_LCDIF_PODF_MASK ((uint32_t)(0x07 << 23))
#define CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK ((uint32_t)(0x03 << 18)) #define CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK ((uint32_t)(0x03 << 18))
#define CCM_CBCMR_TRACE_CLK_SEL_MASK ((uint32_t)(0x03 << 14)) #define CCM_CBCMR_TRACE_CLK_SEL_MASK ((uint32_t)(0x03 << 14))
#define CCM_CBCMR_PERIPH_CLK2_SEL_MASK ((uint32_t)(0x03 << 12))
#define CCM_CBCMR_LPSPI_CLK_SEL_MASK ((uint32_t)(0x03 << 4)) #define CCM_CBCMR_LPSPI_CLK_SEL_MASK ((uint32_t)(0x03 << 4))
#define CCM_CSCMR1_FLEXSPI_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 29)) #define CCM_CSCMR1_FLEXSPI_CLK_SEL(n) ((uint32_t)(((n) & 0x03) << 29))
#define CCM_CSCMR1_FLEXSPI_PODF(n) ((uint32_t)(((n) & 0x07) << 23)) #define CCM_CSCMR1_FLEXSPI_PODF(n) ((uint32_t)(((n) & 0x07) << 23))
#define SRC_GPR9 (IMXRT_SRC.offset040) #define SRC_GPR9 (IMXRT_SRC.offset040)
#define SRC_GPR10 (IMXRT_SRC.offset044) #define SRC_GPR10 (IMXRT_SRC.offset044)


// 53.3: page 2986 TODO...
// 53.3: page 2986
#define IMXRT_TEMPMON (*(IMXRT_REGISTER32_t *)0x400F8180)
#define TEMPMON_TEMPSENSE0 (IMXRT_TEMPMON.offset000)
#define TEMPMON_TEMPSENSE0_SET (IMXRT_TEMPMON.offset004)
#define TEMPMON_TEMPSENSE0_CLR (IMXRT_TEMPMON.offset008)
#define TEMPMON_TEMPSENSE0_TOG (IMXRT_TEMPMON.offset08c)
#define TEMPMON_TEMPSENSE1 (IMXRT_TEMPMON.offset090)
#define TEMPMON_TEMPSENSE1_SET (IMXRT_TEMPMON.offset094)
#define TEMPMON_TEMPSENSE1_CLR (IMXRT_TEMPMON.offset098)
#define TEMPMON_TEMPSENSE1_TOG (IMXRT_TEMPMON.offset09C)
#define TEMPMON_TEMPSENSE2 (IMXRT_TEMPMON.offset100)
#define TEMPMON_TEMPSENSE2_SET (IMXRT_TEMPMON.offset104)
#define TEMPMON_TEMPSENSE2_CLR (IMXRT_TEMPMON.offset108)
#define TEMPMON_TEMPSENSE2_TOG (IMXRT_TEMPMON.offset10C)


// 54.3: page 2998 // 54.3: page 2998
#define IMXRT_TSC (*(IMXRT_REGISTER32_t *)0x400E0000) #define IMXRT_TSC (*(IMXRT_REGISTER32_t *)0x400E0000)

Loading…
Cancel
Save