Sfoglia il codice sorgente

Add watchdog defs, fixes #329

teensy4-core
PaulStoffregen 6 anni fa
parent
commit
4b0abab261
1 ha cambiato i file con 26 aggiunte e 0 eliminazioni
  1. +26
    -0
      teensy4/imxrt.h

+ 26
- 0
teensy4/imxrt.h Vedi File

@@ -7122,6 +7122,18 @@ These register are used by the ROM code and should not be used by application so
#define WDOG2_WRSR (IMXRT_WDOG2.offset004)
#define WDOG2_WICR (IMXRT_WDOG2.offset006)
#define WDOG2_WMCR (IMXRT_WDOG2.offset008)
#define WDOG_WCR_WDZST ((uint16_t)(1<<0))
#define WDOG_WCR_WDBG ((uint16_t)(1<<1))
#define WDOG_WCR_WDE ((uint16_t)(1<<2))
#define WDOG_WCR_WDT ((uint16_t)(1<<3))
#define WDOG_WCR_SRS ((uint16_t)(1<<4))
#define WDOG_WCR_WDA ((uint16_t)(1<<5))
#define WDOG_WCR_SRE ((uint16_t)(1<<6))
#define WDOG_WCR_WDW ((uint16_t)(1<<7))
#define WDOG_WCR_WT(n) ((uint16_t)(((n) & 0xFF) << 8))
#define WDOG_WRSR_SFTW ((uint16_t)(1<<0))
#define WDOG_WRSR_TOUT ((uint16_t)(1<<1))
#define WDOG_WRSR_POR ((uint16_t)(1<<4))

// 59.3.1.1: page 3471
#define IMXRT_WDOG3 (*(IMXRT_REGISTER32_t *)0x400BC000)
@@ -7129,6 +7141,20 @@ These register are used by the ROM code and should not be used by application so
#define WDOG3_CNT (IMXRT_WDOG3.offset004)
#define WDOG3_TOVAL (IMXRT_WDOG3.offset008)
#define WDOG3_WIN (IMXRT_WDOG3.offset00C)
#define WDOG_CS_STOP ((uint16_t)(1<<0))
#define WDOG_CS_WAIT ((uint16_t)(1<<1))
#define WDOG_CS_DBG ((uint16_t)(1<<2))
#define WDOG_CS_TST(n) ((uint16_t)(((n) & 0x03) << 3))
#define WDOG_CS_UPDATE ((uint16_t)(1<<5))
#define WDOG_CS_INT ((uint16_t)(1<<6))
#define WDOG_CS_EN ((uint16_t)(1<<7))
#define WDOG_CS_CLK(n) ((uint16_t)(((n) & 0x03) << 8))
#define WDOG_CS_RCS ((uint16_t)(1<<10))
#define WDOG_CS_ULK ((uint16_t)(1<<11))
#define WDOG_CS_PRES ((uint16_t)(1<<12))
#define WDOG_CS_CMD32EN ((uint16_t)(1<<13))
#define WDOG_CS_FLG ((uint16_t)(1<<14))
#define WDOG_CS_WIN ((uint16_t)(1<<15))

// 60.4: page 3491
#define IMXRT_XBARA1 (*(IMXRT_REGISTER16_t *)0x403BC000)

Loading…
Annulla
Salva