50 #ifndef ti_dl_m0p_dl_sysctl_sysctl__include 51 #define ti_dl_m0p_dl_sysctl_sysctl__include 56 #include <ti/devices/msp/msp.h> 74 #define DL_SYSCTL_RESET_SYSRST (SYSCTL_RESETLEVEL_LEVEL_CPU) 79 #define DL_SYSCTL_RESET_CPU (DL_SYSCTL_RESET_SYSRST) 87 #define DL_SYSCTL_RESET_BOOT (SYSCTL_RESETLEVEL_LEVEL_BOOT) 94 #define DL_SYSCTL_RESET_POR (SYSCTL_RESETLEVEL_LEVEL_POR) 99 #define DL_SYSCTL_RESET_BOOTLOADER_EXIT \ 100 (SYSCTL_RESETLEVEL_LEVEL_BOOTLOADEREXIT) 105 #define DL_SYSCTL_RESET_BOOTLOADER_ENTRY \ 106 (SYSCTL_RESETLEVEL_LEVEL_BOOTLOADERENTRY) 113 #define DL_SYSCTL_NMI_SRAM_DED (SYSCTL_NMIISET_SRAMDED_SET) 115 #define DL_SYSCTL_NMI_FLASH_DED (SYSCTL_NMIISET_FLASHDED_SET) 117 #define DL_SYSCTL_NMI_LFCLK_FAIL (SYSCTL_NMIISET_LFCLKFAIL_SET) 119 #define DL_SYSCTL_NMI_WWDT1_FAULT (SYSCTL_NMIISET_WWDT1_SET) 121 #define DL_SYSCTL_NMI_WWDT0_FAULT (SYSCTL_NMIISET_WWDT0_SET) 123 #define DL_SYSCTL_NMI_BORLVL (SYSCTL_NMIISET_BORLVL_SET) 130 #define DL_SYSCTL_INTERRUPT_LFOSC_GOOD (SYSCTL_IMASK_LFOSCGOOD_ENABLE) 132 #define DL_SYSCTL_INTERRUPT_ANALOG_CLOCK_ERROR (SYSCTL_IMASK_ANACLKERR_ENABLE) 134 #define DL_SYSCTL_INTERRUPT_FLASH_SEC (SYSCTL_IMASK_FLASHSEC_ENABLE) 137 #define DL_SYSCTL_INTERRUPT_SRAM_SEC (SYSCTL_IMASK_SRAMSEC_ENABLE) 140 #define DL_SYSCTL_INTERRUPT_LFXT_GOOD (SYSCTL_IMASK_LFXTGOOD_ENABLE) 142 #define DL_SYSCTL_INTERRUPT_HFCLK_GOOD (SYSCTL_IMASK_HFCLKGOOD_ENABLE) 144 #define DL_SYSCTL_INTERRUPT_SYSPLL_GOOD (SYSCTL_IMASK_SYSPLLGOOD_ENABLE) 146 #define DL_SYSCTL_INTERRUPT_HSCLK_GOOD (SYSCTL_IMASK_HSCLKGOOD_ENABLE) 154 #define DL_SYSCTL_CLK_STATUS_ANACOMP_ERROR (SYSCTL_CLKSTATUS_ACOMPHSCLKERR_TRUE) 156 #define DL_SYSCTL_CLK_STATUS_OPAMP_ERROR (SYSCTL_CLKSTATUS_OPAMPCLKERR_TRUE) 158 #define DL_SYSCTL_CLK_STATUS_SYSPLL_CONFIG_BLOCKED \ 159 (SYSCTL_CLKSTATUS_SYSPLLBLKUPD_TRUE) 161 #define DL_SYSCTL_CLK_STATUS_HFCLK_CONFIG_BLOCKED \ 162 (SYSCTL_CLKSTATUS_HFCLKBLKUPD_TRUE) 164 #define DL_SYSCTL_CLK_STATUS_FCL_ON (SYSCTL_CLKSTATUS_FCLMODE_ENABLED) 166 #define DL_SYSCTL_CLK_STATUS_LFCLK_FAIL (SYSCTL_CLKSTATUS_LFCLKFAIL_TRUE) 168 #define DL_SYSCTL_CLK_STATUS_HSCLK_GOOD (SYSCTL_CLKSTATUS_HSCLKGOOD_TRUE) 170 #define DL_SYSCTL_CLK_STATUS_HSCLK_FAULT (SYSCTL_CLKSTATUS_HSCLKDEAD_TRUE) 172 #define DL_SYSCTL_CLK_STATUS_SYSPLL_OFF (SYSCTL_CLKSTATUS_SYSPLLOFF_TRUE) 174 #define DL_SYSCTL_CLK_STATUS_HFCLK_OFF (SYSCTL_CLKSTATUS_HFCLKOFF_TRUE) 176 #define DL_SYSCTL_CLK_STATUS_HSCLK_OFF (SYSCTL_CLKSTATUS_HSCLKSOFF_TRUE) 178 #define DL_SYSCTL_CLK_STATUS_LFOSC_GOOD (SYSCTL_CLKSTATUS_LFOSCGOOD_TRUE) 180 #define DL_SYSCTL_CLK_STATUS_LFXT_GOOD (SYSCTL_CLKSTATUS_LFXTGOOD_TRUE) 182 #define DL_SYSCTL_CLK_STATUS_SYSPLL_GOOD (SYSCTL_CLKSTATUS_SYSPLLGOOD_TRUE) 184 #define DL_SYSCTL_CLK_STATUS_HFCLK_GOOD (SYSCTL_CLKSTATUS_HFCLKGOOD_TRUE) 186 #define DL_SYSCTL_CLK_STATUS_MCLK_SOURCE_HSCLK (SYSCTL_CLKSTATUS_HSCLKMUX_HSCLK) 188 #define DL_SYSCTL_CLK_STATUS_MCLK_SOURCE_LFCLK \ 189 (SYSCTL_CLKSTATUS_CURMCLKSEL_LFCLK) 191 #define DL_SYSCTL_CLK_STATUS_ANALOG_CLOCK_ERROR \ 192 (SYSCTL_CLKSTATUS_ANACLKERR_TRUE) 194 #define DL_SYSCTL_CLK_STATUS_FCC_DONE (SYSCTL_CLKSTATUS_FCCDONE_DONE) 196 #define DL_SYSCTL_CLK_STATUS_LFCLK_SOURCE_LFXT (SYSCTL_CLKSTATUS_LFCLKMUX_LFXT) 198 #define DL_SYSCTL_CLK_STATUS_LFCLK_SOURCE_EXLF (SYSCTL_CLKSTATUS_LFCLKMUX_EXLF) 200 #define DL_SYSCTL_CLK_STATUS_SYSOSC_4MHZ (SYSCTL_CLKSTATUS_SYSOSCFREQ_SYSOSC4M) 202 #define DL_SYSCTL_CLK_STATUS_SYSOSC_USERTRIM_FREQ \ 203 (SYSCTL_CLKSTATUS_SYSOSCFREQ_SYSOSCUSER) 205 #define DL_SYSCTL_CLK_STATUS_HSCLK_SOURCE_HFCLK \ 206 (SYSCTL_CLKSTATUS_CURHSCLKSEL_HFCLK) 214 #define DL_SYSCTL_STATUS_SHUTDOWN_IO_LOCK_TRUE \ 215 (SYSCTL_SYSSTATUS_SHDNIOLOCK_TRUE) 217 #define DL_SYSCTL_STATUS_EXT_RESET_PIN_DISABLED \ 218 (SYSCTL_SYSSTATUS_EXTRSTPINDIS_TRUE) 220 #define DL_SYSCTL_STATUS_SWD_DISABLED (SYSCTL_SYSSTATUS_SWDCFGDIS_TRUE) 223 #define DL_SYSCTL_STATUS_PMU_IFREF_GOOD (SYSCTL_SYSSTATUS_PMUIREFGOOD_TRUE) 225 #define DL_SYSCTL_STATUS_VBOOST_GOOD (SYSCTL_SYSSTATUS_ANACPUMPGOOD_TRUE) 227 #define DL_SYSCTL_STATUS_BOR_EVENT (SYSCTL_SYSSTATUS_BORLVL_TRUE) 229 #define DL_SYSCTL_STATUS_MCAN0_READY (SYSCTL_SYSSTATUS_MCAN0READY_TRUE) 231 #define DL_SYSCTL_STATUS_FLASH_DED (SYSCTL_SYSSTATUS_FLASHDED_TRUE) 233 #define DL_SYSCTL_STATUS_FLASH_SEC (SYSCTL_SYSSTATUS_FLASHSEC_TRUE) 235 #define DL_SYSCTL_STATUS_BOR_LEVEL0 \ 236 (SYSCTL_SYSSTATUS_BORCURTHRESHOLD_BORMIN) 238 #define DL_SYSCTL_STATUS_BOR_LEVEL1 (SYSCTL_SYSSTATUS_BORCURTHRESHOLD_BORLEVEL1) 240 #define DL_SYSCTL_STATUS_BOR_LEVEL2 (SYSCTL_SYSSTATUS_BORCURTHRESHOLD_BORLEVEL2) 242 #define DL_SYSCTL_STATUS_BOR_LEVEL3 (SYSCTL_SYSSTATUS_BORCURTHRESHOLD_BORLEVEL3) 249 #define DL_SYSCTL_SYSPLL_CLK2X_ENABLE (SYSCTL_SYSPLLCFG0_ENABLECLK2X_ENABLE) 252 #define DL_SYSCTL_SYSPLL_CLK2X_DISABLE (SYSCTL_SYSPLLCFG0_ENABLECLK2X_DISABLE) 259 #define DL_SYSCTL_SYSPLL_CLK1_ENABLE (SYSCTL_SYSPLLCFG0_ENABLECLK1_ENABLE) 262 #define DL_SYSCTL_SYSPLL_CLK1_DISABLE (SYSCTL_SYSPLLCFG0_ENABLECLK1_DISABLE) 269 #define DL_SYSCTL_SYSPLL_CLK0_ENABLE (SYSCTL_SYSPLLCFG0_ENABLECLK0_ENABLE) 272 #define DL_SYSCTL_SYSPLL_CLK0_DISABLE (SYSCTL_SYSPLLCFG0_ENABLECLK0_DISABLE) 407 (SYSCTL_SYSOSCTRIMUSER_FREQ_SYSOSC16M),
410 (SYSCTL_SYSOSCTRIMUSER_FREQ_SYSOSC24M),
439 (SYSCTL_LFCLKCFG_XT1DRIVE_LOWESTDRV),
444 (SYSCTL_LFCLKCFG_XT1DRIVE_HIGHERDRV),
447 (SYSCTL_LFCLKCFG_XT1DRIVE_HIGHESTDRV),
552 SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV2,
555 SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV4,
558 SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV6,
561 SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV8,
564 SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV10,
567 SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV12,
570 SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV14,
573 SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV16,
648 SYSCTL_GENCLKCFG_FCCSELCLK_SYSPLLCLK0,
651 SYSCTL_GENCLKCFG_FCCSELCLK_SYSPLLCLK1,
654 SYSCTL_GENCLKCFG_FCCSELCLK_SYSPLLCLK2X,
663 ((uint32_t) 0 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
666 ((uint32_t) 1 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
669 ((uint32_t) 2 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
672 ((uint32_t) 3 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
675 ((uint32_t) 4 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
678 ((uint32_t) 5 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
681 ((uint32_t) 6 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
684 ((uint32_t) 7 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
687 ((uint32_t) 8 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
690 ((uint32_t) 9 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
693 ((uint32_t) 10 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
696 ((uint32_t) 11 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
699 ((uint32_t) 12 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
702 ((uint32_t) 13 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
705 ((uint32_t) 14 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
708 ((uint32_t) 15 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
711 ((uint32_t) 16 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
714 ((uint32_t) 17 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
717 ((uint32_t) 18 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
720 ((uint32_t) 19 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
723 ((uint32_t) 20 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
726 ((uint32_t) 21 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
729 ((uint32_t) 22 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
732 ((uint32_t) 23 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
735 ((uint32_t) 24 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
738 ((uint32_t) 25 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
741 ((uint32_t) 26 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
744 ((uint32_t) 27 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
747 ((uint32_t) 28 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
750 ((uint32_t) 29 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
753 ((uint32_t) 30 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
756 ((uint32_t) 31 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS),
852 SYSCTL_RSTCAUSE_ID_BORWAKESHUTDN,
855 SYSCTL_RSTCAUSE_ID_BOOTNONPMUPARITY,
862 SYSCTL_RSTCAUSE_ID_BOOTEXNRST,
869 SYSCTL_RSTCAUSE_ID_BOOTWWDT0,
874 SYSCTL_RSTCAUSE_ID_SYSFLASHECC,
877 SYSCTL_RSTCAUSE_ID_SYSCPULOCK,
892 SYSCTL_SRAMCFG_BANKOFF1_TRUE,
895 SYSCTL_SRAMCFG_BANKOFF1_FALSE,
902 SYSCTL_SRAMCFG_BANKSTOP1_TRUE,
905 SYSCTL_SRAMCFG_BANKSTOP1_FALSE,
927 SCB->SCR |= SCB_SCR_SLEEPONEXIT_Msk;
937 SCB->SCR &= ~(SCB_SCR_SLEEPONEXIT_Msk);
945 return ((SCB->SCR & SCB_SCR_SLEEPONEXIT_Msk) == SCB_SCR_SLEEPONEXIT_Msk);
956 SCB->SCR |= SCB_SCR_SEVONPEND_Msk;
967 SCB->SCR &= ~(SCB_SCR_SEVONPEND_Msk);
980 return ((SCB->SCR & SCB_SCR_SEVONPEND_Msk) == SCB_SCR_SEVONPEND_Msk);
1002 #define DL_SYSCTL_setMCLKSource(current, next, ...) \ 1003 DL_SYSCTL_switchMCLKfrom##current##to##next(__VA_ARGS__); 1064 SCB->SCR &= ~(SCB_SCR_SLEEPDEEP_Msk);
1090 SCB->SCR &= ~(SCB_SCR_SLEEPDEEP_Msk);
1118 SCB->SCR &= ~(SCB_SCR_SLEEPDEEP_Msk);
1156 SYSCTL->SOCLOCK.PMODECFG = SYSCTL_PMODECFG_DSLEEP_STOP;
1157 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
1158 SYSCTL->SOCLOCK.SYSOSCCFG &= ~(
1159 SYSCTL_SYSOSCCFG_USE4MHZSTOP_MASK | SYSCTL_SYSOSCCFG_DISABLESTOP_MASK);
1180 SYSCTL->SOCLOCK.PMODECFG = SYSCTL_PMODECFG_DSLEEP_STOP;
1181 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
1182 SYSCTL->SOCLOCK.SYSOSCCFG |= SYSCTL_SYSOSCCFG_USE4MHZSTOP_MASK;
1183 SYSCTL->SOCLOCK.SYSOSCCFG &= ~(SYSCTL_SYSOSCCFG_DISABLESTOP_MASK);
1203 SYSCTL->SOCLOCK.PMODECFG = SYSCTL_PMODECFG_DSLEEP_STOP;
1204 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
1205 SYSCTL->SOCLOCK.SYSOSCCFG &= ~(SYSCTL_SYSOSCCFG_USE4MHZSTOP_MASK);
1206 SYSCTL->SOCLOCK.SYSOSCCFG |= SYSCTL_SYSOSCCFG_DISABLESTOP_MASK;
1236 SYSCTL->SOCLOCK.PMODECFG = SYSCTL_PMODECFG_DSLEEP_STANDBY;
1237 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
1238 SYSCTL->SOCLOCK.MCLKCFG &= ~(SYSCTL_MCLKCFG_STOPCLKSTBY_MASK);
1261 SYSCTL->SOCLOCK.PMODECFG = SYSCTL_PMODECFG_DSLEEP_STANDBY;
1262 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
1263 SYSCTL->SOCLOCK.MCLKCFG |= SYSCTL_MCLKCFG_STOPCLKSTBY_MASK;
1298 SYSCTL->SOCLOCK.PMODECFG = SYSCTL_PMODECFG_DSLEEP_SHUTDOWN;
1299 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
1329 DL_SYSCTL_BOR_THRESHOLD_LEVEL thresholdLevel)
1331 SYSCTL->SOCLOCK.BORTHRESHOLD = (uint32_t) thresholdLevel;
1343 return (DL_SYSCTL_BOR_THRESHOLD_LEVEL)(SYSCTL->SOCLOCK.BORTHRESHOLD);
1361 SYSCTL->SOCLOCK.BORCLRCMD =
1362 SYSCTL_BORCLRCMD_KEY_VALUE | SYSCTL_BORCLRCMD_GO_TRUE;
1376 SYSCTL->SOCLOCK.RESETLEVEL = resetType;
1377 SYSCTL->SOCLOCK.RESETCMD =
1378 SYSCTL_RESETCMD_KEY_VALUE | SYSCTL_RESETCMD_GO_TRUE;
1389 SYSCTL->SOCLOCK.IMASK |= interruptMask;
1400 SYSCTL->SOCLOCK.IMASK &= ~(interruptMask);
1415 return (SYSCTL->SOCLOCK.IMASK & interruptMask);
1434 uint32_t interruptMask)
1436 return (SYSCTL->SOCLOCK.MIS & interruptMask);
1453 uint32_t interruptMask)
1455 return (SYSCTL->SOCLOCK.RIS & interruptMask);
1470 return (DL_SYSCTL_IIDX)(SYSCTL->SOCLOCK.IIDX);
1481 SYSCTL->SOCLOCK.ICLR = interruptMask;
1498 uint32_t interruptMask)
1500 return (SYSCTL->SOCLOCK.NMIRIS & interruptMask);
1516 return (DL_SYSCTL_NMI_IIDX)(SYSCTL->SOCLOCK.NMIIIDX);
1526 uint32_t interruptMask)
1528 SYSCTL->SOCLOCK.NMIICLR = interruptMask;
1546 (((uint32_t) behavior << SYSCTL_SYSTEMCFG_FLASHECCRSTDIS_OFS)) |
1547 SYSCTL_SYSTEMCFG_KEY_VALUE,
1548 (SYSCTL_SYSTEMCFG_FLASHECCRSTDIS_MASK | SYSCTL_SYSTEMCFG_KEY_MASK));
1564 (SYSCTL->SOCLOCK.SYSTEMCFG & SYSCTL_SYSTEMCFG_FLASHECCRSTDIS_MASK) >>
1565 SYSCTL_SYSTEMCFG_FLASHECCRSTDIS_OFS;
1584 (((uint32_t) behavior << SYSCTL_SYSTEMCFG_WWDTLP0RSTDIS_OFS)) |
1585 SYSCTL_SYSTEMCFG_KEY_VALUE,
1586 (SYSCTL_SYSTEMCFG_WWDTLP0RSTDIS_MASK | SYSCTL_SYSTEMCFG_KEY_MASK));
1601 (SYSCTL->SOCLOCK.SYSTEMCFG & SYSCTL_SYSTEMCFG_WWDTLP0RSTDIS_MASK) >>
1602 SYSCTL_SYSTEMCFG_WWDTLP0RSTDIS_OFS;
1621 (((uint32_t) behavior << SYSCTL_SYSTEMCFG_WWDTLP1RSTDIS_OFS)) |
1622 SYSCTL_SYSTEMCFG_KEY_VALUE,
1623 (SYSCTL_SYSTEMCFG_WWDTLP1RSTDIS_MASK | SYSCTL_SYSTEMCFG_KEY_MASK));
1638 (SYSCTL->SOCLOCK.SYSTEMCFG & SYSCTL_SYSTEMCFG_WWDTLP1RSTDIS_MASK) >>
1639 SYSCTL_SYSTEMCFG_WWDTLP1RSTDIS_OFS;
1659 SYSCTL_MCLKCFG_MDIV_MASK);
1671 uint32_t divider = SYSCTL->SOCLOCK.MCLKCFG & SYSCTL_MCLKCFG_MDIV_MASK;
1686 SYSCTL->SOCLOCK.MCLKCFG &
1687 (SYSCTL_MCLKCFG_USEHSCLK_MASK | SYSCTL_MCLKCFG_USELFCLK_MASK);
1689 return (DL_SYSCTL_MCLK_SOURCE)(source);
1718 SYSCTL_SYSOSCCFG_FREQ_MASK);
1740 SYSCTL->SOCLOCK.SYSOSCTRIMUSER =
1741 ((config->
rDiv << SYSCTL_SYSOSCTRIMUSER_RDIV_OFS) &
1742 SYSCTL_SYSOSCTRIMUSER_RDIV_MASK) |
1743 ((config->
resistorFine << SYSCTL_SYSOSCTRIMUSER_RESFINE_OFS) &
1744 SYSCTL_SYSOSCTRIMUSER_RESFINE_MASK) |
1745 ((config->
resistorCoarse << SYSCTL_SYSOSCTRIMUSER_RESCOARSE_OFS) &
1746 SYSCTL_SYSOSCTRIMUSER_RESCOARSE_MASK) |
1747 (config->
capacitor << SYSCTL_SYSOSCTRIMUSER_CAP_OFS) |
1748 ((uint32_t) config->
freq);
1750 SYSCTL_SYSOSCCFG_FREQ_SYSOSCUSER, SYSCTL_SYSOSCCFG_FREQ_MASK);
1764 uint32_t freq = SYSCTL->SOCLOCK.SYSOSCCFG & SYSCTL_SYSOSCCFG_FREQ_MASK;
1780 SYSCTL->SOCLOCK.CLKSTATUS & SYSCTL_CLKSTATUS_SYSOSCFREQ_MASK;
1794 return (SYSCTL->SOCLOCK.CLKSTATUS);
1806 return (SYSCTL->SOCLOCK.SYSSTATUS);
1818 SYSCTL->SOCLOCK.SYSSTATUSCLR =
1819 (SYSCTL_SYSSTATUSCLR_ALLECC_CLEAR | SYSCTL_SYSSTATUSCLR_KEY_VALUE);
1855 SYSCTL_MCLKCFG_UDIV_MASK);
1867 uint32_t divider = SYSCTL->SOCLOCK.MCLKCFG & SYSCTL_MCLKCFG_UDIV_MASK;
1922 SYSCTL->SOCLOCK.EXLFCTL =
1923 (SYSCTL_EXLFCTL_KEY_VALUE | SYSCTL_EXLFCTL_SETUSEEXLF_TRUE);
1983 DL_SYSCTL_HFXT_RANGE range, uint32_t startupTime,
bool monitorEnable);
1997 SYSCTL->SOCLOCK.HSCLKEN &= ~(SYSCTL_HSCLKEN_SYSPLLEN_MASK);
2014 SYSCTL->SOCLOCK.HSCLKEN &= ~(SYSCTL_HSCLKEN_HFXTEN_MASK);
2037 SYSCTL->SOCLOCK.HSCLKEN |= SYSCTL_HSCLKEN_USEEXTHFCLK_ENABLE;
2050 uint32_t source = SYSCTL->SOCLOCK.HSCLKCFG & SYSCTL_HSCLKCFG_HSCLKSEL_MASK;
2052 return (DL_SYSCTL_HSCLK_SOURCE)(source);
2065 SYSCTL->SOCLOCK.HSCLKCFG = (uint32_t) source;
2080 SYSCTL->SOCLOCK.GENCLKCFG & SYSCTL_GENCLKCFG_MFPCLKSRC_MASK;
2082 return (DL_SYSCTL_MFPCLK_SOURCE)(source);
2097 SYSCTL_GENCLKCFG_MFPCLKSRC_MASK);
2123 SYSCTL->SOCLOCK.MCLKCFG |= SYSCTL_MCLKCFG_USEMFTICK_ENABLE;
2131 SYSCTL->SOCLOCK.MCLKCFG &= ~(SYSCTL_MCLKCFG_USEMFTICK_ENABLE);
2148 SYSCTL->SOCLOCK.GENCLKEN |= SYSCTL_GENCLKEN_MFPCLKEN_ENABLE;
2157 SYSCTL->SOCLOCK.GENCLKEN &= ~(SYSCTL_GENCLKEN_MFPCLKEN_ENABLE);
2170 ((uint32_t) divider << SYSCTL_GENCLKCFG_HFCLK4MFPCLKDIV_OFS),
2171 SYSCTL_GENCLKCFG_HFCLK4MFPCLKDIV_MASK);
2185 (SYSCTL->SOCLOCK.GENCLKCFG & SYSCTL_GENCLKCFG_HFCLK4MFPCLKDIV_MASK) >>
2186 SYSCTL_GENCLKCFG_HFCLK4MFPCLKDIV_OFS;
2216 DL_SYSCTL_CLK_OUT_SOURCE source, DL_SYSCTL_CLK_OUT_DIVIDE divider)
2219 (uint32_t) divider | (uint32_t) source,
2220 SYSCTL_GENCLKCFG_EXCLKDIVEN_MASK | SYSCTL_GENCLKCFG_EXCLKDIVVAL_MASK |
2221 SYSCTL_GENCLKCFG_EXCLKSRC_MASK);
2222 SYSCTL->SOCLOCK.GENCLKEN |= SYSCTL_GENCLKEN_EXCLKEN_ENABLE;
2231 SYSCTL->SOCLOCK.GENCLKEN &= ~(SYSCTL_GENCLKEN_EXCLKEN_ENABLE);
2240 SYSCTL->SOCLOCK.GENCLKCFG &= ~(SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE);
2251 SYSCTL->SOCLOCK.SYSOSCCFG |= SYSCTL_SYSOSCCFG_BLOCKASYNCALL_ENABLE;
2265 SYSCTL->SOCLOCK.SYSOSCCFG &= ~(SYSCTL_SYSOSCCFG_BLOCKASYNCALL_ENABLE);
2278 SYSCTL->SOCLOCK.SYSOSCCFG |= SYSCTL_SYSOSCCFG_FASTCPUEVENT_ENABLE;
2288 SYSCTL->SOCLOCK.SYSOSCCFG &= ~(SYSCTL_SYSOSCCFG_FASTCPUEVENT_ENABLE);
2318 SYSCTL->SOCLOCK.SRAMBOUNDARY =
2319 (((uint32_t) address) & SYSCTL_SRAMBOUNDARY_ADDR_MASK);
2349 SYSCTL->SOCLOCK.SRAMBOUNDARYHIGH =
2350 (((uint32_t) address) & SYSCTL_SRAMBOUNDARYHIGH_ADDR_MASK);
2376 return (SYSCTL->SOCLOCK.SRAMBOUNDARY);
2402 return (SYSCTL->SOCLOCK.SRAMBOUNDARYHIGH);
2422 SYSCTL_MCLKCFG_FLASHWAIT_MASK);
2439 uint32_t waitState =
2440 SYSCTL->SOCLOCK.MCLKCFG & SYSCTL_MCLKCFG_FLASHWAIT_MASK;
2451 return (SYSCTL->SOCLOCK.FCC);
2463 SYSCTL->SOCLOCK.FCCCMD = (SYSCTL_FCCCMD_KEY_VALUE | SYSCTL_FCCCMD_GO_TRUE);
2479 SYSCTL_CLKSTATUS_FCCDONE_DONE;
2501 DL_SYSCTL_FCC_TRIG_SOURCE trigSrc, DL_SYSCTL_FCC_CLOCK_SOURCE clkSrc);
2515 SYSCTL_GENCLKCFG_FCCTRIGCNT_MASK);
2527 SYSCTL->SOCLOCK.GENCLKCFG & SYSCTL_GENCLKCFG_FCCTRIGCNT_MASK;
2539 SYSCTL->SOCLOCK.SYSOSCFCLCTL =
2540 (SYSCTL_SYSOSCFCLCTL_KEY_VALUE | SYSCTL_SYSOSCFCLCTL_SETUSEFCL_TRUE);
2559 SYSCTL->SOCLOCK.SYSOSCFCLCTL =
2560 (SYSCTL_SYSOSCFCLCTL_KEY_VALUE | SYSCTL_SYSOSCFCLCTL_SETUSEFCL_TRUE |
2561 SYSCTL_SYSOSCFCLCTL_SETUSEEXRES_TRUE);
2574 SYSCTL->SOCLOCK.WRITELOCK = SYSCTL_WRITELOCK_ACTIVE_ENABLE;
2587 SYSCTL->SOCLOCK.WRITELOCK = SYSCTL_WRITELOCK_ACTIVE_DISABLE;
2604 SYSCTL_GENCLKCFG_ANACPUMPCFG_MASK);
2621 SYSCTL->SOCLOCK.GENCLKCFG & SYSCTL_GENCLKCFG_ANACPUMPCFG_MASK;
2623 return (DL_SYSCTL_VBOOST)(setting);
2640 const volatile uint32_t *pReg = &SYSCTL->SOCLOCK.SHUTDNSTORE0;
2643 *(pReg + (uint32_t) index) & SYSCTL_SHUTDNSTORE0_DATA_MASK);
2660 SYSCTL_SHUTDNSTORE0_DATA_MASK);
2672 SYSCTL->SOCLOCK.SHDNIOREL =
2673 (SYSCTL_SHDNIOREL_KEY_VALUE | SYSCTL_SHDNIOREL_RELEASE_TRUE);
2687 SYSCTL->SOCLOCK.EXRSTPIN =
2688 (SYSCTL_EXRSTPIN_KEY_VALUE | SYSCTL_EXRSTPIN_DISABLE_TRUE);
2703 SYSCTL->SOCLOCK.SWDCFG =
2704 (SYSCTL_SWDCFG_KEY_VALUE | SYSCTL_SWDCFG_DISABLE_TRUE);
2714 uint32_t resetCause = SYSCTL->SOCLOCK.RSTCAUSE & SYSCTL_RSTCAUSE_ID_MASK;
2716 return (DL_SYSCTL_RESET_CAUSE)(resetCause);
2732 SYSCTL_HFCLKCLKCFG_HFXTTIME_MASK);
2744 return (SYSCTL->SOCLOCK.HFCLKCLKCFG & SYSCTL_HFCLKCLKCFG_HFXTTIME_MASK);
2757 DL_SYSCTL_HFXT_RANGE range)
2760 SYSCTL_HFCLKCLKCFG_HFXTRSEL_MASK);
2773 (SYSCTL->SOCLOCK.HFCLKCLKCFG & SYSCTL_HFCLKCLKCFG_HFXTRSEL_MASK) >>
2774 SYSCTL_HFCLKCLKCFG_HFXTRSEL_OFS;
2776 return (DL_SYSCTL_HFXT_RANGE)(range);
2791 SYSCTL->SOCLOCK.HFCLKCLKCFG |= SYSCTL_HFCLKCLKCFG_HFCLKFLTCHK_ENABLE;
2799 SYSCTL->SOCLOCK.HFCLKCLKCFG &= ~(SYSCTL_HFCLKCLKCFG_HFCLKFLTCHK_MASK);
2831 uint32_t startAddr, uint32_t endAddr);
2869 SYSCTL->SECCFG.FWEPROTMAIN = addrMask;
2879 return (SYSCTL->SECCFG.FWEPROTMAIN);
2894 SYSCTL->SECCFG.FWPROTMAINDATA = (uint32_t) protectionType;
2908 SYSCTL->SECCFG.FWPROTMAINDATA);
2935 SYSCTL->SECCFG.FRXPROTMAINSTART =
2936 (startAddr & SYSCTL_FRXPROTMAINSTART_ADDR_MASK);
2949 return (SYSCTL->SECCFG.FRXPROTMAINSTART);
2976 SYSCTL->SECCFG.FRXPROTMAINEND =
2977 (endAddr & SYSCTL_FRXPROTMAINEND_ADDR_MASK);
2990 return (SYSCTL->SECCFG.FRXPROTMAINEND);
3016 SYSCTL->SECCFG.FIPPROTMAINSTART =
3017 (startAddr & SYSCTL_FIPPROTMAINSTART_ADDR_MASK);
3027 return (SYSCTL->SECCFG.FIPPROTMAINSTART);
3052 SYSCTL->SECCFG.FIPPROTMAINSTART =
3053 (endAddr & SYSCTL_FIPPROTMAINEND_ADDR_MASK);
3063 return (SYSCTL->SECCFG.FIPPROTMAINSTART);
3087 SYSCTL->SECCFG.FLBANKSWPPOLICY &= (~(SYSCTL_FLBANKSWPPOLICY_DISABLE_MASK) |
3088 SYSCTL_FLBANKSWPPOLICY_KEY_VALUE);
3112 SYSCTL->SECCFG.FLBANKSWPPOLICY = (SYSCTL_FLBANKSWPPOLICY_DISABLE_TRUE |
3113 SYSCTL_FLBANKSWPPOLICY_KEY_VALUE);
3129 SYSCTL->SECCFG.FLBANKSWP |=
3130 (SYSCTL_FLBANKSWP_USEUPPER_ENABLE | SYSCTL_FLBANKSWP_KEY_VALUE);
3146 SYSCTL->SECCFG.FLBANKSWP &=
3147 (~(SYSCTL_FLBANKSWP_USEUPPER_MASK) | SYSCTL_FLBANKSWP_KEY_VALUE);
3160 SYSCTL->SECCFG.FWENABLE |=
3161 (SYSCTL_FWENABLE_FLRXPROT_ENABLE | SYSCTL_FWENABLE_KEY_VALUE);
3175 SYSCTL->SECCFG.FWENABLE |=
3176 (SYSCTL_SECSTATUS_FLIPPROT_ENABLED | SYSCTL_FWENABLE_KEY_VALUE);
3196 SYSCTL->SECCFG.FWENABLE |=
3197 (SYSCTL_FWENABLE_SRAMBOUNDARYLOCK_ENABLE | SYSCTL_FWENABLE_KEY_VALUE);
3210 return ((SYSCTL->SECCFG.SECSTATUS & SYSCTL_SECSTATUS_INITDONE_YES) ==
3211 SYSCTL_SECSTATUS_INITDONE_YES);
3224 return ((SYSCTL->SECCFG.SECSTATUS & SYSCTL_SECSTATUS_CSCEXISTS_YES) ==
3225 SYSCTL_SECSTATUS_CSCEXISTS_YES);
3238 return ((SYSCTL->SECCFG.SECSTATUS & SYSCTL_SECSTATUS_FLRXPROT_ENABLED) ==
3239 SYSCTL_SECSTATUS_FLRXPROT_ENABLED);
3252 return ((SYSCTL->SECCFG.SECSTATUS & SYSCTL_SECSTATUS_FLIPPROT_ENABLED) ==
3253 SYSCTL_SECSTATUS_FLIPPROT_ENABLED);
3266 return ((SYSCTL->SECCFG.SECSTATUS &
3267 SYSCTL_SECSTATUS_SRAMBOUNDARYLOCK_ENABLED) ==
3268 SYSCTL_SECSTATUS_SRAMBOUNDARYLOCK_ENABLED);
3281 return ((SYSCTL->SECCFG.SECSTATUS &
3282 SYSCTL_SECSTATUS_FLBANKSWPPOLICY_ENABLED) ==
3283 SYSCTL_SECSTATUS_FLBANKSWPPOLICY_ENABLED);
3296 return ((SYSCTL->SECCFG.SECSTATUS & SYSCTL_SECSTATUS_FLBANKSWP_MASK) ==
3297 SYSCTL_SECSTATUS_FLBANKSWP_MASK);
3310 return ((SYSCTL->SECCFG.SECSTATUS & SYSCTL_SECSTATUS_FLBANKSWP_MASK) !=
3311 SYSCTL_SECSTATUS_FLBANKSWP_MASK);
3327 SYSCTL->SECCFG.INITDONE |=
3328 (SYSCTL_INITDONE_PASS_TRUE | SYSCTL_INITDONE_KEY_VALUE);
3339 DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_RUN_MODE powerLevel)
3342 ((uint32_t) powerLevel | SYSCTL_SRAMCFG_KEY_VALUE),
3343 (SYSCTL_SRAMCFG_BANKOFF1_MASK | SYSCTL_SRAMCFG_KEY_MASK));
3353 __STATIC_INLINE DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_RUN_MODE
3356 uint32_t powerLevel =
3357 SYSCTL->SOCLOCK.SRAMCFG & SYSCTL_SRAMCFG_BANKOFF1_MASK;
3358 return (DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_RUN_MODE)(powerLevel);
3369 DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_STOP_MODE powerLevel)
3372 (uint32_t)(powerLevel | SYSCTL_SRAMCFG_KEY_VALUE),
3373 (SYSCTL_SRAMCFG_BANKSTOP1_MASK | SYSCTL_SRAMCFG_KEY_MASK));
3383 __STATIC_INLINE DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_STOP_MODE
3386 uint32_t powerLevel =
3387 SYSCTL->SOCLOCK.SRAMCFG & SYSCTL_SRAMCFG_BANKSTOP1_MASK;
3388 return (DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_STOP_MODE)(powerLevel);
Definition: dl_sysctl_mspm0gx51x.h:446
Definition: dl_sysctl_mspm0gx51x.h:430
__STATIC_INLINE void DL_SYSCTL_setHFCLKSourceHFCLKIN(void)
Change HFCLK source to external digital HFCLK_IN.
Definition: dl_sysctl_mspm0gx51x.h:2030
Definition: dl_sysctl_mspm0gx51x.h:829
Definition: dl_sysctl_mspm0gx51x.h:541
Definition: dl_sysctl_mspm0gx51x.h:776
Definition: dl_sysctl_mspm0gx51x.h:560
Definition: dl_sysctl_mspm0gx51x.h:595
Definition: dl_sysctl_mspm0gx51x.h:282
Definition: dl_sysctl_mspm0gx51x.h:599
Definition: dl_sysctl_mspm0gx51x.h:288
__STATIC_INLINE void DL_Common_updateReg(volatile uint32_t *reg, uint32_t val, uint32_t mask)
Writes value to specified register - retaining bits unaffected by mask.
Definition: dl_common.h:63
Definition: dl_sysctl_mspm0gx51x.h:469
Definition: dl_sysctl_mspm0gx51x.h:686
Definition: dl_sysctl_mspm0gx51x.h:677
DL_SYSCTL_NMI_IIDX
Definition: dl_sysctl_mspm0gx51x.h:344
Definition: dl_sysctl_mspm0gx51x.h:841
Definition: dl_sysctl_mspm0gx51x.h:891
Definition: dl_sysctl_mspm0gx51x.h:623
Definition: dl_sysctl_mspm0gx51x.h:879
DL_SYSCTL_FCC_TRIG_CNT
Definition: dl_sysctl_mspm0gx51x.h:660
__STATIC_INLINE DL_SYSCTL_MFPCLK_SOURCE DL_SYSCTL_getMFPCLKSource(void)
Get the source of Middle Frequency Precision Clock (MFPCLK)
Definition: dl_sysctl_mspm0gx51x.h:2077
__STATIC_INLINE DL_SYSCTL_FCC_TRIG_CNT DL_SYSCTL_getFCCPeriods(void)
Gets number of rising-edge to rising-edge period for Frequency Clock Counter (FCC) ...
Definition: dl_sysctl_mspm0gx51x.h:2524
DL_SYSCTL_POWER_POLICY_STANDBY DL_SYSCTL_getPowerPolicySTANDBY(void)
Get the STANDBY mode power policy.
bool monitor
Definition: dl_sysctl_mspm0gx51x.h:455
DL_SYSCTL_ERROR_BEHAVIOR
Definition: dl_sysctl_mspm0gx51x.h:386
Definition: dl_sysctl_mspm0gx51x.h:400
uint32_t rDivClk2x
Definition: dl_sysctl_mspm0gx51x.h:320
Definition: dl_sysctl_mspm0gx51x.h:563
__STATIC_INLINE void DL_SYSCTL_disableHFCLKStartupMonitor(void)
Disable the HFCLK startup monitor.
Definition: dl_sysctl_mspm0gx51x.h:2797
Definition: dl_sysctl_mspm0gx51x.h:710
Definition: dl_sysctl_mspm0gx51x.h:810
Definition: dl_sysctl_mspm0gx51x.h:465
__STATIC_INLINE DL_SYSCTL_HFCLK_MFPCLK_DIVIDER DL_SYSCTL_getHFCLKDividerForMFPCLK(void)
Get the divider for HFCLK when HFCLK is used as the MFPCLK source.
Definition: dl_sysctl_mspm0gx51x.h:2182
DL_SYSCTL_FCC_TRIG_SOURCE
Definition: dl_sysctl_mspm0gx51x.h:629
__STATIC_INLINE void DL_SYSCTL_disableExternalClock(void)
Disable the External Clock (CLK_OUT)
Definition: dl_sysctl_mspm0gx51x.h:2229
System PLL is stabilized and ready to use.
Definition: dl_sysctl_mspm0gx51x.h:380
Definition: dl_sysctl_mspm0gx51x.h:752
Definition: dl_sysctl_mspm0gx51x.h:734
__STATIC_INLINE DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_STOP_MODE DL_SYSCTL_getSRAMBank1PowerLevelInSTOP(void)
Get the power level SRAM Bank 1 power when in STOP mode.
Definition: dl_sysctl_mspm0gx51x.h:3384
__STATIC_INLINE uint32_t DL_SYSCTL_getEnabledInterruptStatus(uint32_t interruptMask)
Check interrupt flag of enabled SYSCTL interrupts.
Definition: dl_sysctl_mspm0gx51x.h:1433
Definition: dl_sysctl_mspm0gx51x.h:665
Analog clocking consistency error.
Definition: dl_sysctl_mspm0gx51x.h:368
__STATIC_INLINE void DL_SYSCTL_setFlashDEDErrorBehavior(DL_SYSCTL_ERROR_BEHAVIOR behavior)
Set the behavior when a Flash ECC double error detect (DED) occurs.
Definition: dl_sysctl_mspm0gx51x.h:1542
__STATIC_INLINE void DL_SYSCTL_disableFlashBankSwap(void)
Disable the policy to allow flash bank swapping.
Definition: dl_sysctl_mspm0gx51x.h:3110
bool lowCap
Definition: dl_sysctl_mspm0gx51x.h:453
__STATIC_INLINE void DL_SYSCTL_setPowerPolicyRUN0SLEEP0(void)
Set the RUN/SLEEP mode power policy to RUN0/SLEEP0.
Definition: dl_sysctl_mspm0gx51x.h:1061
__STATIC_INLINE uint32_t DL_SYSCTL_getIPProtectFirewallAddrEnd(void)
Get the end address of the IP Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:3061
__STATIC_INLINE void DL_SYSCTL_setPowerPolicySTOP0(void)
Set the STOP mode power policy to STOP0.
Definition: dl_sysctl_mspm0gx51x.h:1154
Definition: dl_sysctl_mspm0gx51x.h:704
Definition: dl_sysctl_mspm0gx51x.h:788
Definition: dl_sysctl_mspm0gx51x.h:409
Definition: dl_sysctl_mspm0gx51x.h:885
DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_RUN_MODE
Definition: dl_sysctl_mspm0gx51x.h:889
Configuration struct for DL_SYSCTL_configSYSPLL.
Definition: dl_sysctl_mspm0gx51x.h:318
Definition: dl_sysctl_mspm0gx51x.h:513
Definition: dl_sysctl_mspm0gx51x.h:499
__STATIC_INLINE DL_SYSCTL_HSCLK_SOURCE DL_SYSCTL_getHSCLKSource(void)
Get the source of High Speed Clock (HSCLK)
Definition: dl_sysctl_mspm0gx51x.h:2048
Definition: dl_sysctl_mspm0gx51x.h:683
uint32_t rDivClk0
Definition: dl_sysctl_mspm0gx51x.h:324
__STATIC_INLINE bool DL_SYSCTL_isIPProtectFirewallEnabled(void)
Checks if IP Protect Firewall is enabled.
Definition: dl_sysctl_mspm0gx51x.h:3250
Definition: dl_sysctl_mspm0gx51x.h:633
DL_SYSCTL_MCLK_DIVIDER
Definition: dl_sysctl_mspm0gx51x.h:491
__STATIC_INLINE bool DL_SYSCTL_isSleepOnExitEnabled(void)
Check if sleep on exit is enabled.
Definition: dl_sysctl_mspm0gx51x.h:943
DL_SYSCTL_SYSOSC_FREQ
Definition: dl_sysctl_mspm0gx51x.h:394
__STATIC_INLINE void DL_SYSCTL_disableNRSTPin(void)
Disable the reset functionality of the NRST pin.
Definition: dl_sysctl_mspm0gx51x.h:2685
__STATIC_INLINE void DL_SYSCTL_disableMFPCLK(void)
Disable the Middle Frequency Precision Clock (MFPCLK)
Definition: dl_sysctl_mspm0gx51x.h:2155
Definition: dl_sysctl_mspm0gx51x.h:784
__STATIC_INLINE uint32_t DL_SYSCTL_getWriteProtectFirewallAddrRange(void)
Get the address range of the Write Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:2877
__STATIC_INLINE DL_SYSCTL_NMI_IIDX DL_SYSCTL_getPendingNonMaskableInterrupt(void)
Get highest priority pending SYSCTL non-maskable interrupt.
Definition: dl_sysctl_mspm0gx51x.h:1513
Definition: dl_sysctl_mspm0gx51x.h:607
__STATIC_INLINE void DL_SYSCTL_setShutdownStorageByte(DL_SYSCTL_SHUTDOWN_STORAGE_BYTE index, uint8_t data)
Save a byte to SHUTDOWN memory.
Definition: dl_sysctl_mspm0gx51x.h:2656
__STATIC_INLINE void DL_SYSCTL_setPowerPolicySTANDBY1(void)
Set the STANDBY mode power policy to STANDBY1.
Definition: dl_sysctl_mspm0gx51x.h:1259
__STATIC_INLINE uint32_t DL_SYSCTL_getClockStatus(void)
Returns status of the different clocks in CKM.
Definition: dl_sysctl_mspm0gx51x.h:1792
__STATIC_INLINE void DL_SYSCTL_executeFromLowerFlashBank(void)
Perform bank swap and execute from the Lower Flash Bank.
Definition: dl_sysctl_mspm0gx51x.h:3144
Definition: dl_sysctl_mspm0gx51x.h:581
__STATIC_INLINE void DL_SYSCTL_setIPProtectFirewallAddrStart(uint32_t startAddr)
Set the start address of the IP Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:3013
Definition: dl_sysctl_mspm0gx51x.h:517
Definition: dl_sysctl_mspm0gx51x.h:566
Definition: dl_sysctl_mspm0gx51x.h:782
uint32_t capacitor
Definition: dl_sysctl_mspm0gx51x.h:422
Definition: dl_sysctl_mspm0gx51x.h:515
__STATIC_INLINE uint8_t DL_SYSCTL_getShutdownStorageByte(DL_SYSCTL_SHUTDOWN_STORAGE_BYTE index)
Return byte that was saved through SHUTDOWN.
Definition: dl_sysctl_mspm0gx51x.h:2637
NMI interrupt index for Watchdog 1 Fault.
Definition: dl_sysctl_mspm0gx51x.h:352
__STATIC_INLINE void DL_SYSCTL_activateBORThreshold(void)
Activate the BOR threshold level.
Definition: dl_sysctl_mspm0gx51x.h:1359
Definition: dl_sysctl_mspm0gx51x.h:861
Definition: dl_sysctl_mspm0gx51x.h:798
Definition: dl_sysctl_mspm0gx51x.h:613
Definition: dl_sysctl_mspm0gx51x.h:523
__STATIC_INLINE uint32_t DL_SYSCTL_getTempCalibrationConstant(void)
Retrieves the calibration constant of the temperature sensor to be used in temperature calculation...
Definition: dl_sysctl_mspm0gx51x.h:2808
Definition: dl_sysctl_mspm0gx51x.h:845
Definition: dl_sysctl_mspm0gx51x.h:835
Definition: dl_sysctl_mspm0gx51x.h:662
Definition: dl_sysctl_mspm0gx51x.h:557
bool DL_SYSCTL_initReadExecuteProtectFirewall(uint32_t startAddr, uint32_t endAddr)
Initializes the Read Execute (RX) Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:501
__STATIC_INLINE DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_RUN_MODE DL_SYSCTL_getSRAMBank1PowerLevelInRUN(void)
Get the power level SRAM Bank 1 power when in RUN mode.
Definition: dl_sysctl_mspm0gx51x.h:3354
void DL_SYSCTL_configFCC(DL_SYSCTL_FCC_TRIG_TYPE trigLvl, DL_SYSCTL_FCC_TRIG_SOURCE trigSrc, DL_SYSCTL_FCC_CLOCK_SOURCE clkSrc)
Configure the Frequency Clock Counter (FCC)
DL_SYSCTL_MCLK_SOURCE
Definition: dl_sysctl_mspm0gx51x.h:481
uint32_t qDiv
Definition: dl_sysctl_mspm0gx51x.h:336
Definition: dl_sysctl_mspm0gx51x.h:543
__STATIC_INLINE void DL_SYSCTL_releaseShutdownIO(void)
Enable SHUTDOWN IO Release.
Definition: dl_sysctl_mspm0gx51x.h:2670
Definition: dl_sysctl_mspm0gx51x.h:831
DL_SYSCTL_ULPCLK_DIV
Definition: dl_sysctl_mspm0gx51x.h:428
Definition: dl_sysctl_mspm0gx51x.h:647
__STATIC_INLINE bool DL_SYSCTL_ifCSCExists(void)
Checks if Customer Startup Code (CSC) exists in system.
Definition: dl_sysctl_mspm0gx51x.h:3222
Definition: dl_sysctl_mspm0gx51x.h:743
__STATIC_INLINE DL_SYSCTL_BOR_THRESHOLD_LEVEL DL_SYSCTL_getBORThreshold(void)
Get the brown-out reset (BOR) threshold level.
Definition: dl_sysctl_mspm0gx51x.h:1341
Configuration struct for DL_SYSCTL_configSYSOSCUserTrim.
Definition: dl_sysctl_mspm0gx51x.h:414
__STATIC_INLINE void DL_SYSCTL_enableSRAMBoundaryLock(void)
Enable SRAM Boundary Lock.
Definition: dl_sysctl_mspm0gx51x.h:3194
__STATIC_INLINE uint32_t DL_SYSCTL_getUpperSRAMBoundaryAddress(void)
Get the upper SRAM boundary address.
Definition: dl_sysctl_mspm0gx51x.h:2400
__STATIC_INLINE void DL_SYSCTL_configSYSOSCUserTrim(const DL_SYSCTL_SYSOSCUserTrimConfig *config)
Trim the System Oscillator (SYSOSC) to 16MHz or 24MHz.
Definition: dl_sysctl_mspm0gx51x.h:1737
Definition: dl_sysctl_mspm0gx51x.h:406
DL_SYSCTL_FLASH_WAIT_STATE
Definition: dl_sysctl_mspm0gx51x.h:770
__STATIC_INLINE bool DL_SYSCTL_isSRAMBoundaryLocked(void)
Checks if SRAM Boundary Lock is enabled.
Definition: dl_sysctl_mspm0gx51x.h:3264
__STATIC_INLINE void DL_SYSCTL_blockAllAsyncFastClockRequests(void)
Blocks all asynchronous fast clock requests.
Definition: dl_sysctl_mspm0gx51x.h:2249
Definition: dl_sysctl_mspm0gx51x.h:503
Definition: dl_sysctl_mspm0gx51x.h:296
void DL_SYSCTL_setLFCLKSourceLFXT(const DL_SYSCTL_LFCLKConfig *config)
Change LFCLK source to external crystal LFXT.
__STATIC_INLINE void DL_SYSCTL_enableFastCPUEventHandling(void)
Generates an asynchronous fast clock request upon any IRQ request to CPU.
Definition: dl_sysctl_mspm0gx51x.h:2276
Definition: dl_sysctl_mspm0gx51x.h:485
__STATIC_INLINE void DL_SYSCTL_enableSYSOSCFCLExternalResistor(void)
Enable Frequency Correction Loop (FCL) in External Resistor Mode.
Definition: dl_sysctl_mspm0gx51x.h:2557
__STATIC_INLINE uint32_t DL_SYSCTL_readFCC(void)
Read Frequency Clock Counter (FCC)
Definition: dl_sysctl_mspm0gx51x.h:2449
__STATIC_INLINE void DL_SYSCTL_setSYSOSCFreq(DL_SYSCTL_SYSOSC_FREQ freq)
Set the target frequency of the System Oscillator (SYSOSC)
Definition: dl_sysctl_mspm0gx51x.h:1715
Definition: dl_sysctl_mspm0gx51x.h:766
__STATIC_INLINE bool DL_SYSCTL_isEventOnPendEnabled(void)
Check if send event on pending bit is enabled.
Definition: dl_sysctl_mspm0gx51x.h:978
Definition: dl_sysctl_mspm0gx51x.h:796
Definition: dl_sysctl_mspm0gx51x.h:794
Definition: dl_sysctl_mspm0gx51x.h:876
Definition: dl_sysctl_mspm0gx51x.h:755
__STATIC_INLINE bool DL_SYSCTL_isExecuteFromLowerFlashBank(void)
Checks if executing from lower flash bank.
Definition: dl_sysctl_mspm0gx51x.h:3308
Definition: dl_sysctl_mspm0gx51x.h:551
__STATIC_INLINE void DL_SYSCTL_enableEventOnPend(void)
Enable send event on pending bit.
Definition: dl_sysctl_mspm0gx51x.h:954
NMI interrupt index for LFCLK Monitor Fail.
Definition: dl_sysctl_mspm0gx51x.h:350
Definition: dl_sysctl_mspm0gx51x.h:572
Definition: dl_sysctl_mspm0gx51x.h:603
Definition: dl_sysctl_mspm0gx51x.h:539
DL_SYSCTL_SYSPLL_MCLK
Definition: dl_sysctl_mspm0gx51x.h:278
Definition: dl_sysctl_mspm0gx51x.h:312
Definition: dl_sysctl_mspm0gx51x.h:554
Definition: dl_sysctl_mspm0gx51x.h:587
Definition: dl_sysctl_mspm0gx51x.h:645
__STATIC_INLINE void DL_SYSCTL_enableInterrupt(uint32_t interruptMask)
Enable SYSCTL interrupts.
Definition: dl_sysctl_mspm0gx51x.h:1387
__STATIC_INLINE uint32_t DL_SYSCTL_getStatus(void)
Returns general status of SYSCTL.
Definition: dl_sysctl_mspm0gx51x.h:1804
__STATIC_INLINE void DL_SYSCTL_setWriteProtectFirewallAddrRange(uint32_t addrMask)
Set the address range of the Write Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:2866
Definition: dl_sysctl_mspm0gx51x.h:300
Definition: dl_sysctl_mspm0gx51x.h:692
__STATIC_INLINE DL_SYSCTL_SYSOSC_FREQ DL_SYSCTL_getCurrentSYSOSCFreq(void)
Get the current frequency of the System Oscillator (SYSOSC) Current/actual SYSOSC frequency may be di...
Definition: dl_sysctl_mspm0gx51x.h:1777
Definition: dl_sysctl_mspm0gx51x.h:881
Definition: dl_sysctl_mspm0gx51x.h:609
__STATIC_INLINE uint32_t DL_SYSCTL_getLowerSRAMBoundaryAddress(void)
Get the lower SRAM boundary address.
Definition: dl_sysctl_mspm0gx51x.h:2374
__STATIC_INLINE void DL_SYSCTL_setPowerPolicySHUTDOWN(void)
Set power policy to SHUTDOWN mode.
Definition: dl_sysctl_mspm0gx51x.h:1296
DL_SYSCTL_MFPCLK_SOURCE
Definition: dl_sysctl_mspm0gx51x.h:577
DL_SYSCTL_POWER_POLICY_STOP DL_SYSCTL_getPowerPolicySTOP(void)
Get the STOP mode power policy.
Definition: dl_sysctl_mspm0gx51x.h:625
Definition: dl_sysctl_mspm0gx51x.h:605
__STATIC_INLINE void DL_SYSCTL_resetDevice(uint32_t resetType)
Resets the device.
Definition: dl_sysctl_mspm0gx51x.h:1374
__STATIC_INLINE void DL_SYSCTL_setLowerSRAMBoundaryAddress(uint32_t address)
Set the lower SRAM boundary address to act as partition for read-execute permission.
Definition: dl_sysctl_mspm0gx51x.h:2316
uint32_t resistorFine
Definition: dl_sysctl_mspm0gx51x.h:418
Definition: dl_sysctl_mspm0gx51x.h:772
Definition: dl_sysctl_mspm0gx51x.h:432
Definition: dl_sysctl_mspm0gx51x.h:280
__STATIC_INLINE uint32_t DL_SYSCTL_getRawInterruptStatus(uint32_t interruptMask)
Check interrupt flag of any SYSCTL interrupt.
Definition: dl_sysctl_mspm0gx51x.h:1452
__STATIC_INLINE void DL_SYSCTL_enableFlashBankSwap(void)
Enable the policy to allow flash bank swapping.
Definition: dl_sysctl_mspm0gx51x.h:3085
DL_SYSCTL_CLK_OUT_SOURCE
Definition: dl_sysctl_mspm0gx51x.h:527
__STATIC_INLINE DL_SYSCTL_FLASH_WAIT_STATE DL_SYSCTL_getFlashWaitState(void)
Get flash wait state.
Definition: dl_sysctl_mspm0gx51x.h:2437
DL_SYSCTL_IIDX
Definition: dl_sysctl_mspm0gx51x.h:364
void DL_SYSCTL_setHFCLKSourceHFXT(DL_SYSCTL_HFXT_RANGE range)
Change HFCLK source to external crystal HFXT with default parameters.
DL_SYSCTL_SYSPLL_REF sysPLLRef
Definition: dl_sysctl_mspm0gx51x.h:334
__STATIC_INLINE DL_SYSCTL_MCLK_SOURCE DL_SYSCTL_getMCLKSource(void)
Get the source for the Main Clock (MCLK)
Definition: dl_sysctl_mspm0gx51x.h:1683
Definition: dl_sysctl_mspm0gx51x.h:497
Definition: dl_sysctl_mspm0gx51x.h:487
Definition: dl_sysctl_mspm0gx51x.h:475
Definition: dl_sysctl_mspm0gx51x.h:308
Definition: dl_sysctl_mspm0gx51x.h:904
Definition: dl_sysctl_mspm0gx51x.h:535
__STATIC_INLINE void DL_SYSCTL_setReadExecuteProtectFirewallAddrStart(uint32_t startAddr)
Set the start address of the Read Execute (RX) Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:2932
Definition: dl_sysctl_mspm0gx51x.h:467
uint32_t enableCLK1
Definition: dl_sysctl_mspm0gx51x.h:328
Definition: dl_sysctl_mspm0gx51x.h:597
Definition: dl_sysctl_mspm0gx51x.h:808
Definition: dl_sysctl_mspm0gx51x.h:617
Definition: dl_sysctl_mspm0gx51x.h:764
Definition: dl_sysctl_mspm0gx51x.h:653
__STATIC_INLINE void DL_SYSCTL_enableIPProtectFirewall(void)
Enable IP Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:3173
DL_SYSCTL_HSCLK_SOURCE
Definition: dl_sysctl_mspm0gx51x.h:473
__STATIC_INLINE void DL_SYSCTL_disableInterrupt(uint32_t interruptMask)
Disable SYSCTL interrupts.
Definition: dl_sysctl_mspm0gx51x.h:1398
Definition: dl_sysctl_mspm0gx51x.h:843
DL_SYSCTL_SYSOSC_USERTRIM_FREQ freq
Definition: dl_sysctl_mspm0gx51x.h:424
Definition: dl_sysctl_mspm0gx51x.h:398
void DL_SYSCTL_setHFCLKSourceHFXTParams(DL_SYSCTL_HFXT_RANGE range, uint32_t startupTime, bool monitorEnable)
Change HFCLK source to external crystal HFXT with custom parameters.
Definition: dl_sysctl_mspm0gx51x.h:713
Definition: dl_sysctl_mspm0gx51x.h:310
__STATIC_INLINE void DL_SYSCTL_setHSCLKSource(DL_SYSCTL_HSCLK_SOURCE source)
Set the source of High Speed Clock (HSCLK)
Definition: dl_sysctl_mspm0gx51x.h:2063
__STATIC_INLINE void DL_SYSCTL_enableExternalClock(DL_SYSCTL_CLK_OUT_SOURCE source, DL_SYSCTL_CLK_OUT_DIVIDE divider)
Enable the External Clock (CLK_OUT)
Definition: dl_sysctl_mspm0gx51x.h:2215
__STATIC_INLINE void DL_SYSCTL_setVBOOSTConfig(DL_SYSCTL_VBOOST setting)
Sets operating mode of VBOOST (analog charge pump)
Definition: dl_sysctl_mspm0gx51x.h:2601
__STATIC_INLINE DL_SYSCTL_ULPCLK_DIV DL_SYSCTL_getULPCLKDivider(void)
Get divider used for the Ultra Low Power Clock (ULPCLK)
Definition: dl_sysctl_mspm0gx51x.h:1865
Definition: dl_sysctl_mspm0gx51x.h:915
DL_SYSCTL_SYSPLL_INPUT_FREQ
Definition: dl_sysctl_mspm0gx51x.h:306
__STATIC_INLINE uint32_t DL_SYSCTL_getEnabledInterrupts(uint32_t interruptMask)
Check which SYSCTL interrupts are enabled.
Definition: dl_sysctl_mspm0gx51x.h:1413
Definition: dl_sysctl_mspm0gx51x.h:601
DL_SYSCTL_SYSPLL_INPUT_FREQ inputFreq
Definition: dl_sysctl_mspm0gx51x.h:340
__STATIC_INLINE void DL_SYSCTL_clearInterruptStatus(uint32_t interruptMask)
Clear pending SYSCTL interrupts.
Definition: dl_sysctl_mspm0gx51x.h:1479
Definition: dl_sysctl_mspm0gx51x.h:668
DL_SYSCTL_VBOOST
Definition: dl_sysctl_mspm0gx51x.h:760
Definition: dl_sysctl_mspm0gx51x.h:719
Definition: dl_sysctl_mspm0gx51x.h:650
__STATIC_INLINE void DL_SYSCTL_setSRAMBank1PowerLevelInRUN(DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_RUN_MODE powerLevel)
Set the power level for SRAM Bank 1 when in RUN mode.
Definition: dl_sysctl_mspm0gx51x.h:3338
__STATIC_INLINE void DL_SYSCTL_setHFXTStartupTime(uint32_t startupTime)
Set the HFXT startup time.
Definition: dl_sysctl_mspm0gx51x.h:2729
__STATIC_INLINE void DL_SYSCTL_setWWDT1ErrorBehavior(DL_SYSCTL_ERROR_BEHAVIOR behavior)
Set the behavior when a WWDT1 error occurs.
Definition: dl_sysctl_mspm0gx51x.h:1617
__STATIC_INLINE void DL_SYSCTL_setLFCLKSourceEXLF(void)
Change LFCLK source to external digital LFCLK_IN.
Definition: dl_sysctl_mspm0gx51x.h:1920
__STATIC_INLINE void DL_SYSCTL_setPowerPolicyRUN2SLEEP2(void)
Set the RUN/SLEEP mode power policy to RUN2/SLEEP2.
Definition: dl_sysctl_mspm0gx51x.h:1115
Definition: dl_sysctl_mspm0gx51x.h:857
Definition: dl_sysctl_mspm0gx51x.h:823
Definition: dl_sysctl_mspm0gx51x.h:569
Definition: dl_sysctl_mspm0gx51x.h:725
__STATIC_INLINE void DL_SYSCTL_clearECCErrorStatus(void)
Clear the ECC error bits in SYSSTATUS.
Definition: dl_sysctl_mspm0gx51x.h:1816
__STATIC_INLINE bool DL_SYSCTL_isFCCDone(void)
Returns whether FCC is done capturing.
Definition: dl_sysctl_mspm0gx51x.h:2476
__STATIC_INLINE bool DL_SYSCTL_isReadExecuteProtectFirewallEnabled(void)
Checks if Read Execute (RX) Protect Firewall is enabled.
Definition: dl_sysctl_mspm0gx51x.h:3236
Definition: dl_sysctl_mspm0gx51x.h:579
Definition: dl_sysctl_mspm0gx51x.h:833
Definition: dl_sysctl_mspm0gx51x.h:521
Definition: dl_sysctl_mspm0gx51x.h:314
Definition: dl_sysctl_mspm0gx51x.h:871
Definition: dl_sysctl_mspm0gx51x.h:817
DL_SYSCTL_SYSOSC_USERTRIM_FREQ
Definition: dl_sysctl_mspm0gx51x.h:404
__STATIC_INLINE bool DL_SYSCTL_isFlashBankSwapEnabled(void)
Checks if Flash Bank swapping is enabled.
Definition: dl_sysctl_mspm0gx51x.h:3279
Definition: dl_sysctl_mspm0gx51x.h:511
NMI interrupt index for early BOR.
Definition: dl_sysctl_mspm0gx51x.h:356
__STATIC_INLINE void DL_SYSCTL_setFCCPeriods(DL_SYSCTL_FCC_TRIG_CNT periods)
Sets number of rising-edge to rising-edge period for Frequency Clock Counter (FCC) ...
Definition: dl_sysctl_mspm0gx51x.h:2512
Definition: dl_sysctl_mspm0gx51x.h:731
__STATIC_INLINE void DL_SYSCTL_setReadExecuteProtectFirewallAddrEnd(uint32_t endAddr)
Set the end address of the Read Execute (RX) Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:2973
Definition: dl_sysctl_mspm0gx51x.h:643
Definition: dl_sysctl_mspm0gx51x.h:701
NMI interrupt index for Flash Double Error Detect.
Definition: dl_sysctl_mspm0gx51x.h:348
SRAM Single Error Correct.
Definition: dl_sysctl_mspm0gx51x.h:373
__STATIC_INLINE void DL_SYSCTL_enableSleepOnExit(void)
Enable sleep on exit.
Definition: dl_sysctl_mspm0gx51x.h:925
DL_SYSCTL_CLK_OUT_DIVIDE
Definition: dl_sysctl_mspm0gx51x.h:547
DL_SYSCTL_POWER_POLICY_STANDBY
Definition: dl_sysctl_mspm0gx51x.h:804
__STATIC_INLINE DL_SYSCTL_HFXT_RANGE DL_SYSCTL_getHFXTFrequencyRange(void)
Get the HFXT frequency range.
Definition: dl_sysctl_mspm0gx51x.h:2770
__STATIC_INLINE uint32_t DL_SYSCTL_getIPProtectFirewallAddrStart(void)
Get the start address of the IP Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:3025
uint32_t resistorCoarse
Definition: dl_sysctl_mspm0gx51x.h:420
Definition: dl_sysctl_mspm0gx51x.h:847
Definition: dl_sysctl_mspm0gx51x.h:689
Definition: dl_sysctl_mspm0gx51x.h:913
Definition: dl_sysctl_mspm0gx51x.h:529
DL_SYSCTL_BOR_THRESHOLD_LEVEL
Definition: dl_sysctl_mspm0gx51x.h:814
__STATIC_INLINE void DL_SYSCTL_startFCC(void)
Start Frequency Clock Counter (FCC)
Definition: dl_sysctl_mspm0gx51x.h:2461
__STATIC_INLINE DL_SYSCTL_ERROR_BEHAVIOR DL_SYSCTL_getWWDT1ErrorBehavior(void)
Get the behavior when a WWDT1 error occurs.
Definition: dl_sysctl_mspm0gx51x.h:1635
__STATIC_INLINE void DL_SYSCTL_enableSYSOSCFCL(void)
Enable Frequency Correction Loop (FCL) in Internal Resistor Mode.
Definition: dl_sysctl_mspm0gx51x.h:2537
DL_SYSCTL_FCC_CLOCK_SOURCE
Definition: dl_sysctl_mspm0gx51x.h:637
__STATIC_INLINE void DL_SYSCTL_setMFPCLKSource(DL_SYSCTL_MFPCLK_SOURCE source)
Set the source of Middle Frequency Precision Clock (MFPCLK)
Definition: dl_sysctl_mspm0gx51x.h:2094
The error event will trigger a SYSRST.
Definition: dl_sysctl_mspm0gx51x.h:388
Definition: dl_sysctl_mspm0gx51x.h:851
Definition: dl_sysctl_mspm0gx51x.h:483
High Frequency Clock is stabilized and ready to use.
Definition: dl_sysctl_mspm0gx51x.h:378
Definition: dl_sysctl_mspm0gx51x.h:463
Definition: dl_sysctl_mspm0gx51x.h:864
__STATIC_INLINE void DL_SYSCTL_issueINITDONE(void)
Indicate that INIT is done.
Definition: dl_sysctl_mspm0gx51x.h:3325
__STATIC_INLINE void DL_SYSCTL_setBORThreshold(DL_SYSCTL_BOR_THRESHOLD_LEVEL thresholdLevel)
Set the brown-out reset (BOR) threshold level.
Definition: dl_sysctl_mspm0gx51x.h:1328
__STATIC_INLINE void DL_SYSCTL_setPowerPolicySTANDBY0(void)
Set the STANDBY mode power policy to STANDBY0.
Definition: dl_sysctl_mspm0gx51x.h:1234
DL_SYSCTL_LFXT_DRIVE_STRENGTH xt1Drive
Definition: dl_sysctl_mspm0gx51x.h:457
Definition: dl_sysctl_mspm0gx51x.h:854
Definition: dl_sysctl_mspm0gx51x.h:674
Definition: dl_sysctl_mspm0gx51x.h:740
__STATIC_INLINE void DL_SYSCTL_executeFromUpperFlashBank(void)
Perform bank swap and execute from the Upper Flash Bank.
Definition: dl_sysctl_mspm0gx51x.h:3127
__STATIC_INLINE DL_SYSCTL_RESET_CAUSE DL_SYSCTL_getResetCause(void)
Return byte that is stored in RSTCAUSE.
Definition: dl_sysctl_mspm0gx51x.h:2712
Definition: dl_sysctl_mspm0gx51x.h:589
__STATIC_INLINE DL_SYSCTL_VBOOST DL_SYSCTL_getVBOOSTConfig(void)
Gets operating mode of VBOOST (analog charge pump)
Definition: dl_sysctl_mspm0gx51x.h:2618
__STATIC_INLINE uint32_t DL_SYSCTL_getReadExecuteProtectFirewallAddrEnd(void)
Get the end address of the Read Execute (RX) Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:2988
Definition: dl_sysctl_mspm0gx51x.h:396
Definition: dl_sysctl_mspm0gx51x.h:873
DL_SYSCTL_HFXT_RANGE
Definition: dl_sysctl_mspm0gx51x.h:461
NMI interrupt index for no interrupt pending.
Definition: dl_sysctl_mspm0gx51x.h:358
__STATIC_INLINE DL_SYSCTL_ERROR_BEHAVIOR DL_SYSCTL_getWWDT0ErrorBehavior(void)
Get the behavior when a WWDT0 error occurs.
Definition: dl_sysctl_mspm0gx51x.h:1598
__STATIC_INLINE void DL_SYSCTL_setHFXTFrequencyRange(DL_SYSCTL_HFXT_RANGE range)
Set the HFXT frequency range.
Definition: dl_sysctl_mspm0gx51x.h:2756
__STATIC_INLINE void DL_SYSCTL_setHFCLKDividerForMFPCLK(DL_SYSCTL_HFCLK_MFPCLK_DIVIDER divider)
Set the divider for HFCLK when HFCLK is used as the MFPCLK source.
Definition: dl_sysctl_mspm0gx51x.h:2166
__STATIC_INLINE void DL_SYSCTL_setIPProtectFirewallAddrEnd(uint32_t endAddr)
Set the end address of the IP Protect firewall.
Definition: dl_sysctl_mspm0gx51x.h:3050
__STATIC_INLINE void DL_SYSCTL_disableSYSPLL(void)
Disable the SYSPLL.
Definition: dl_sysctl_mspm0gx51x.h:1995
Definition: dl_sysctl_mspm0gx51x.h:866
DL_SYSCTL_HFCLK_MFPCLK_DIVIDER
Definition: dl_sysctl_mspm0gx51x.h:585
Definition: dl_sysctl_mspm0gx51x.h:593
Definition: dl_sysctl_mspm0gx51x.h:438
DL_SYSCTL_LFXT_DRIVE_STRENGTH
Definition: dl_sysctl_mspm0gx51x.h:436
DL_SYSCTL_SYSPLL_PDIV pDiv
Definition: dl_sysctl_mspm0gx51x.h:338
__STATIC_INLINE void DL_SYSCTL_disableEventOnPend(void)
Disable send event on pending bit.
Definition: dl_sysctl_mspm0gx51x.h:965
DL_SYSCTL_SYSPLL_PDIV
Definition: dl_sysctl_mspm0gx51x.h:294
Flash Single Error Correct.
Definition: dl_sysctl_mspm0gx51x.h:370
__STATIC_INLINE void DL_SYSCTL_setWWDT0ErrorBehavior(DL_SYSCTL_ERROR_BEHAVIOR behavior)
Set the behavior when a WWDT0 error occurs.
Definition: dl_sysctl_mspm0gx51x.h:1580
__STATIC_INLINE void DL_SYSCTL_enableReadExecuteProtectFirewall(void)
Enable Read Execute (RX) Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:3158
Definition: dl_sysctl_mspm0gx51x.h:894
__STATIC_INLINE void DL_SYSCTL_setDATABankRWProtectFirewallMode(DL_SYSCTL_DATA_BANK_READ_WRITE_PROTECT_FIREWALL protectionType)
Set the Read Write Protect Firewall for the Flash DATA Bank.
Definition: dl_sysctl_mspm0gx51x.h:2891
__STATIC_INLINE void DL_SYSCTL_disableFastCPUEventHandling(void)
Maintains current system clock speed for IRQ request to CPU.
Definition: dl_sysctl_mspm0gx51x.h:2286
__STATIC_INLINE DL_SYSCTL_ERROR_BEHAVIOR DL_SYSCTL_getFlashDEDErrorBehavior(void)
Get the behavior when a Flash ECC double error detect (DED) occurs.
Definition: dl_sysctl_mspm0gx51x.h:1560
__STATIC_INLINE void DL_SYSCTL_setPowerPolicySTOP1(void)
Set the STOP mode power policy to STOP1.
Definition: dl_sysctl_mspm0gx51x.h:1178
Definition: dl_sysctl_mspm0gx51x.h:641
Definition: dl_sysctl_mspm0gx51x.h:631
Definition: dl_sysctl_mspm0gx51x.h:477
__STATIC_INLINE void DL_SYSCTL_enableMFCLK(void)
Enable the Medium Frequency Clock (MFCLK)
Definition: dl_sysctl_mspm0gx51x.h:2121
Definition: dl_sysctl_mspm0gx51x.h:911
Definition: dl_sysctl_mspm0gx51x.h:728
Low Frequency Oscillator is stabilized and ready to use.
Definition: dl_sysctl_mspm0gx51x.h:366
Definition: dl_sysctl_mspm0gx51x.h:859
void DL_SYSCTL_switchMCLKfromSYSOSCtoHSCLK(DL_SYSCTL_HSCLK_SOURCE source)
Change MCLK source from SYSOSC to HSCLK.
__STATIC_INLINE void DL_SYSCTL_enableMFPCLK(void)
Enable the Middle Frequency Precision Clock (MFPCLK)
Definition: dl_sysctl_mspm0gx51x.h:2146
DL_SYSCTL_RESET_CAUSE
Definition: dl_sysctl_mspm0gx51x.h:839
Definition: dl_sysctl_mspm0gx51x.h:695
Definition: dl_sysctl_mspm0gx51x.h:722
High Speed Clock is stabilized and ready to use.
Definition: dl_sysctl_mspm0gx51x.h:382
Factory Region Driver Library.
__STATIC_INLINE uint32_t DL_SYSCTL_getHFXTStartupTime(void)
Get the HFXT startup time.
Definition: dl_sysctl_mspm0gx51x.h:2742
Definition: dl_sysctl_mspm0gx51x.h:716
Definition: dl_sysctl_mspm0gx51x.h:707
DL_SYSCTL_POWER_POLICY_STOP
Definition: dl_sysctl_mspm0gx51x.h:792
bool DL_SYSCTL_initIPProtectFirewall(uint32_t startAddr, uint32_t endAddr)
Initializes the IP Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:806
__STATIC_INLINE DL_SYSCTL_SYSOSC_FREQ DL_SYSCTL_getTargetSYSOSCFreq(void)
Get the target frequency of the System Oscillator (SYSOSC) Target/desired SYSOSC frequency may be dif...
Definition: dl_sysctl_mspm0gx51x.h:1762
uint32_t rDivClk1
Definition: dl_sysctl_mspm0gx51x.h:322
__STATIC_INLINE bool DL_SYSCTL_isINITDONEIssued(void)
Checks if INITDONE has been issued by the CSC.
Definition: dl_sysctl_mspm0gx51x.h:3208
__STATIC_INLINE void DL_SYSCTL_setUpperSRAMBoundaryAddress(uint32_t address)
Set the upper SRAM boundary address to act as partition for read-execute permission.
Definition: dl_sysctl_mspm0gx51x.h:2347
Definition: dl_sysctl_mspm0gx51x.h:746
__STATIC_INLINE DL_SYSCTL_IIDX DL_SYSCTL_getPendingInterrupt(void)
Get highest priority pending SYSCTL interrupt.
Definition: dl_sysctl_mspm0gx51x.h:1468
void DL_SYSCTL_configSYSPLL(const DL_SYSCTL_SYSPLLConfig *config)
Configure SYSPLL output frequencies.
Definition: dl_sysctl_mspm0gx51x.h:698
Definition: dl_sysctl_mspm0gx51x.h:800
Definition: dl_sysctl_mspm0gx51x.h:849
DL_SYSCTL_SYSPLL_MCLK sysPLLMCLK
Definition: dl_sysctl_mspm0gx51x.h:332
__STATIC_INLINE uint32_t DL_SYSCTL_getRawNonMaskableInterruptStatus(uint32_t interruptMask)
Check interrupt flag of any SYSCTL non-maskable interrupt.
Definition: dl_sysctl_mspm0gx51x.h:1497
__STATIC_INLINE void DL_SYSCTL_disableExternalClockDivider(void)
Disable the External Clock (CLK_OUT) Divider.
Definition: dl_sysctl_mspm0gx51x.h:2238
__STATIC_INLINE void DL_SYSCTL_setMCLKDivider(DL_SYSCTL_MCLK_DIVIDER divider)
Set the Main Clock (MCLK) divider (MDIV)
Definition: dl_sysctl_mspm0gx51x.h:1656
__STATIC_INLINE DL_SYSCTL_DATA_BANK_READ_WRITE_PROTECT_FIREWALL DL_SYSCTL_getDATABankRWProtectFirewallMode(void)
Get the protection type for the Read Write Protect Firewall for the Flash DATA Bank.
Definition: dl_sysctl_mspm0gx51x.h:2905
uint32_t rDiv
Definition: dl_sysctl_mspm0gx51x.h:416
__STATIC_INLINE bool DL_SYSCTL_isExecuteFromUpperFlashBank(void)
Checks if executing from upper flash bank.
Definition: dl_sysctl_mspm0gx51x.h:3294
Definition: dl_sysctl_mspm0gx51x.h:505
Definition: dl_sysctl_mspm0gx51x.h:901
Definition: dl_sysctl_mspm0gx51x.h:762
NMI interrupt index for Watchdog 0 Fault.
Definition: dl_sysctl_mspm0gx51x.h:354
Definition: dl_sysctl_mspm0gx51x.h:495
Definition: dl_sysctl_mspm0gx51x.h:883
__STATIC_INLINE void DL_SYSCTL_setFlashWaitState(DL_SYSCTL_FLASH_WAIT_STATE waitState)
Set flash wait state.
Definition: dl_sysctl_mspm0gx51x.h:2418
DL_SYSCTL_DATA_BANK_READ_WRITE_PROTECT_FIREWALL
Definition: dl_sysctl_mspm0gx51x.h:909
__STATIC_INLINE void DL_SYSCTL_enableWriteLock(void)
Enable write protection of selected SYSCTL registers.
Definition: dl_sysctl_mspm0gx51x.h:2572
Definition: dl_sysctl_mspm0gx51x.h:737
Definition: dl_sysctl_mspm0gx51x.h:302
Definition: dl_sysctl_mspm0gx51x.h:298
Definition: dl_sysctl_mspm0gx51x.h:493
__STATIC_INLINE void DL_SYSCTL_disableHFXT(void)
Disable the HFXT.
Definition: dl_sysctl_mspm0gx51x.h:2012
Definition: dl_sysctl_mspm0gx51x.h:656
__STATIC_INLINE void DL_SYSCTL_disableWriteLock(void)
Disable write protection of selected SYSCTL registers.
Definition: dl_sysctl_mspm0gx51x.h:2585
Definition: dl_sysctl_mspm0gx51x.h:611
Definition: dl_sysctl_mspm0gx51x.h:519
Definition: dl_sysctl_mspm0gx51x.h:639
__STATIC_INLINE uint32_t DL_FactoryRegion_getTemperatureVoltage(void)
Get the ADC conversion results of temperature sensor output voltage.
Definition: dl_factoryregion.h:994
Low Frequency Crystal is stabilized and ready to use.
Definition: dl_sysctl_mspm0gx51x.h:376
__STATIC_INLINE void DL_SYSCTL_allowAllAsyncFastClockRequests(void)
Allows all asynchronous fast clock requests.
Definition: dl_sysctl_mspm0gx51x.h:2263
__STATIC_INLINE void DL_SYSCTL_setPowerPolicySTOP2(void)
Set the STOP mode power policy to STOP2.
Definition: dl_sysctl_mspm0gx51x.h:1201
DL_SYSCTL_POWER_POLICY_RUN_SLEEP DL_SYSCTL_getPowerPolicyRUNSLEEP(void)
Get the RUN/SLEEP mode power policy.
uint32_t enableCLK0
Definition: dl_sysctl_mspm0gx51x.h:330
Definition: dl_sysctl_mspm0gx51x.h:549
Definition: dl_sysctl_mspm0gx51x.h:615
DL_SYSCTL_POWER_POLICY_RUN_SLEEP
Definition: dl_sysctl_mspm0gx51x.h:780
Definition: dl_sysctl_mspm0gx51x.h:443
__STATIC_INLINE void DL_SYSCTL_enableHFCLKStartupMonitor(void)
Enable the HFCLK startup monitor.
Definition: dl_sysctl_mspm0gx51x.h:2789
DL_SYSCTL_SYSPLL_REF
Definition: dl_sysctl_mspm0gx51x.h:286
Configuration struct for DL_SYSCTL_LFCLKConfig.
Definition: dl_sysctl_mspm0gx51x.h:451
void DL_SYSCTL_switchMCLKfromHSCLKtoSYSOSC(void)
Change MCLK source from HSCLK to SYSOSC.
Definition: dl_sysctl_mspm0gx51x.h:507
Definition: dl_sysctl_mspm0gx51x.h:819
DL_SYSCTL_SHUTDOWN_STORAGE_BYTE
Definition: dl_sysctl_mspm0gx51x.h:827
__STATIC_INLINE DL_SYSCTL_MCLK_DIVIDER DL_SYSCTL_getMCLKDivider(void)
Get the Main Clock (MCLK) divider (MDIV)
Definition: dl_sysctl_mspm0gx51x.h:1669
The error event will trigger an NMI.
Definition: dl_sysctl_mspm0gx51x.h:390
__STATIC_INLINE void DL_SYSCTL_setULPCLKDivider(DL_SYSCTL_ULPCLK_DIV divider)
Set the divider for the Ultra Low Power Clock (ULPCLK)
Definition: dl_sysctl_mspm0gx51x.h:1852
Definition: dl_sysctl_mspm0gx51x.h:868
Definition: dl_sysctl_mspm0gx51x.h:786
Definition: dl_sysctl_mspm0gx51x.h:533
__STATIC_INLINE void DL_SYSCTL_setSRAMBank1PowerLevelInSTOP(DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_STOP_MODE powerLevel)
Set the power level for SRAM Bank 1 when in STOP mode.
Definition: dl_sysctl_mspm0gx51x.h:3368
uint32_t enableCLK2x
Definition: dl_sysctl_mspm0gx51x.h:326
DL_SYSCTL_SRAM_BANK1_POWER_LEVEL_STOP_MODE
Definition: dl_sysctl_mspm0gx51x.h:899
__STATIC_INLINE void DL_SYSCTL_disableSWD(void)
Disable Serial Wire Debug (SWD) functionality.
Definition: dl_sysctl_mspm0gx51x.h:2701
__STATIC_INLINE void DL_SYSCTL_disableMFCLK(void)
Disable the Medium Frequency Clock (MFCLK)
Definition: dl_sysctl_mspm0gx51x.h:2129
Definition: dl_sysctl_mspm0gx51x.h:680
__STATIC_INLINE uint32_t DL_SYSCTL_getReadExecuteProtectFirewallAddrStart(void)
Get the start address of the Read Execute (RX) Protect Firewall.
Definition: dl_sysctl_mspm0gx51x.h:2947
Definition: dl_sysctl_mspm0gx51x.h:591
__STATIC_INLINE void DL_SYSCTL_clearNonMaskableInterruptStatus(uint32_t interruptMask)
Clear pending SYSCTL non-maskable interrupts.
Definition: dl_sysctl_mspm0gx51x.h:1525
void DL_SYSCTL_switchMCLKfromLFCLKtoSYSOSC(void)
Change MCLK source from LFCLK to SYSOSC.
#define DL_SYSCTL_setMCLKSource(current, next,...)
Change MCLK source.
Definition: dl_sysctl_mspm0gx51x.h:1002
Definition: dl_sysctl_mspm0gx51x.h:774
__STATIC_INLINE void DL_SYSCTL_disableSleepOnExit(void)
Disable sleep on exit.
Definition: dl_sysctl_mspm0gx51x.h:935
Definition: dl_sysctl_mspm0gx51x.h:749
Definition: dl_sysctl_mspm0gx51x.h:821
DL_SYSCTL_FCC_TRIG_TYPE
Definition: dl_sysctl_mspm0gx51x.h:621
__STATIC_INLINE void DL_SYSCTL_setPowerPolicyRUN1SLEEP1(void)
Set the RUN/SLEEP mode power policy to RUN1/SLEEP1.
Definition: dl_sysctl_mspm0gx51x.h:1087
Definition: dl_sysctl_mspm0gx51x.h:671
Definition: dl_sysctl_mspm0gx51x.h:290
Definition: dl_sysctl_mspm0gx51x.h:441
void DL_SYSCTL_switchMCLKfromSYSOSCtoLFCLK(bool disableSYSOSC)
Change MCLK source from SYSOSC to LFCLK.
Definition: dl_sysctl_mspm0gx51x.h:509
NMI interrupt index for SRAM Double Error Detect.
Definition: dl_sysctl_mspm0gx51x.h:346