Driverlib SYSCTL API

Module: Driverlib (AM13E232X) APIs

More…

Structures

Name

struct

DL_SYSCTL_SYSPLLConfig
Configuration struct for DL_SYSCTL_configSYSPLL.

Types

Name

enum

DL_SYSCTL_RESET { DL_SYSCTL_RESET_SYS = 0x0U, DL_SYSCTL_RESET_BOOT = 0x1U, DL_SYSCTL_RESET_BOOTLOADERENTRY = 0x2U, DL_SYSCTL_RESET_POR = 0x3U, DL_SYSCTL_RESET_BOOTLOADEREXIT = 0x4U}
DL_SYSCTL_RESET.

enum

DL_SYSCTL_RESET_CAUSE { DL_SYSCTL_RESET_CAUSE_NORST = 0x0U, DL_SYSCTL_RESET_CAUSE_PORHWFAIL = 0x1U, DL_SYSCTL_RESET_CAUSE_POREXNRST = 0x2U, DL_SYSCTL_RESET_CAUSE_PORSW = 0x3U, DL_SYSCTL_RESET_CAUSE_BORSUPPLY = 0x4U, DL_SYSCTL_RESET_CAUSE_BORWAKESHUTDN = 0x5U, DL_SYSCTL_RESET_CAUSE_BOOTNONPMUPARITY = 0x8U, DL_SYSCTL_RESET_CAUSE_BOOTCLKFAIL = 0x9U, DL_SYSCTL_RESET_CAUSE_BOOTEXNRST = 0xCU, DL_SYSCTL_RESET_CAUSE_BOOTSW = 0xDU, DL_SYSCTL_RESET_CAUSE_BOOTWWDT0 = 0xEU, DL_SYSCTL_RESET_CAUSE_SYSBSLEXIT = 0x10U, DL_SYSCTL_RESET_CAUSE_SYSBSLENTRY = 0x11U, DL_SYSCTL_RESET_CAUSE_SYSFLASHECC = 0x14U, DL_SYSCTL_RESET_CAUSE_SYSCPULOCK = 0x15U, DL_SYSCTL_RESET_CAUSE_SYSDBG = 0x1AU, DL_SYSCTL_RESET_CAUSE_SYSSW = 0x1BU, DL_SYSCTL_RESET_CAUSE_CPUDBG = 0x1CU, DL_SYSCTL_RESET_CAUSE_CPUSW = 0x1DU}
DL_SYSCTL_RESET_CAUSE.

enum

DL_SYSCTL_IIDX { DL_SYSCTL_IIDX_NO_INTR = 0x0U, DL_SYSCTL_IIDX_LFOSCGOOD = 0x1U, DL_SYSCTL_IIDX_ANACLKERR = 0x2U, DL_SYSCTL_IIDX_FLASHSEC = 0x3U, DL_SYSCTL_IIDX_SRAMSEC = 0x4U, DL_SYSCTL_IIDX_HFCLKGOOD = 0x5U, DL_SYSCTL_IIDX_SYSPLLGOOD = 0x6U, DL_SYSCTL_IIDX_HSCLKGOOD = 0x7U}
DL_SYSCTL_IIDX.

enum

DL_SYSCTL_NMI_IIDX { DL_SYSCTL_NMI_IIDX_NO_INTR = 0x0U, DL_SYSCTL_NMI_IIDX_BORLVL = 0x1U, DL_SYSCTL_NMI_IIDX_WWDT0 = 0x2U, DL_SYSCTL_NMI_IIDX_SECURITY = 0x3U, DL_SYSCTL_NMI_IIDX_FLASHDED = 0x4U, DL_SYSCTL_NMI_IIDX_SRAMPAR = 0x5U, DL_SYSCTL_NMI_IIDX_TMUROMPAR = 0x6U, DL_SYSCTL_NMI_IIDX_SYSMEMACC = 0x7U, DL_SYSCTL_NMI_IIDX_ECATRESETOUT = 0x8U, DL_SYSCTL_NMI_IIDX_ECATRAMPAR = 0x9U}
DL_SYSCTL_NMI_IIDX.

enum

DL_SYSCTL_PERIPH_POWER { DL_SYSCTL_PWREN_EQEP0 = 0x14240000U, DL_SYSCTL_PWREN_EQEP1 = 0x14240001U, DL_SYSCTL_PWREN_ECAP0 = 0x14240002U, DL_SYSCTL_PWREN_ECAP1 = 0x14240003U, DL_SYSCTL_PWREN_ECAP2 = 0x14240004U, DL_SYSCTL_PWREN_MCPWM0 = 0x14240005U, DL_SYSCTL_PWREN_MCPWM1 = 0x14240006U, DL_SYSCTL_PWREN_MCPWM2 = 0x14240007U, DL_SYSCTL_PWREN_CMPSS0 = 0x14240008U, DL_SYSCTL_PWREN_CMPSS1 = 0x14240009U, DL_SYSCTL_PWREN_CMPSS2 = 0x1424000AU, DL_SYSCTL_PWREN_CMPSS3 = 0x1424000BU, DL_SYSCTL_PWREN_XBAR = 0x1424000CU, DL_SYSCTL_PWREN_EPWM0 = 0x1424000DU, DL_SYSCTL_PWREN_EPWM1 = 0x1424000EU, DL_SYSCTL_PWREN_EPWM2 = 0x1424000FU, DL_SYSCTL_PWREN_EPWM3 = 0x14240010U, DL_SYSCTL_PWREN_EPWM4 = 0x14240011U, DL_SYSCTL_PWREN_EPWM5 = 0x14240012U, DL_SYSCTL_PWREN_ETHERCAT_CORE0 = 0x14240013U, DL_SYSCTL_PWREN_FSI_TX0 = 0x14240014U, DL_SYSCTL_PWREN_FSI_RX0 = 0x14240015U, DL_SYSCTL_PWREN_SDFM0 = 0x14240016U, DL_SYSCTL_PWREN_OTTO0 = 0x14240017U, DL_SYSCTL_PWREN_TINIE = 0x14340000U, DL_SYSCTL_PWREN_PGA0 = 0x14340001U, DL_SYSCTL_PWREN_PGA1 = 0x14340002U, DL_SYSCTL_PWREN_PGA2 = 0x14340003U, DL_SYSCTL_PWREN_EPI = 0x14340004U, DL_SYSCTL_PWREN_ETHERCAT_SS0 = 0x14340005U}
DL_SYSCTL_PERIPH_POWER.

enum

DL_SYSCTL_PERIPH_RESET { DL_SYSCTL_RESET_EQEP0 = 0x14280000U, DL_SYSCTL_RESET_EQEP1 = 0x14280001U, DL_SYSCTL_RESET_ECAP0 = 0x14280002U, DL_SYSCTL_RESET_ECAP1 = 0x14280003U, DL_SYSCTL_RESET_ECAP2 = 0x14280004U, DL_SYSCTL_RESET_MCPWM0 = 0x14280005U, DL_SYSCTL_RESET_MCPWM1 = 0x14280006U, DL_SYSCTL_RESET_MCPWM2 = 0x14280007U, DL_SYSCTL_RESET_CMPSS0 = 0x14280008U, DL_SYSCTL_RESET_CMPSS1 = 0x14280009U, DL_SYSCTL_RESET_CMPSS2 = 0x1428000AU, DL_SYSCTL_RESET_CMPSS3 = 0x1428000BU, DL_SYSCTL_RESET_XBAR = 0x1428000CU, DL_SYSCTL_RESET_EPWM0 = 0x1428000DU, DL_SYSCTL_RESET_EPWM1 = 0x1428000EU, DL_SYSCTL_RESET_EPWM2 = 0x1428000FU, DL_SYSCTL_RESET_EPWM3 = 0x14280010U, DL_SYSCTL_RESET_EPWM4 = 0x14280011U, DL_SYSCTL_RESET_EPWM5 = 0x14280012U, DL_SYSCTL_RESET_ETHERCAT_CORE0 = 0x14280013U, DL_SYSCTL_RESET_FSI_TX0 = 0x14280014U, DL_SYSCTL_RESET_FSI_RX0 = 0x14280015U, DL_SYSCTL_RESET_SDFM0 = 0x14280016U, DL_SYSCTL_RESET_OTTO0 = 0x14280017U, DL_SYSCTL_RESET_TINIE = 0x14380000U, DL_SYSCTL_RESET_PGA0 = 0x14380001U, DL_SYSCTL_RESET_PGA1 = 0x14380002U, DL_SYSCTL_RESET_PGA2 = 0x14380003U, DL_SYSCTL_RESET_EPI = 0x14380004U}
DL_SYSCTL_PERIPH_RESET.

enum

DL_SYSCTL_SYSPLL_REF { DL_SYSCTL_SYSPLL_REF_SYSOSC = SYSCTL_SYSPLLCFG0_SYSPLLREF_SYSOSC, DL_SYSCTL_SYSPLL_REF_HFCLK = SYSCTL_SYSPLLCFG0_SYSPLLREF_HFCLK}
DL_SYSCTL_SYSPLL_REF.

enum

DL_SYSCTL_SYSPLL_PDIV { DL_SYSCTL_SYSPLL_PDIV_1 = 0x0U, DL_SYSCTL_SYSPLL_PDIV_2 = 0x1U, DL_SYSCTL_SYSPLL_PDIV_4 = 0x2U, DL_SYSCTL_SYSPLL_PDIV_8 = 0x3U}
DL_SYSCTL_SYSPLL_PDIV.

enum

DL_SYSCTL_SYSPLL_RDIVCLK1 { DL_SYSCTL_SYSPLL_RDIVCLK1_DIV2 = 0x0U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV4 = 0x1U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV6 = 0x2U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV8 = 0x3U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV10 = 0x4U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV12 = 0x5U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV14 = 0x6U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV16 = 0x7U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV18 = 0x8U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV20 = 0x9U, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV22 = 0xAU, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV24 = 0xBU, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV26 = 0xCU, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV28 = 0xDU, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV30 = 0xEU, DL_SYSCTL_SYSPLL_RDIVCLK1_DIV32 = 0xFU}
DL_SYSCTL_SYSPLL_RDIVCLK1.

enum

DL_SYSCTL_SYSPLL_RDIVCLK0 { DL_SYSCTL_SYSPLL_RDIVCLK0_DIV2 = 0x0U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV4 = 0x1U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV6 = 0x2U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV8 = 0x3U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV10 = 0x4U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV12 = 0x5U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV14 = 0x6U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV16 = 0x7U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV18 = 0x8U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV20 = 0x9U, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV22 = 0xAU, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV24 = 0xBU, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV26 = 0xCU, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV28 = 0xDU, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV30 = 0xEU, DL_SYSCTL_SYSPLL_RDIVCLK0_DIV32 = 0xFU}
DL_SYSCTL_SYSPLL_RDIVCLK0.

enum

DL_SYSCTL_SYSPLL_INPUT_FREQ { DL_SYSCTL_SYSPLL_INPUT_FREQ_4_8_MHZ = 0x60111020U, DL_SYSCTL_SYSPLL_INPUT_FREQ_8_16_MHZ = 0x60111028U, DL_SYSCTL_SYSPLL_INPUT_FREQ_16_32_MHZ = 0x60111030U, DL_SYSCTL_SYSPLL_INPUT_FREQ_32_48_MHZ = 0x60111038U}
DL_SYSCTL_SYSPLL_INPUT_FREQ.

enum

DL_SYSCTL_ERROR_BEHAVIOR { DL_SYSCTL_ERROR_BEHAVIOR_RESET = 0x0, DL_SYSCTL_ERROR_BEHAVIOR_NMI = 0x1}
DL_SYSCTL_ERROR_BEHAVIOR.

enum

DL_SYSCTL_MCLK_DIV { DL_SYSCTL_MCLK_DIV_1_DIV_1 = 0x00000000, DL_SYSCTL_MCLK_DIV_1_DIV_2 = 0x01000000, DL_SYSCTL_MCLK_DIV_1_DIV_4 = 0x03000000, DL_SYSCTL_MCLK_DIV_2_DIV_2 = 0x05000000, DL_SYSCTL_MCLK_DIV_2_DIV_4 = 0x07000000}
DL_SYSCTL_MCLK_DIV.

enum

DL_SYSCTL_HSCLK_SOURCE { DL_SYSCTL_HSCLK_SOURCE_SYSPLL = SYSCTL_HSCLKCFG_HSCLKSEL_SYSPLL, DL_SYSCTL_HSCLK_SOURCE_HFCLK = SYSCTL_HSCLKCFG_HSCLKSEL_HFCLKCLK}
DL_SYSCTL_HSCLK_SOURCE.

enum

DL_SYSCTL_MCLK_SOURCE { DL_SYSCTL_MCLK_SOURCE_SYSOSC = SYSCTL_MCLKCFG_USEHSCLK_DISABLE, DL_SYSCTL_MCLK_SOURCE_HSCLK = SYSCTL_MCLKCFG_USEHSCLK_ENABLE}
DL_SYSCTL_MCLK_SOURCE.

enum

DL_SYSCTL_CANCLK_SOURCE { DL_SYSCTL_CANCLK_SOURCE_HFCLK = 0xFFFFFFFFU, DL_SYSCTL_CANCLK_SOURCE_SYSPLL = SYSCTL_GENCLKEN_CANEXTDIVEN_PASSTHRU, DL_SYSCTL_CANCLK_SOURCE_SYSPLL_DIV2 = SYSCTL_GENCLKEN_CANEXTDIVEN_ENABLE

enum

DL_SYSCTL_CLK_OUT_SOURCE { DL_SYSCTL_CLK_OUT_SOURCE_SYSOSC = 0x0U, DL_SYSCTL_CLK_OUT_SOURCE_ULPCLK = 0x1U, DL_SYSCTL_CLK_OUT_SOURCE_LFCLK = 0x2U, DL_SYSCTL_CLK_OUT_SOURCE_MFPCLK = 0x3U, DL_SYSCTL_CLK_OUT_SOURCE_HFCLK = 0x4U, DL_SYSCTL_CLK_OUT_SOURCE_SYSPLLOUT1 = 0x5U}
DL_SYSCTL_CLK_OUT_SOURCE.

enum

DL_SYSCTL_CLK_OUT_DIVIDE { DL_SYSCTL_CLK_OUT_DIVIDE_DISABLE = SYSCTL_GENCLKCFG_EXCLKDIVEN_PASSTHRU, DL_SYSCTL_CLK_OUT_DIVIDE_2 = SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE

enum

DL_SYSCTL_FCC_TRIG_TYPE { DL_SYSCTL_FCC_TRIG_TYPE_RISE_RISE = SYSCTL_GENCLKCFG_FCCLVLTRIG_RISE2RISE, DL_SYSCTL_FCC_TRIG_TYPE_LEVEL = SYSCTL_GENCLKCFG_FCCLVLTRIG_LEVEL}
DL_SYSCTL_FCC_TRIG_TYPE.

enum

DL_SYSCTL_FCC_TRIG_SOURCE { DL_SYSCTL_FCC_TRIG_SOURCE_EXTPIN = 0x00000000U, DL_SYSCTL_FCC_TRIG_SOURCE_LFCLK = 0x00100000U}
DL_SYSCTL_FCC_TRIG_SOURCE.

enum

DL_SYSCTL_FCC_CLOCK_SOURCE { DL_SYSCTL_FCC_CLOCK_SOURCE_MCLKBY4 = 0x00000000U, DL_SYSCTL_FCC_CLOCK_SOURCE_SYSOSC = 0x00010000U, DL_SYSCTL_FCC_CLOCK_SOURCE_HFCLK = 0x00020000U, DL_SYSCTL_FCC_CLOCK_SOURCE_EXTCLK = 0x00030000U, DL_SYSCTL_FCC_CLOCK_SOURCE_SYSPLLCLK0 = 0x00040000U, DL_SYSCTL_FCC_CLOCK_SOURCE_SYSPLLCLK1 = 0x00050000U, DL_SYSCTL_FCC_CLOCK_SOURCE_ECAT25CLK = 0x00060000U, DL_SYSCTL_FCC_CLOCK_SOURCE_FCCIN = 0x00070000U}
DL_SYSCTL_FCC_CLOCK_SOURCE.

enum

DL_SYSCTL_FCC_TRIG_CNT { DL_SYSCTL_FCC_TRIG_CNT_01 = ((uint32_t)0 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_02 = ((uint32_t)1 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_03 = ((uint32_t)2 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_04 = ((uint32_t)3 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_05 = ((uint32_t)4 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_06 = ((uint32_t)5 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_07 = ((uint32_t)6 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_08 = ((uint32_t)7 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_09 = ((uint32_t)8 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_10 = ((uint32_t)9 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_11 = ((uint32_t)10 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_12 = ((uint32_t)11 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_13 = ((uint32_t)12 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_14 = ((uint32_t)13 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_15 = ((uint32_t)14 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_16 = ((uint32_t)15 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_17 = ((uint32_t)16 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_18 = ((uint32_t)17 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_19 = ((uint32_t)18 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_20 = ((uint32_t)19 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_21 = ((uint32_t)20 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_22 = ((uint32_t)21 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_23 = ((uint32_t)22 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_24 = ((uint32_t)23 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_25 = ((uint32_t)24 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_26 = ((uint32_t)25 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_27 = ((uint32_t)26 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_28 = ((uint32_t)27 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_29 = ((uint32_t)28 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_30 = ((uint32_t)29 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_31 = ((uint32_t)30 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS), DL_SYSCTL_FCC_TRIG_CNT_32 = ((uint32_t)31 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)}
DL_SYSCTL_FCC_TRIG_CNT.

enum

DL_SYSCTL_POWER_POLICY_STANDBY { DL_SYSCTL_POWER_POLICY_STANDBY_NOT_ENABLED = 0x0, DL_SYSCTL_POWER_POLICY_STANDBY0 = 0x1, DL_SYSCTL_POWER_POLICY_STANDBY1 = 0x2}
DL_SYSCTL_POWER_POLICY_STANDBY.

enum

DL_SYSCTL_SHUTDOWN_STORAGE_BYTE { DL_SYSCTL_SHUTDOWN_STORAGE_BYTE_0 = 0x0, DL_SYSCTL_SHUTDOWN_STORAGE_BYTE_1 = 0x1, DL_SYSCTL_SHUTDOWN_STORAGE_BYTE_2 = 0x2, DL_SYSCTL_SHUTDOWN_STORAGE_BYTE_3 = 0x3}
DL_SYSCTL_SHUTDOWN_STORAGE_BYTE.

enum

DL_SYSCTL_PLL_DIVIDER { DL_SYSCTL_PLL_DIVIDER_DIV2 = SYSCTL_GENCLKEN_EXTDIVMCLK_DIV2, DL_SYSCTL_PLL_DIVIDER_DIV4 = SYSCTL_GENCLKEN_EXTDIVMCLK_DIV4, DL_SYSCTL_PLL_DIVIDER_DIV6 = SYSCTL_GENCLKEN_EXTDIVMCLK_DIV6, DL_SYSCTL_PLL_DIVIDER_DIV8 = SYSCTL_GENCLKEN_EXTDIVMCLK_DIV8, DL_SYSCTL_PLL_DIVIDER_DIV10 = SYSCTL_GENCLKEN_EXTDIVMCLK_DIV10, DL_SYSCTL_PLL_DIVIDER_DIV12 = SYSCTL_GENCLKEN_EXTDIVMCLK_DIV12, DL_SYSCTL_PLL_DIVIDER_DIV14 = SYSCTL_GENCLKEN_EXTDIVMCLK_DIV14, DL_SYSCTL_PLL_DIVIDER_DIV16 = SYSCTL_GENCLKEN_EXTDIVMCLK_DIV16}
DL_SYSCTL_PLL_DIVIDER.

enum

DL_SYSCTL_CMPSS_MUX { DL_SYSCTL_CMPSS0_MUX = 0, DL_SYSCTL_CMPSS1_MUX = 1, DL_SYSCTL_CMPSS2_MUX = 2, DL_SYSCTL_CMPSS3_MUX = 3}
DL_SYSCTL_CMPSS_MUX.

enum

DL_SYSCTL_CMP_HP { DL_SYSCTL_CMP_HP0 = 0, DL_SYSCTL_CMP_HP1 = 1, DL_SYSCTL_CMP_HP2 = 2, DL_SYSCTL_CMP_HP3 = 3, DL_SYSCTL_CMP_HP4 = 4, DL_SYSCTL_CMP_HP5 = 5, DL_SYSCTL_CMP_HP6 = 6}
DL_SYSCTL_CMP_HP.

enum

DL_SYSCTL_CMP_HN { DL_SYSCTL_CMP_HN0 = 0, DL_SYSCTL_CMP_HN1 = 1}
DL_SYSCTL_CMP_HN.

enum

DL_SYSCTL_CMP_LP { DL_SYSCTL_CMP_LP0 = 0, DL_SYSCTL_CMP_LP1 = 1, DL_SYSCTL_CMP_LP2 = 2, DL_SYSCTL_CMP_LP3 = 3, DL_SYSCTL_CMP_LP4 = 4, DL_SYSCTL_CMP_LP5 = 5, DL_SYSCTL_CMP_LP6 = 6}
DL_SYSCTL_CMP_LP.

enum

DL_SYSCTL_CMP_LN { DL_SYSCTL_CMP_LN0 = 0, DL_SYSCTL_CMP_LN1 = 1}
DL_SYSCTL_CMP_LN.

enum

DL_SYSCTL_ETHERCAT_CLK_DIV { DL_SYSCTL_ETHERCAT_CLK_DIV_1 = 0x0U, DL_SYSCTL_ETHERCAT_CLK_DIV_2 = 0x1U, DL_SYSCTL_ETHERCAT_CLK_DIV_3 = 0x2U, DL_SYSCTL_ETHERCAT_CLK_DIV_4 = 0x3U, DL_SYSCTL_ETHERCAT_CLK_DIV_5 = 0x4U, DL_SYSCTL_ETHERCAT_CLK_DIV_6 = 0x5U, DL_SYSCTL_ETHERCAT_CLK_DIV_7 = 0x6U, DL_SYSCTL_ETHERCAT_CLK_DIV_8 = 0x7U}
DL_SYSCTL_ETHERCAT_CLK_DIV.

enum

DL_SYSCTL_InternalTestNode { DL_SYSCTL_TEST_NODE_VDDCORE = 1, DL_SYSCTL_TEST_NODE_VDDA = 2, DL_SYSCTL_TEST_NODE_VSSA = 3, DL_SYSCTL_TEST_NODE_VREFLO = 4, DL_SYSCTL_TEST_NODE_CDAC0H = 5, DL_SYSCTL_TEST_NODE_CDAC0L = 6, DL_SYSCTL_TEST_NODE_CDAC1H = 7, DL_SYSCTL_TEST_NODE_CDAC1L = 8, DL_SYSCTL_TEST_NODE_CDAC2H = 9, DL_SYSCTL_TEST_NODE_CDAC2L = 10, DL_SYSCTL_TEST_NODE_CDAC3H = 11, DL_SYSCTL_TEST_NODE_CDAC3L = 12}
DL_SYSCTL_InternalTestNode.

enum

DL_SYSCTL_SRAM_BUS { DL_SYSCTL_SRAM_CBUS = 0x1, DL_SYSCTL_SRAM_SBUS = 0x0}
DL_SYSCTL_SRAM_BUS.

enum

DL_SYSCTL_BUSMUX_ENABLED_SRAM { DL_SYSCTL_BUSMUX_ENABLED_SRAM4 = 0x4, DL_SYSCTL_BUSMUX_ENABLED_SRAM5 = 0x5}
DL_SYSCTL_BUSMUX_ENABLED_SRAM.

enum

DL_SYSCTL_VREF_MODE { DL_SYSCTL_VREF_EXTERNAL_FULL_SCALE = 0x101, DL_SYSCTL_VREF_EXTERNAL_HALF_SCALE = 0x001, DL_SYSCTL_VREF_INTERNAL_3_3_V = 0x000, DL_SYSCTL_VREF_INTERNAL_2_5_V = 0x100}
DL_SYSCTL_VREF_MODE.

Functions

Name

__STATIC_INLINE void

DL_SYSCTL_enableSleepOnExit(void )
Enable sleep on exit.

__STATIC_INLINE void

DL_SYSCTL_disableSleepOnExit(void )
Disable sleep on exit.

__STATIC_INLINE bool

DL_SYSCTL_isSleepOnExitEnabled(void )
Check if sleep on exit is enabled.

__STATIC_INLINE void

DL_SYSCTL_enableEventOnPend(void )
Enable send event on pending bit.

__STATIC_INLINE void

DL_SYSCTL_disableEventOnPend(void )
Disable send event on pending bit.

__STATIC_INLINE bool

DL_SYSCTL_isEventOnPendEnabled(void )
Check if send event on pending bit is enabled.

void

DL_SYSCTL_switchMCLKfromSYSOSCtoHSCLK(DL_SYSCTL_HSCLK_SOURCE source)
Change MCLK source from SYSOSC to HSCLK.

void

DL_SYSCTL_switchMCLKfromHSCLKtoSYSOSC(void )
Change MCLK source from HSCLK to SYSOSC.

__STATIC_INLINE void

DL_SYSCTL_setPowerPolicyRUNSLEEP(void )
Set the RUN/SLEEP mode power policy to RUN0/SLEEP0.

__STATIC_INLINE void

DL_SYSCTL_setPowerPolicySTOP(void )
Set the STOP mode power policy to STOP0.

__STATIC_INLINE void

DL_SYSCTL_setPowerPolicySTANDBY0(void )
Set the STANDBY mode power policy to STANDBY0.

__STATIC_INLINE bool

DL_SYSCTL_isINITDONEIssued(void )
Checks if INITDONE has been issued by the CSC.

__STATIC_INLINE void

DL_SYSCTL_issueINITDONE(void )
Indicate that INIT is done.

__STATIC_INLINE void

DL_SYSCTL_swapFlashBank(void )
Swap the primary and secondary flash banks.

__STATIC_INLINE void

DL_SYSCTL_setPowerPolicySTANDBY1(void )
Set the STANDBY mode power policy to STANDBY1.

DL_SYSCTL_POWER_POLICY_STANDBY

DL_SYSCTL_getPowerPolicySTANDBY(void )
Get the STANDBY mode power policy.

__STATIC_INLINE void

DL_SYSCTL_setPowerPolicySHUTDOWN(void )
Set power policy to SHUTDOWN mode.

__STATIC_INLINE void

DL_SYSCTL_enablePower(DL_SYSCTL_PERIPH_POWER peripheral)
Enables power for the peripheral.

__STATIC_INLINE void

DL_SYSCTL_disablePower(DL_SYSCTL_PERIPH_POWER peripheral)
Disables power for the peripheral.

__STATIC_INLINE bool

DL_SYSCTL_isPowerEnabled(DL_SYSCTL_PERIPH_POWER peripheral)
Returns if the selected peripheral is powered.

__STATIC_INLINE void

DL_SYSCTL_resetPeripheral(DL_SYSCTL_PERIPH_RESET peripheral)
Resets the peripheral.

__STATIC_INLINE void

DL_SYSCTL_clearPeripheralResetFlag(DL_SYSCTL_PERIPH_RESET peripheral)
Resets the peripheral’s reset sticky flag.

__STATIC_INLINE bool

DL_SYSCTL_isPeripheralReset(DL_SYSCTL_PERIPH_RESET peripheral)
Check if a peripheral is reset.

__STATIC_INLINE void

DL_SYSCTL_resetDevice(DL_SYSCTL_RESET resetType)
Resets the device.

__STATIC_INLINE DL_SYSCTL_RESET_CAUSE

DL_SYSCTL_getResetCause(void )
Return byte that is stored in RSTCAUSE.

__STATIC_INLINE void

DL_SYSCTL_enableInterrupt(uint32_t interruptMask)
Enable SYSCTL interrupts.

__STATIC_INLINE void

DL_SYSCTL_disableInterrupt(uint32_t interruptMask)
Disable SYSCTL interrupts.

__STATIC_INLINE uint32_t

DL_SYSCTL_getEnabledInterrupts(uint32_t interruptMask)
Check which SYSCTL interrupts are enabled.

__STATIC_INLINE uint32_t

DL_SYSCTL_getEnabledInterruptStatus(uint32_t interruptMask)
Check interrupt flag of enabled SYSCTL interrupts.

__STATIC_INLINE uint32_t

DL_SYSCTL_getRawInterruptStatus(uint32_t interruptMask)
Check interrupt flag of any SYSCTL interrupt.

__STATIC_INLINE DL_SYSCTL_IIDX

DL_SYSCTL_getPendingInterrupt(void )
Get highest priority pending SYSCTL interrupt.

__STATIC_INLINE void

DL_SYSCTL_clearInterruptStatus(uint32_t interruptMask)
Clear pending SYSCTL interrupts.

__STATIC_INLINE void

DL_SYSCTL_forceInterrupt(uint32_t interruptMask)
Force SYSCTL interrupts.

__STATIC_INLINE uint32_t

DL_SYSCTL_getRawNonMaskableInterruptStatus(uint32_t interruptMask)
Check interrupt flag of any SYSCTL non-maskable interrupt.

__STATIC_INLINE DL_SYSCTL_NMI_IIDX

DL_SYSCTL_getPendingNonMaskableInterrupt(void )
Get highest priority pending SYSCTL non-maskable interrupt.

__STATIC_INLINE void

DL_SYSCTL_clearNonMaskableInterruptStatus(uint32_t interruptMask)
Clear pending SYSCTL non-maskable interrupts.

__STATIC_INLINE void

DL_SYSCTL_forceNonMaskableInterrupt(uint32_t interruptMask)
Force SYSCTL non-maskable interrupts.

__STATIC_INLINE void

DL_SYSCTL_setFlashDEDErrorBehavior(DL_SYSCTL_ERROR_BEHAVIOR behavior)
Set the behavior when a Flash ECC double error detect (DED) occurs.

__STATIC_INLINE DL_SYSCTL_ERROR_BEHAVIOR

DL_SYSCTL_getFlashDEDErrorBehavior(void )
Get the behavior when a Flash ECC double error detect (DED) occurs.

__STATIC_INLINE void

DL_SYSCTL_setWWDT0ErrorBehavior(DL_SYSCTL_ERROR_BEHAVIOR behavior)
Set the behavior when a WWDT0 error occurs.

__STATIC_INLINE DL_SYSCTL_ERROR_BEHAVIOR

DL_SYSCTL_getWWDT0ErrorBehavior(void )
Get the behavior when a WWDT0 error occurs.

__STATIC_INLINE DL_SYSCTL_MCLK_SOURCE

DL_SYSCTL_getMCLKSource(void )
Get the source for the Main Clock (MCLK)

__STATIC_INLINE uint32_t

DL_SYSCTL_getClockStatus(void )
Returns status of the different clocks in CKM.

__STATIC_INLINE uint32_t

DL_SYSCTL_getStatus(void )
Returns general status of SYSCTL.

__STATIC_INLINE void

DL_SYSCTL_clearECCErrorStatus(void )
Clear the ECC error bits in SYSSTATUS.

void

DL_SYSCTL_configSYSPLL(DL_SYSCTL_SYSPLLConfig * config)
Configure SYSPLL output frequencies.

__STATIC_INLINE void

DL_SYSCTL_setMCLKDivider(DL_SYSCTL_MCLK_DIV divider)
Set the dividers for Semi (MCLK/2) and Quarter (MCLK/4) clock domains.

void

DL_SYSCTL_setHFCLKSourceXTAL(uint32_t startupTime, bool monitorEnable)
Change HFCLK source to external crystal XTAL.

__STATIC_INLINE void

DL_SYSCTL_disableSYSPLL(void )
Disable the SYSPLL.

__STATIC_INLINE void

DL_SYSCTL_disableXTAL(void )
Disable the XTAL.

__STATIC_INLINE void

DL_SYSCTL_enableXTALSingleEndedMode(void )
Enable single-ended mode for the XTAL.

__STATIC_INLINE void

DL_SYSCTL_setHFCLKSourceHFCLKIN(void )
Change HFCLK source to external digital HFCLK_IN.

__STATIC_INLINE DL_SYSCTL_HSCLK_SOURCE

DL_SYSCTL_getHSCLKSource(void )
Get the source of High Speed Clock (HSCLK)

__STATIC_INLINE void

DL_SYSCTL_setHSCLKSource(DL_SYSCTL_HSCLK_SOURCE source)
Set the source of High Speed Clock (HSCLK)

__STATIC_INLINE void

DL_SYSCTL_setCANCLKSource(DL_SYSCTL_CANCLK_SOURCE source)
Set the source of CAN Clock (CANCLK)

__STATIC_INLINE void

DL_SYSCTL_enableExternalClock(DL_SYSCTL_CLK_OUT_SOURCE source, DL_SYSCTL_CLK_OUT_DIVIDE divider)
Enable the External Clock (CLK_OUT)

__STATIC_INLINE void

DL_SYSCTL_disableExternalClock(void )
Disable the External Clock (CLK_OUT)

__STATIC_INLINE void

DL_SYSCTL_disableExternalClockDivider(void )
Disable the External Clock (CLK_OUT) Divider.

__STATIC_INLINE void

DL_SYSCTL_enablePLLDivider(DL_SYSCTL_PLL_DIVIDER divider)
Set PLL divider.

__STATIC_INLINE void

DL_SYSCTL_disablePLLDivider(void )
Disable PLL divider.

__STATIC_INLINE void

DL_SYSCTL_blockAllAsyncFastClockRequests(void )
Blocks all asynchronous fast clock requests.

__STATIC_INLINE void

DL_SYSCTL_allowAllAsyncFastClockRequests(void )
Allows all asynchronous fast clock requests.

__STATIC_INLINE void

DL_SYSCTL_enableFastCPUEventHandling(void )
Generates an asynchronous fast clock request upon any IRQ request to CPU.

__STATIC_INLINE void

DL_SYSCTL_disableFastCPUEventHandling(void )
Maintains current system clock speed for IRQ request to CPU.

__STATIC_INLINE uint32_t

DL_SYSCTL_readFCC(void )
Read Frequency Clock Counter (FCC)

__STATIC_INLINE void

DL_SYSCTL_startFCC(void )
Start Frequency Clock Counter (FCC)

__STATIC_INLINE bool

DL_SYSCTL_isFCCDone(void )
Returns whether FCC is done capturing.

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)

__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)

__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)

__STATIC_INLINE void

DL_SYSCTL_enableSYSOSCFCL(void )
Enable Frequency Correction Loop (FCL) in Internal Resistor Mode.

__STATIC_INLINE void

DL_SYSCTL_enableWriteLock(void )
Enable write protection of selected SYSCTL registers.

__STATIC_INLINE void

DL_SYSCTL_disableWriteLock(void )
Disable write protection of selected SYSCTL registers.

__STATIC_INLINE uint8_t

DL_SYSCTL_getShutdownStorageByte(DL_SYSCTL_SHUTDOWN_STORAGE_BYTE index)
Return byte that was saved through SHUTDOWN.

__STATIC_INLINE void

DL_SYSCTL_setShutdownStorageByte(DL_SYSCTL_SHUTDOWN_STORAGE_BYTE index, uint8_t data)
Save a byte to SHUTDOWN memory.

__STATIC_INLINE void

DL_SYSCTL_releaseShutdownIO(void )
Enable SHUTDOWN IO Release.

__STATIC_INLINE void

DL_SYSCTL_disableNRSTPin(void )
Disable the reset functionality of the NRST pin.

__STATIC_INLINE void

DL_SYSCTL_disableSWD(void )
Disable Serial Wire Debug (SWD) functionality.

__STATIC_INLINE void

DL_SYSCTL_setXTALStartupTime(uint32_t startupTime)
Set the XTAL startup time.

__STATIC_INLINE uint32_t

DL_SYSCTL_getXTALStartupTime(void )
Get the XTAL startup time.

__STATIC_INLINE void

DL_SYSCTL_enableHFCLKStartupMonitor(void )
Enable the HFCLK startup monitor.

__STATIC_INLINE void

DL_SYSCTL_disableHFCLKStartupMonitor(void )
Disable the HFCLK startup monitor.

__STATIC_INLINE void

DL_SYSCTL_setCompartorHPMux(DL_SYSCTL_CMPSS_MUX muxSel, DL_SYSCTL_CMP_HP value)
Configure the COMP-H Postive Input Mux.

__STATIC_INLINE void

DL_SYSCTL_setCompartorHNMux(DL_SYSCTL_CMPSS_MUX muxSel, DL_SYSCTL_CMP_HN value)
Configure the COMP-H Negative Input Mux.

__STATIC_INLINE void

DL_SYSCTL_setCompartorLPMux(DL_SYSCTL_CMPSS_MUX muxSel, DL_SYSCTL_CMP_LP value)
Configure the COMP-L Postive Input Mux.

__STATIC_INLINE void

DL_SYSCTL_setCompartorLNMux(DL_SYSCTL_CMPSS_MUX muxSel, DL_SYSCTL_CMP_LN value)
Configure the COMP-L Negative Input Mux.

__STATIC_INLINE void

DL_SYSCTL_enableDACOUT(uint32_t dacSel)
Enable general purpose DAC functionality for CMPSS DAC.

__STATIC_INLINE void

DL_SYSCTL_disableDACOUT(void )
Disable general purpose DAC functionality for CMPSS DAC.

__STATIC_INLINE void

DL_SYSCTL_setSRAMBusMux(DL_SYSCTL_BUSMUX_ENABLED_SRAM sram_num, DL_SYSCTL_SRAM_BUS bus)
Configure the SRAM Bus Mux.

__STATIC_INLINE void

DL_SYSCTL_setVREF(DL_SYSCTL_VREF_MODE mode)
Set the analog voltage reference selection to external / internal.

__STATIC_INLINE void

DL_SYSCTL_enableTempSensor()
Enable Temperator Sensor.

__STATIC_INLINE void

DL_SYSCTL_disableTempSensor()
Disable Temperator Sensor.

__STATIC_INLINE void

DL_SYSCTL_selectInternalTestNode(DL_SYSCTL_InternalTestNode select)
Selects the internal node, if any, to come out on the INTERNALTEST node connected to ADC.

__STATIC_INLINE void

DL_SYSCTL_enableEthercatPhyClk(void )
Enable Ethercat PHY clock.

__STATIC_INLINE void

DL_SYSCTL_disableEthercatPhyClk(void )
Disable Ethercat PHY clock.

__STATIC_INLINE void

DL_SYSCTL_enableEthercat100Clk(void )
Enable Ethercat 100 clock.

__STATIC_INLINE void

DL_SYSCTL_disableEthercat100Clk(void )
Disable Ethercat 100 clock.

__STATIC_INLINE void

DL_SYSCTL_setEthercatClkDivider(DL_SYSCTL_ETHERCAT_CLK_DIV divider)
Set Ethercat clock divider.

__STATIC_INLINE void

DL_SYSCTL_enableEthercatI2CLoopback(void )
Enable Ethercat I2C loopback.

__STATIC_INLINE void

DL_SYSCTL_disableEthercatI2CLoopback(void )
Disable Ethercat I2C loopback.

Defines

Name

DL_SYSCTL_INTERRUPT_LFOSCGOOD
Low Frequency Oscillator is stabilized and ready to use.

DL_SYSCTL_INTERRUPT_FLASHSEC
Flash Single Error Correct.

DL_SYSCTL_INTERRUPT_HFCLKGOOD
High Frequency Clock is stabilized and ready to use.

DL_SYSCTL_INTERRUPT_SYSPLLGOOD
System PLL is stabilized and ready to use.

DL_SYSCTL_INTERRUPT_HSCLKGOOD
High Speed Clock is stabilized and ready to use.

DL_SYSCTL_NMI_WWDT0
Watch Dog 0 Fault.

DL_SYSCTL_NMI_SECURITY
Security Fault.

DL_SYSCTL_NMI_FLASHDED
Flash Double Error Detect.

DL_SYSCTL_NMI_SRAMPAR
SRAM Parity Error Detect.

DL_SYSCTL_NMI_TMUROMPAR
TMU ROM Parity error.

DL_SYSCTL_NMI_SYSMEMACC
SYSMEM Access error.

DL_SYSCTL_NMI_ECATRESETOUT
ECATSS RESET out.

DL_SYSCTL_NMI_ECATRAMPAR
ECATSS RAM Parity error.

DL_SYSCTL_CLK_STATUS_ANALOG_CLOCK_ERROR
Analog clocking error.

DL_SYSCTL_CLK_STATUS_SYSPLL_CONFIG_BLOCKED
Writes to SYSPLLCFG0-1, SYSPLLPARAM0-1 are blocked.

DL_SYSCTL_CLK_STATUS_HFCLK_CONFIG_BLOCKED
Writes to HFCLKCLKCFG are blocked.

DL_SYSCTL_CLK_STATUS_FCC_DONE
Frequency Clock Counter (FCC) done.

DL_SYSCTL_CLK_STATUS_FCL_ON
SYSOSC Frequency Correcting Loop Mode ON.

DL_SYSCTL_CLK_STATUS_HSCLK_GOOD
High Speed Clock Good.

DL_SYSCTL_CLK_STATUS_HSCLK_FAULT
High Speed Clock Stuck Fault.

DL_SYSCTL_CLK_STATUS_HSCLK_SOURCE_HFCLK
= HSCLK current sourced from the HFCLK

DL_SYSCTL_CLK_STATUS_SYSPLL_OFF
SYSPLL is OFF or DEAD.

DL_SYSCTL_CLK_STATUS_HFCLK_OFF
HFCLKs is OFF or DEAD.

DL_SYSCTL_CLK_STATUS_HSCLK_OFF
All PLLs, HFCLKs are OFF or DEAD.

DL_SYSCTL_CLK_STATUS_LFOSC_GOOD
LFOSC is Valid.

DL_SYSCTL_CLK_STATUS_SYSPLL_GOOD
SYSTEM PLL ON.

DL_SYSCTL_CLK_STATUS_HFCLK_GOOD
High Frequency Clock ON.

DL_SYSCTL_CLK_STATUS_MCLK_SOURCE_HSCLK
MCLK now sourced from HSCLK, otherwise SYSOSC.

DL_SYSCTL_CLK_STATUS_SYSOSC_4MHZ
= SYSOSC is at low frequency (4MHz)

DL_SYSCTL_CLK_STATUS_SYSOSC_USERTRIM_FREQ
= SYSOSC is at the user-trimmed frequency (16 or 24MHz)

DL_SYSCTL_STATUS_FLASHDED
FLASHDED indicates if a flash ECC double bit error was detected (DED).

DL_SYSCTL_STATUS_FLASHSEC
FLASHSEC indicates if a flash ECC single bit error was detected and corrected (SEC).

DL_SYSCTL_STATUS_PMUIREFGOOD
PMUIREFGOOD is set by hardware when the PMU current reference is ready.

DL_SYSCTL_STATUS_MCAN0READY
MCAN0READY indicates when the MCAN0 peripheral is ready.

DL_SYSCTL_STATUS_MCAN1READY
MCAN1READY indicates when the MCAN1 peripheral is ready.

DL_SYSCTL_STATUS_EXTRSTPINDIS
EXTRSTPINDIS indicates when user has disabled the use of external reset pin.

DL_SYSCTL_STATUS_SWDJCFGDIS
SWDJCFGDIS indicates when user has disabled the use of SWD/JTAG Port.

DL_SYSCTL_STATUS_SHDNIOLOCK
SHDNIOLOCK indicates when IO is locked due to SHUTDOWN.

DL_SYSCTL_STATUS_SRAMBANK0READY
SRAM BANK0 READY STATE.

DL_SYSCTL_STATUS_SRAMBANK1READY
SRAM BANK1 READY STATE.

DL_SYSCTL_STATUS_SRAMBANK2READY
SRAM BANK2 READY STATE.

DL_SYSCTL_STATUS_SRAMBANK3READY
SRAM BANK3 READY STATE.

DL_SYSCTL_STATUS_SRAMBANK4READY
SRAM BANK4 READY STATE.

DL_SYSCTL_STATUS_SRAMBANK5READY
SRAM BANK5 READY STATE.

DL_SYSCTL_SYSPLL_CLK1_ENABLE
Enable CLK1 output.

DL_SYSCTL_SYSPLL_CLK1_DISABLE
Disable CLK1 output.

DL_SYSCTL_SYSPLL_CLK0_ENABLE
Enable CLK0 output.

DL_SYSCTL_SYSPLL_CLK0_DISABLE
Disable CLK0 output.

DL_SYSCTL_DACOUTEN_CMPSS2_DACL
Enable general purpose DAC functionality for CMPSS2 COMPDACL.

DL_SYSCTL_DACOUTEN_CMPSS3_DACL
Enable general purpose DAC functionality for CMPSS3 COMPDACL.

DL_SYSCTL_setMCLKSource(current, next, …)
Change MCLK source.

Detailed Description

The System Control (SysCtl) module enables control over system wide settings like clocks and power management.

Types Documentation

enum DL_SYSCTL_RESET

Enumerator

Value

Description

DL_SYSCTL_RESET_SYS

0x0U

Issue a SYSRST (CPU plus peripherals only)

DL_SYSCTL_RESET_BOOT

0x1U

Issue a BOOTRST (CPU, peripherals, and boot configuration routine)

DL_SYSCTL_RESET_BOOTLOADERENTRY

0x2U

Issue a SYSRST and enter the boot strap loader (BSL)

DL_SYSCTL_RESET_POR

0x3U

Issue a power-on reset (POR)

DL_SYSCTL_RESET_BOOTLOADEREXIT

0x4U

Issue a SYSRST and exit the boot strap loader (BSL)

DL_SYSCTL_RESET.

enum DL_SYSCTL_RESET_CAUSE

Enumerator

Value

Description

DL_SYSCTL_RESET_CAUSE_NORST

0x0U

No reset since last read.

DL_SYSCTL_RESET_CAUSE_PORHWFAIL

0x1U

POR- violation, SHUTDNSTOREx or PMU trim parity fault.

DL_SYSCTL_RESET_CAUSE_POREXNRST

0x2U

NRST triggered POR (>1s hold)

DL_SYSCTL_RESET_CAUSE_PORSW

0x3U

Software triggered POR.

DL_SYSCTL_RESET_CAUSE_BORSUPPLY

0x4U

BOR0- violation.

DL_SYSCTL_RESET_CAUSE_BORWAKESHUTDN

0x5U

SHUTDOWN mode exit.

DL_SYSCTL_RESET_CAUSE_BOOTNONPMUPARITY

0x8U

Non-PMU trim parity fault.

DL_SYSCTL_RESET_CAUSE_BOOTCLKFAIL

0x9U

Fatal clock failure.

DL_SYSCTL_RESET_CAUSE_BOOTEXNRST

0xCU

NRST triggered BOOTRST (<1s hold)

DL_SYSCTL_RESET_CAUSE_BOOTSW

0xDU

Software triggered BOOTRST.

DL_SYSCTL_RESET_CAUSE_BOOTWWDT0

0xEU

WWDT0 violation.

DL_SYSCTL_RESET_CAUSE_SYSBSLEXIT

0x10U

BSL exit.

DL_SYSCTL_RESET_CAUSE_SYSBSLENTRY

0x11U

BSL entry.

DL_SYSCTL_RESET_CAUSE_SYSFLASHECC

0x14U

Flash uncorrectable ECC error.

DL_SYSCTL_RESET_CAUSE_SYSCPULOCK

0x15U

CPULOCK violation.

DL_SYSCTL_RESET_CAUSE_SYSDBG

0x1AU

Debug triggered SYSRST.

DL_SYSCTL_RESET_CAUSE_SYSSW

0x1BU

Software triggered SYSRST.

DL_SYSCTL_RESET_CAUSE_CPUDBG

0x1CU

Debug triggered CPURST.

DL_SYSCTL_RESET_CAUSE_CPUSW

0x1DU

Software triggered CPURST.

DL_SYSCTL_RESET_CAUSE.

enum DL_SYSCTL_IIDX

Enumerator

Value

Description

DL_SYSCTL_IIDX_NO_INTR

0x0U

No interrupt pending.

DL_SYSCTL_IIDX_LFOSCGOOD

0x1U

LFOSCGOOD interrupt pending.

DL_SYSCTL_IIDX_ANACLKERR

0x2U

DL_SYSCTL_IIDX_FLASHSEC

0x3U

DL_SYSCTL_IIDX_SRAMSEC

0x4U

DL_SYSCTL_IIDX_HFCLKGOOD

0x5U

DL_SYSCTL_IIDX_SYSPLLGOOD

0x6U

DL_SYSCTL_IIDX_HSCLKGOOD

0x7U

DL_SYSCTL_IIDX.

enum DL_SYSCTL_NMI_IIDX

Enumerator

Value

Description

DL_SYSCTL_NMI_IIDX_NO_INTR

0x0U

No NMI pending.

DL_SYSCTL_NMI_IIDX_BORLVL

0x1U

Reserved.

DL_SYSCTL_NMI_IIDX_WWDT0

0x2U

DL_SYSCTL_NMI_IIDX_SECURITY

0x3U

DL_SYSCTL_NMI_IIDX_FLASHDED

0x4U

DL_SYSCTL_NMI_IIDX_SRAMPAR

0x5U

DL_SYSCTL_NMI_IIDX_TMUROMPAR

0x6U

DL_SYSCTL_NMI_IIDX_SYSMEMACC

0x7U

DL_SYSCTL_NMI_IIDX_ECATRESETOUT

0x8U

DL_SYSCTL_NMI_IIDX_ECATRAMPAR

0x9U

DL_SYSCTL_NMI_IIDX.

enum DL_SYSCTL_PERIPH_POWER

Enumerator

Value

Description

DL_SYSCTL_PWREN_EQEP0

0x14240000U

DL_SYSCTL_PWREN_EQEP1

0x14240001U

DL_SYSCTL_PWREN_ECAP0

0x14240002U

DL_SYSCTL_PWREN_ECAP1

0x14240003U

DL_SYSCTL_PWREN_ECAP2

0x14240004U

DL_SYSCTL_PWREN_MCPWM0

0x14240005U

DL_SYSCTL_PWREN_MCPWM1

0x14240006U

DL_SYSCTL_PWREN_MCPWM2

0x14240007U

DL_SYSCTL_PWREN_CMPSS0

0x14240008U

DL_SYSCTL_PWREN_CMPSS1

0x14240009U

DL_SYSCTL_PWREN_CMPSS2

0x1424000AU

DL_SYSCTL_PWREN_CMPSS3

0x1424000BU

DL_SYSCTL_PWREN_XBAR

0x1424000CU

DL_SYSCTL_PWREN_EPWM0

0x1424000DU

DL_SYSCTL_PWREN_EPWM1

0x1424000EU

DL_SYSCTL_PWREN_EPWM2

0x1424000FU

DL_SYSCTL_PWREN_EPWM3

0x14240010U

DL_SYSCTL_PWREN_EPWM4

0x14240011U

DL_SYSCTL_PWREN_EPWM5

0x14240012U

DL_SYSCTL_PWREN_ETHERCAT_CORE0

0x14240013U

DL_SYSCTL_PWREN_FSI_TX0

0x14240014U

DL_SYSCTL_PWREN_FSI_RX0

0x14240015U

DL_SYSCTL_PWREN_SDFM0

0x14240016U

DL_SYSCTL_PWREN_OTTO0

0x14240017U

DL_SYSCTL_PWREN_TINIE

0x14340000U

DL_SYSCTL_PWREN_PGA0

0x14340001U

DL_SYSCTL_PWREN_PGA1

0x14340002U

DL_SYSCTL_PWREN_PGA2

0x14340003U

DL_SYSCTL_PWREN_EPI

0x14340004U

DL_SYSCTL_PWREN_ETHERCAT_SS0

0x14340005U

DL_SYSCTL_PERIPH_POWER.

First 16 bits is the offset of the register and the last 4 bits is the bit position

enum DL_SYSCTL_PERIPH_RESET

Enumerator

Value

Description

DL_SYSCTL_RESET_EQEP0

0x14280000U

DL_SYSCTL_RESET_EQEP1

0x14280001U

DL_SYSCTL_RESET_ECAP0

0x14280002U

DL_SYSCTL_RESET_ECAP1

0x14280003U

DL_SYSCTL_RESET_ECAP2

0x14280004U

DL_SYSCTL_RESET_MCPWM0

0x14280005U

DL_SYSCTL_RESET_MCPWM1

0x14280006U

DL_SYSCTL_RESET_MCPWM2

0x14280007U

DL_SYSCTL_RESET_CMPSS0

0x14280008U

DL_SYSCTL_RESET_CMPSS1

0x14280009U

DL_SYSCTL_RESET_CMPSS2

0x1428000AU

DL_SYSCTL_RESET_CMPSS3

0x1428000BU

DL_SYSCTL_RESET_XBAR

0x1428000CU

DL_SYSCTL_RESET_EPWM0

0x1428000DU

DL_SYSCTL_RESET_EPWM1

0x1428000EU

DL_SYSCTL_RESET_EPWM2

0x1428000FU

DL_SYSCTL_RESET_EPWM3

0x14280010U

DL_SYSCTL_RESET_EPWM4

0x14280011U

DL_SYSCTL_RESET_EPWM5

0x14280012U

DL_SYSCTL_RESET_ETHERCAT_CORE0

0x14280013U

DL_SYSCTL_RESET_FSI_TX0

0x14280014U

DL_SYSCTL_RESET_FSI_RX0

0x14280015U

DL_SYSCTL_RESET_SDFM0

0x14280016U

DL_SYSCTL_RESET_OTTO0

0x14280017U

DL_SYSCTL_RESET_TINIE

0x14380000U

DL_SYSCTL_RESET_PGA0

0x14380001U

DL_SYSCTL_RESET_PGA1

0x14380002U

DL_SYSCTL_RESET_PGA2

0x14380003U

DL_SYSCTL_RESET_EPI

0x14380004U

DL_SYSCTL_PERIPH_RESET.

First 16 bits is the offset of the register and the last 4 bits is the bit position

enum DL_SYSCTL_SYSPLL_REF

Enumerator

Value

Description

DL_SYSCTL_SYSPLL_REF_SYSOSC

SYSCTL_SYSPLLCFG0_SYSPLLREF_SYSOSC

Use SYSOSC as input source for SYSPLL

DL_SYSCTL_SYSPLL_REF_HFCLK

SYSCTL_SYSPLLCFG0_SYSPLLREF_HFCLK

Use HFCLK as input source for SYSPLL

DL_SYSCTL_SYSPLL_REF.

enum DL_SYSCTL_SYSPLL_PDIV

Enumerator

Value

Description

DL_SYSCTL_SYSPLL_PDIV_1

0x0U

SYSPLLREF is not divided.

DL_SYSCTL_SYSPLL_PDIV_2

0x1U

SYSPLLREF is divided by 2.

DL_SYSCTL_SYSPLL_PDIV_4

0x2U

SYSPLLREF is divided by 4.

DL_SYSCTL_SYSPLL_PDIV_8

0x3U

SYSPLLREF is divided by 8.

DL_SYSCTL_SYSPLL_PDIV.

enum DL_SYSCTL_SYSPLL_RDIVCLK1

Enumerator

Value

Description

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV2

0x0U

SYSPLLCLK1 is divided by 2.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV4

0x1U

SYSPLLCLK1 is divided by 4.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV6

0x2U

SYSPLLCLK1 is divided by 6.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV8

0x3U

SYSPLLCLK1 is divided by 8.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV10

0x4U

SYSPLLCLK1 is divided by 10.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV12

0x5U

SYSPLLCLK1 is divided by 12.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV14

0x6U

SYSPLLCLK1 is divided by 14.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV16

0x7U

SYSPLLCLK1 is divided by 16.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV18

0x8U

SYSPLLCLK1 is divided by 18.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV20

0x9U

SYSPLLCLK1 is divided by 20.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV22

0xAU

SYSPLLCLK1 is divided by 22.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV24

0xBU

SYSPLLCLK1 is divided by 24.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV26

0xCU

SYSPLLCLK1 is divided by 26.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV28

0xDU

SYSPLLCLK1 is divided by 28.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV30

0xEU

SYSPLLCLK1 is divided by 30.

DL_SYSCTL_SYSPLL_RDIVCLK1_DIV32

0xFU

SYSPLLCLK1 is divided by 32.

DL_SYSCTL_SYSPLL_RDIVCLK1.

enum DL_SYSCTL_SYSPLL_RDIVCLK0

Enumerator

Value

Description

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV2

0x0U

SYSPLLCLK0 is divided by 2.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV4

0x1U

SYSPLLCLK0 is divided by 4.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV6

0x2U

SYSPLLCLK0 is divided by 6.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV8

0x3U

SYSPLLCLK0 is divided by 8.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV10

0x4U

SYSPLLCLK0 is divided by 10.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV12

0x5U

SYSPLLCLK0 is divided by 12.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV14

0x6U

SYSPLLCLK0 is divided by 14.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV16

0x7U

SYSPLLCLK0 is divided by 16.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV18

0x8U

SYSPLLCLK0 is divided by 18.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV20

0x9U

SYSPLLCLK0 is divided by 20.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV22

0xAU

SYSPLLCLK0 is divided by 22.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV24

0xBU

SYSPLLCLK0 is divided by 24.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV26

0xCU

SYSPLLCLK0 is divided by 26.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV28

0xDU

SYSPLLCLK0 is divided by 28.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV30

0xEU

SYSPLLCLK0 is divided by 30.

DL_SYSCTL_SYSPLL_RDIVCLK0_DIV32

0xFU

SYSPLLCLK0 is divided by 32.

DL_SYSCTL_SYSPLL_RDIVCLK0.

enum DL_SYSCTL_SYSPLL_INPUT_FREQ

Enumerator

Value

Description

DL_SYSCTL_SYSPLL_INPUT_FREQ_4_8_MHZ

0x60111020U

PLL feedback loop input clock frequency [4MHz, 8MHz)

DL_SYSCTL_SYSPLL_INPUT_FREQ_8_16_MHZ

0x60111028U

PLL feedback loop input clock frequency [8MHz, 16MHz)

DL_SYSCTL_SYSPLL_INPUT_FREQ_16_32_MHZ

0x60111030U

PLL feedback loop input clock frequency [16MHz, 32MHz)

DL_SYSCTL_SYSPLL_INPUT_FREQ_32_48_MHZ

0x60111038U

PLL feedback loop input clock frequency [32MHz, 48MHz]

DL_SYSCTL_SYSPLL_INPUT_FREQ.

enum DL_SYSCTL_ERROR_BEHAVIOR

Enumerator

Value

Description

DL_SYSCTL_ERROR_BEHAVIOR_RESET

0x0

The error event will trigger a SYSRST.

DL_SYSCTL_ERROR_BEHAVIOR_NMI

0x1

The error event will trigger an NMI.

DL_SYSCTL_ERROR_BEHAVIOR.

enum DL_SYSCTL_MCLK_DIV

Enumerator

Value

Description

DL_SYSCTL_MCLK_DIV_1_DIV_1

0x00000000

DL_SYSCTL_MCLK_DIV_1_DIV_2

0x01000000

DL_SYSCTL_MCLK_DIV_1_DIV_4

0x03000000

DL_SYSCTL_MCLK_DIV_2_DIV_2

0x05000000

DL_SYSCTL_MCLK_DIV_2_DIV_4

0x07000000

DL_SYSCTL_MCLK_DIV.

enum DL_SYSCTL_HSCLK_SOURCE

Enumerator

Value

Description

DL_SYSCTL_HSCLK_SOURCE_SYSPLL

SYSCTL_HSCLKCFG_HSCLKSEL_SYSPLL

Use SYSPLL as input source for HSCLK

DL_SYSCTL_HSCLK_SOURCE_HFCLK

SYSCTL_HSCLKCFG_HSCLKSEL_HFCLKCLK

Use HFCLK as input source for HSCLK

DL_SYSCTL_HSCLK_SOURCE.

enum DL_SYSCTL_MCLK_SOURCE

Enumerator

Value

Description

DL_SYSCTL_MCLK_SOURCE_SYSOSC

SYSCTL_MCLKCFG_USEHSCLK_DISABLE

Use System Oscillator (SYSOSC) as MCLK source (default after reset)

DL_SYSCTL_MCLK_SOURCE_HSCLK

SYSCTL_MCLKCFG_USEHSCLK_ENABLE

Use High Speed Clock (HSCLK) as MCLK source (HFCLK, PLL,…)

DL_SYSCTL_MCLK_SOURCE.

enum DL_SYSCTL_CANCLK_SOURCE

Enumerator

Value

Description

DL_SYSCTL_CANCLK_SOURCE_HFCLK

0xFFFFFFFFU

DL_SYSCTL_CANCLK_SOURCE_SYSPLL

SYSCTL_GENCLKEN_CANEXTDIVEN_PASSTHRU

DL_SYSCTL_CANCLK_SOURCE_SYSPLL_DIV2

SYSCTL_GENCLKEN_CANEXTDIVEN_ENABLE | SYSCTL_GENCLKEN_EXTDIVCAN_DIV2

DL_SYSCTL_CANCLK_SOURCE_SYSPLL_DIV4

SYSCTL_GENCLKEN_CANEXTDIVEN_ENABLE | SYSCTL_GENCLKEN_EXTDIVCAN_DIV4

DL_SYSCTL_CANCLK_SOURCE_SYSPLL_DIV6

SYSCTL_GENCLKEN_CANEXTDIVEN_ENABLE | SYSCTL_GENCLKEN_EXTDIVCAN_DIV6

DL_SYSCTL_CANCLK_SOURCE_SYSPLL_DIV8

SYSCTL_GENCLKEN_CANEXTDIVEN_ENABLE | SYSCTL_GENCLKEN_EXTDIVCAN_DIV8

DL_SYSCTL_CANCLK_SOURCE_SYSPLL_DIV10

SYSCTL_GENCLKEN_CANEXTDIVEN_ENABLE | SYSCTL_GENCLKEN_EXTDIVCAN_DIV10

DL_SYSCTL_CANCLK_SOURCE_SYSPLL_DIV12

SYSCTL_GENCLKEN_CANEXTDIVEN_ENABLE | SYSCTL_GENCLKEN_EXTDIVCAN_DIV12

DL_SYSCTL_CANCLK_SOURCE_SYSPLL_DIV14

SYSCTL_GENCLKEN_CANEXTDIVEN_ENABLE | SYSCTL_GENCLKEN_EXTDIVCAN_DIV14

DL_SYSCTL_CANCLK_SOURCE_SYSPLL_DIV16

SYSCTL_GENCLKEN_CANEXTDIVEN_ENABLE | SYSCTL_GENCLKEN_EXTDIVCAN_DIV16

DL_SYSCTL_CANCLK_SOURCE.

enum DL_SYSCTL_CLK_OUT_SOURCE

Enumerator

Value

Description

DL_SYSCTL_CLK_OUT_SOURCE_SYSOSC

0x0U

CLK_OUT is SYSOSC.

DL_SYSCTL_CLK_OUT_SOURCE_ULPCLK

0x1U

CLK_OUT is ULPCLK (EXCLKDIVEN must be enabled)

DL_SYSCTL_CLK_OUT_SOURCE_LFCLK

0x2U

CLK_OUT is LFCLK.

DL_SYSCTL_CLK_OUT_SOURCE_MFPCLK

0x3U

CLK_OUT is MFPCLK (EXCLKDIVEN must be enabled)

DL_SYSCTL_CLK_OUT_SOURCE_HFCLK

0x4U

CLK_OUT is HFCLK.

DL_SYSCTL_CLK_OUT_SOURCE_SYSPLLOUT1

0x5U

CLK_OUT is SYSPLLCLK1 (SYSPLLCLK1 must be <=48MHz)

DL_SYSCTL_CLK_OUT_SOURCE.

enum DL_SYSCTL_CLK_OUT_DIVIDE

Enumerator

Value

Description

DL_SYSCTL_CLK_OUT_DIVIDE_DISABLE

SYSCTL_GENCLKCFG_EXCLKDIVEN_PASSTHRU

Disable the External Clock (CLK_OUT) output divider

DL_SYSCTL_CLK_OUT_DIVIDE_2

SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV2

Divide External Clock (CLK_OUT) output by 2

DL_SYSCTL_CLK_OUT_DIVIDE_4

SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV4

Divide External Clock (CLK_OUT) output by 4

DL_SYSCTL_CLK_OUT_DIVIDE_6

SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV6

Divide External Clock (CLK_OUT) output by 6

DL_SYSCTL_CLK_OUT_DIVIDE_8

SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV8

Divide External Clock (CLK_OUT) output by 8

DL_SYSCTL_CLK_OUT_DIVIDE_10

SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV10

Divide External Clock (CLK_OUT) output by 10

DL_SYSCTL_CLK_OUT_DIVIDE_12

SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV12

Divide External Clock (CLK_OUT) output by 12

DL_SYSCTL_CLK_OUT_DIVIDE_14

SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV14

Divide External Clock (CLK_OUT) output by 14

DL_SYSCTL_CLK_OUT_DIVIDE_16

SYSCTL_GENCLKCFG_EXCLKDIVEN_ENABLE | SYSCTL_GENCLKCFG_EXCLKDIVVAL_DIV16

Divide External Clock (CLK_OUT) output by 16

DL_SYSCTL_CLK_OUT_DIVIDE.

enum DL_SYSCTL_FCC_TRIG_TYPE

Enumerator

Value

Description

DL_SYSCTL_FCC_TRIG_TYPE_RISE_RISE

SYSCTL_GENCLKCFG_FCCLVLTRIG_RISE2RISE

FCC trigger is rising-edge to rising-edge pulse

DL_SYSCTL_FCC_TRIG_TYPE_LEVEL

SYSCTL_GENCLKCFG_FCCLVLTRIG_LEVEL

FCC trigger is active-high pulse level

DL_SYSCTL_FCC_TRIG_TYPE.

enum DL_SYSCTL_FCC_TRIG_SOURCE

Enumerator

Value

Description

DL_SYSCTL_FCC_TRIG_SOURCE_EXTPIN

0x00000000U

FCC trigger is the external pin.

DL_SYSCTL_FCC_TRIG_SOURCE_LFCLK

0x00100000U

FCC trigger is the LFCLK.

DL_SYSCTL_FCC_TRIG_SOURCE.

enum DL_SYSCTL_FCC_CLOCK_SOURCE

Enumerator

Value

Description

DL_SYSCTL_FCC_CLOCK_SOURCE_MCLKBY4

0x00000000U

FCC clock is MCLK/4.

DL_SYSCTL_FCC_CLOCK_SOURCE_SYSOSC

0x00010000U

FCC clock is SYSOSC.

DL_SYSCTL_FCC_CLOCK_SOURCE_HFCLK

0x00020000U

FCC clock is HFCLK.

DL_SYSCTL_FCC_CLOCK_SOURCE_EXTCLK

0x00030000U

FCC clock is the CLK_OUT selection.

DL_SYSCTL_FCC_CLOCK_SOURCE_SYSPLLCLK0

0x00040000U

FCC clock is SYSPLLCLK0.

DL_SYSCTL_FCC_CLOCK_SOURCE_SYSPLLCLK1

0x00050000U

FCC clock is SYSPLLCLK1.

DL_SYSCTL_FCC_CLOCK_SOURCE_ECAT25CLK

0x00060000U

FCC clock is ECAT25CLK.

DL_SYSCTL_FCC_CLOCK_SOURCE_FCCIN

0x00070000U

FCC clock is the FCCIN external input.

DL_SYSCTL_FCC_CLOCK_SOURCE.

enum DL_SYSCTL_FCC_TRIG_CNT

Enumerator

Value

Description

DL_SYSCTL_FCC_TRIG_CNT_01

((uint32_t)0 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

1 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_02

((uint32_t)1 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

2 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_03

((uint32_t)2 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

3 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_04

((uint32_t)3 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

4 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_05

((uint32_t)4 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

5 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_06

((uint32_t)5 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

6 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_07

((uint32_t)6 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

7 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_08

((uint32_t)7 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

8 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_09

((uint32_t)8 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

9 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_10

((uint32_t)9 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

10 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_11

((uint32_t)10 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

11 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_12

((uint32_t)11 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

12 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_13

((uint32_t)12 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

13 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_14

((uint32_t)13 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

14 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_15

((uint32_t)14 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

15 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_16

((uint32_t)15 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

16 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_17

((uint32_t)16 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

17 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_18

((uint32_t)17 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

18 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_19

((uint32_t)18 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

19 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_20

((uint32_t)19 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

20 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_21

((uint32_t)20 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

21 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_22

((uint32_t)21 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

22 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_23

((uint32_t)22 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

23 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_24

((uint32_t)23 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

24 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_25

((uint32_t)24 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

25 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_26

((uint32_t)25 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

26 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_27

((uint32_t)26 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

27 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_28

((uint32_t)27 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

28 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_29

((uint32_t)28 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

29 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_30

((uint32_t)29 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

30 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_31

((uint32_t)30 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

31 monitoring period

DL_SYSCTL_FCC_TRIG_CNT_32

((uint32_t)31 << SYSCTL_GENCLKCFG_FCCTRIGCNT_OFS)

32 monitoring period

DL_SYSCTL_FCC_TRIG_CNT.

enum DL_SYSCTL_POWER_POLICY_STANDBY

Enumerator

Value

Description

DL_SYSCTL_POWER_POLICY_STANDBY_NOT_ENABLED

0x0

STANDBY power policy is not enabled

DL_SYSCTL_POWER_POLICY_STANDBY0

0x1

Enable the STANDBY0 power mode policy

DL_SYSCTL_POWER_POLICY_STANDBY1

0x2

Enable the STANDBY1 power mode policy

DL_SYSCTL_POWER_POLICY_STANDBY.

enum DL_SYSCTL_SHUTDOWN_STORAGE_BYTE

Enumerator

Value

Description

DL_SYSCTL_SHUTDOWN_STORAGE_BYTE_0

0x0

Shutdown Storage Byte 0

DL_SYSCTL_SHUTDOWN_STORAGE_BYTE_1

0x1

Shutdown Storage Byte 1

DL_SYSCTL_SHUTDOWN_STORAGE_BYTE_2

0x2

Shutdown Storage Byte 2

DL_SYSCTL_SHUTDOWN_STORAGE_BYTE_3

0x3

Shutdown Storage Byte 3

DL_SYSCTL_SHUTDOWN_STORAGE_BYTE.

enum DL_SYSCTL_PLL_DIVIDER

Enumerator

Value

Description

DL_SYSCTL_PLL_DIVIDER_DIV2

SYSCTL_GENCLKEN_EXTDIVMCLK_DIV2

DL_SYSCTL_PLL_DIVIDER_DIV4

SYSCTL_GENCLKEN_EXTDIVMCLK_DIV4

DL_SYSCTL_PLL_DIVIDER_DIV6

SYSCTL_GENCLKEN_EXTDIVMCLK_DIV6

DL_SYSCTL_PLL_DIVIDER_DIV8

SYSCTL_GENCLKEN_EXTDIVMCLK_DIV8

DL_SYSCTL_PLL_DIVIDER_DIV10

SYSCTL_GENCLKEN_EXTDIVMCLK_DIV10

DL_SYSCTL_PLL_DIVIDER_DIV12

SYSCTL_GENCLKEN_EXTDIVMCLK_DIV12

DL_SYSCTL_PLL_DIVIDER_DIV14

SYSCTL_GENCLKEN_EXTDIVMCLK_DIV14

DL_SYSCTL_PLL_DIVIDER_DIV16

SYSCTL_GENCLKEN_EXTDIVMCLK_DIV16

DL_SYSCTL_PLL_DIVIDER.

enum DL_SYSCTL_CMPSS_MUX

Enumerator

Value

Description

DL_SYSCTL_CMPSS0_MUX

0

Mux selection for CMPSS0.

DL_SYSCTL_CMPSS1_MUX

1

Mux selection for CMPSS1.

DL_SYSCTL_CMPSS2_MUX

2

Mux selection for CMPSS2.

DL_SYSCTL_CMPSS3_MUX

3

Mux selection for CMPSS3.

DL_SYSCTL_CMPSS_MUX.

enum DL_SYSCTL_CMP_HP

Enumerator

Value

Description

DL_SYSCTL_CMP_HP0

0

DL_SYSCTL_CMP_HP1

1

DL_SYSCTL_CMP_HP2

2

DL_SYSCTL_CMP_HP3

3

DL_SYSCTL_CMP_HP4

4

DL_SYSCTL_CMP_HP5

5

DL_SYSCTL_CMP_HP6

6

DL_SYSCTL_CMP_HP.

enum DL_SYSCTL_CMP_HN

Enumerator

Value

Description

DL_SYSCTL_CMP_HN0

0

DL_SYSCTL_CMP_HN1

1

DL_SYSCTL_CMP_HN.

enum DL_SYSCTL_CMP_LP

Enumerator

Value

Description

DL_SYSCTL_CMP_LP0

0

DL_SYSCTL_CMP_LP1

1

DL_SYSCTL_CMP_LP2

2

DL_SYSCTL_CMP_LP3

3

DL_SYSCTL_CMP_LP4

4

DL_SYSCTL_CMP_LP5

5

DL_SYSCTL_CMP_LP6

6

DL_SYSCTL_CMP_LP.

enum DL_SYSCTL_CMP_LN

Enumerator

Value

Description

DL_SYSCTL_CMP_LN0

0

DL_SYSCTL_CMP_LN1

1

DL_SYSCTL_CMP_LN.

enum DL_SYSCTL_ETHERCAT_CLK_DIV

Enumerator

Value

Description

DL_SYSCTL_ETHERCAT_CLK_DIV_1

0x0U

Divide by 1 (no division)

DL_SYSCTL_ETHERCAT_CLK_DIV_2

0x1U

Divide by 2.

DL_SYSCTL_ETHERCAT_CLK_DIV_3

0x2U

Divide by 3.

DL_SYSCTL_ETHERCAT_CLK_DIV_4

0x3U

Divide by 4.

DL_SYSCTL_ETHERCAT_CLK_DIV_5

0x4U

Divide by 5.

DL_SYSCTL_ETHERCAT_CLK_DIV_6

0x5U

Divide by 6.

DL_SYSCTL_ETHERCAT_CLK_DIV_7

0x6U

Divide by 7.

DL_SYSCTL_ETHERCAT_CLK_DIV_8

0x7U

Divide by 8.

DL_SYSCTL_ETHERCAT_CLK_DIV.

enum DL_SYSCTL_InternalTestNode

Enumerator

Value

Description

DL_SYSCTL_TEST_NODE_VDDCORE

1

DL_SYSCTL_TEST_NODE_VDDA

2

DL_SYSCTL_TEST_NODE_VSSA

3

DL_SYSCTL_TEST_NODE_VREFLO

4

DL_SYSCTL_TEST_NODE_CDAC0H

5

DL_SYSCTL_TEST_NODE_CDAC0L

6

DL_SYSCTL_TEST_NODE_CDAC1H

7

DL_SYSCTL_TEST_NODE_CDAC1L

8

DL_SYSCTL_TEST_NODE_CDAC2H

9

DL_SYSCTL_TEST_NODE_CDAC2L

10

DL_SYSCTL_TEST_NODE_CDAC3H

11

DL_SYSCTL_TEST_NODE_CDAC3L

12

DL_SYSCTL_InternalTestNode.

enum DL_SYSCTL_SRAM_BUS

Enumerator

Value

Description

DL_SYSCTL_SRAM_CBUS

0x1

SRAM is connected to CBUS (Optimized for code execution)

DL_SYSCTL_SRAM_SBUS

0x0

SRAM is connected to SBUS (Optimized for data access)

DL_SYSCTL_SRAM_BUS.

enum DL_SYSCTL_BUSMUX_ENABLED_SRAM

Enumerator

Value

Description

DL_SYSCTL_BUSMUX_ENABLED_SRAM4

0x4

SRAM4 has bus-muxing.

DL_SYSCTL_BUSMUX_ENABLED_SRAM5

0x5

SRAM5 has bus-muxing.

DL_SYSCTL_BUSMUX_ENABLED_SRAM.

enum DL_SYSCTL_VREF_MODE

Enumerator

Value

Description

DL_SYSCTL_VREF_EXTERNAL_FULL_SCALE

0x101

External VREF, full-scale (2.5V/3.3V range, no ADC scaling). Apply 2.5V or 3.3V to VREFHI; whatever voltage applied will be used as reference.

DL_SYSCTL_VREF_EXTERNAL_HALF_SCALE

0x001

External VREF, half-scale (3.3V range, ADC scales 2x). Apply 1.65V to VREFHI.

DL_SYSCTL_VREF_INTERNAL_3_3_V

0x000

Internal VREF, 3.3V range (1.65V generated, ADC scales 2x). Internal reference voltage of 1.65V gets generated.

DL_SYSCTL_VREF_INTERNAL_2_5_V

0x100

Internal VREF, 2.5V range (2.5V generated, no ADC scaling). Internal reference voltage of 2.5V gets generated.

DL_SYSCTL_VREF_MODE.

Functions Documentation

function DL_SYSCTL_enableSleepOnExit

__STATIC_INLINE void DL_SYSCTL_enableSleepOnExit(
    void 
)

Enable sleep on exit.

Enables sleep on exit when the CPU moves from handler mode to thread mode. By enabling, allows an interrupt driven application to avoid returning to an empty main application.

function DL_SYSCTL_disableSleepOnExit

__STATIC_INLINE void DL_SYSCTL_disableSleepOnExit(
    void 
)

Disable sleep on exit.

Disables sleep on exit when the CPU moves from handler mode to thread mode.

function DL_SYSCTL_isSleepOnExitEnabled

__STATIC_INLINE bool DL_SYSCTL_isSleepOnExitEnabled(
    void 
)

Check if sleep on exit is enabled.

function DL_SYSCTL_enableEventOnPend

__STATIC_INLINE void DL_SYSCTL_enableEventOnPend(
    void 
)

Enable send event on pending bit.

When enabled, any enabled event and all interrupts (including disabled interrupts) can wakeup the processor.

function DL_SYSCTL_disableEventOnPend

__STATIC_INLINE void DL_SYSCTL_disableEventOnPend(
    void 
)

Disable send event on pending bit.

When disabled, only enabled interrupts or events can wake up the processor. Disabled interrupts are excluded.

function DL_SYSCTL_isEventOnPendEnabled

__STATIC_INLINE bool DL_SYSCTL_isEventOnPendEnabled(
    void 
)

Check if send event on pending bit is enabled.

Returns:

  • true Send event on pending bit is enabled

  • false Send event on pending bit is disabled

Return: Returns the enabled status of the send event on pending bit

function DL_SYSCTL_switchMCLKfromSYSOSCtoHSCLK

void DL_SYSCTL_switchMCLKfromSYSOSCtoHSCLK(
    DL_SYSCTL_HSCLK_SOURCE source
)

Change MCLK source from SYSOSC to HSCLK.

Parameters:

  • source Desired high-speed clock source

Precondition: The desired HSCLK source is enabled beforehand (SYSPLL, XTAL, HFCLK_IN).

Postcondition: MCLK source is switched to HSCLK, function will busy-wait until confirmed.

function DL_SYSCTL_switchMCLKfromHSCLKtoSYSOSC

void DL_SYSCTL_switchMCLKfromHSCLKtoSYSOSC(
    void 
)

Change MCLK source from HSCLK to SYSOSC.

Note: No HSCLK sources are disabled by this function

Precondition: MCLK is sourced from a valid, running HSCLK source (SYSPLL, XTAL, HFCLK_IN)

Postcondition: MCLK source is switched to SYSOSC, function will busy-wait until confirmed.

function DL_SYSCTL_setPowerPolicyRUNSLEEP

__STATIC_INLINE void DL_SYSCTL_setPowerPolicyRUNSLEEP(
    void 
)

Set the RUN/SLEEP mode power policy to RUN0/SLEEP0.

In RUN0, the MCLK and the CPUCLK run from a fast clock source (SYSOSC, HFCLK, or SYSPLL).

Setting the RUN power policy will also set the SLEEP power policy. The SLEEP mode behavior is always identical to RUN mode, just with the CPUCLK disabled. As such, the SLEEP behavior is determined by the configuration of the RUN mode. To actually enter SLEEP mode, you must call __WFI() to wait for interrupts or __WFE() to wait for ARM events. __WFI() is used in interrupt-driven applications, and __WFE() is used for interactions between the interrupt handler and main application.

function DL_SYSCTL_setPowerPolicySTOP

__STATIC_INLINE void DL_SYSCTL_setPowerPolicySTOP(
    void 
)

Set the STOP mode power policy to STOP0.

Postcondition: This API does not actually enter STOP mode. After using this API to set the power policy, to enter STOP mode you must call __WFI() to wait for interrupts or __WFE() to wait for ARM events. __WFI() is used in interrupt-driven applications, and __WFE() is used for interactions between the interrupt handler and main application.

In STOP0, the SYSOSC is left running at the current frequency when entering STOP mode (either 32MHz, or 4MHz). ULPCLK is always limited to 4MHz automatically by hardware, but SYSOSC is not disturbed to support consistent operation of analog peripherals such as the ADC, OPA, or COMP.

function DL_SYSCTL_setPowerPolicySTANDBY0

__STATIC_INLINE void DL_SYSCTL_setPowerPolicySTANDBY0(
    void 
)

Set the STANDBY mode power policy to STANDBY0.

Postcondition: This API does not actually enter STANDBY mode. After using this API to set the power policy, to enter STANDBY mode you must call __WFI() to wait for interrupts or __WFE() to wait for ARM events. __WFI() is used in interrupt-driven applications, and __WFE() is used for interactions between the interrupt handler and main application.

In STANDBY0, all PD0 peripherals receive the ULPCLK and LFOSCCLK/LFCLK

There are two STANDBY mode policy options: STANDBY0 and STANDBY1.

function DL_SYSCTL_isINITDONEIssued

__STATIC_INLINE bool DL_SYSCTL_isINITDONEIssued(
    void 
)

Checks if INITDONE has been issued by the CSC.

Returns:

  • true If INITDONE has been issued

  • false If INITDONE has not been issued

Return: Whether INITDONE has been issued or not

function DL_SYSCTL_issueINITDONE

__STATIC_INLINE void DL_SYSCTL_issueINITDONE(
    void 
)

Indicate that INIT is done.

After INITDONE is issued, the security configuration is locked and enforced. A SYSRST will occur, restarting startup code execution, and the main application is launched.

There is no hardware support to enforce a timeout if INITDONE is not issued in a reasonable period of time. It is recommended that the CSC use a watchdog to ensure that INITDONE is issued in a timely manner.

function DL_SYSCTL_swapFlashBank

__STATIC_INLINE void DL_SYSCTL_swapFlashBank(
    void 
)

Swap the primary and secondary flash banks.

Note: This operation requires the security unlock key.

Postcondition: Memory barriers (__DMB, __ISB) are issued to ensure the swap is complete before proceeding.

This function swaps the primary and secondary flash banks, allowing boot from the upper flash bank. This is commonly used for in-place firmware updates.

function DL_SYSCTL_setPowerPolicySTANDBY1

__STATIC_INLINE void DL_SYSCTL_setPowerPolicySTANDBY1(
    void 
)

Set the STANDBY mode power policy to STANDBY1.

Postcondition: This API does not actually enter STANDBY mode. After using this API to set the power policy, to enter STANDBY mode you must call __WFI() to wait for interrupts or __WFE() to wait for ARM events. __WFI() is used in interrupt-driven applications, and __WFE() is used for interactions between the interrupt handler and main application.

In STANDBY1, only GPIO peripheral receive ULPCLK/LFCLK. A GPIO Interrupt in STANDBY1 always triggers an asynchronous fast clock request to wake the system.

There are two STANDBY mode policy options: STANDBY0 and STANDBY1.

function DL_SYSCTL_getPowerPolicySTANDBY

DL_SYSCTL_POWER_POLICY_STANDBY DL_SYSCTL_getPowerPolicySTANDBY(
    void 
)

Get the STANDBY mode power policy.

Returns:

Return: Returns the current STANDBY mode power policy

Get which STANDBY power policy has been set.

function DL_SYSCTL_setPowerPolicySHUTDOWN

__STATIC_INLINE void DL_SYSCTL_setPowerPolicySHUTDOWN(
    void 
)

Set power policy to SHUTDOWN mode.

Postcondition: This API does not actually enter SHUTDOWN mode. After using this API to enable SHUTDOWN mode, to enter SHUTDOWN mode you must call __WFI() to wait for interrupts or __WFE() to wait for ARM events. __WFI() is used in interrupt-driven applications, and __WFE() is used for interactions between the interrupt handler and main application.

In SHUTDOWN mode, no clocks are available. The core regulator is completely disabled and all SRAM and register contents are lost, with the exception of the 4 bytes of general purpose memory in SYSCTL which may be used to store state information. The BOR and bandgap circuit are disabled. The device may wake up via a wake-up capable IO, a debug connection, or NRST. SHUTDOWN mode has the lowest current consumption of any operating mode. Exiting SHUTDOWN mode triggers a BOR.

There is only one SHUTDOWN mode policy option: SHUTDOWN.

function DL_SYSCTL_enablePower

__STATIC_INLINE void DL_SYSCTL_enablePower(
    DL_SYSCTL_PERIPH_POWER peripheral
)

Enables power for the peripheral.

Parameters:

function DL_SYSCTL_disablePower

__STATIC_INLINE void DL_SYSCTL_disablePower(
    DL_SYSCTL_PERIPH_POWER peripheral
)

Disables power for the peripheral.

Parameters:

function DL_SYSCTL_isPowerEnabled

__STATIC_INLINE bool DL_SYSCTL_isPowerEnabled(
    DL_SYSCTL_PERIPH_POWER peripheral
)

Returns if the selected peripheral is powered.

Parameters:

Return:

  • true if power is enabled

  • false if power is disabled

function DL_SYSCTL_resetPeripheral

__STATIC_INLINE void DL_SYSCTL_resetPeripheral(
    DL_SYSCTL_PERIPH_RESET peripheral
)

Resets the peripheral.

Parameters:

function DL_SYSCTL_clearPeripheralResetFlag

__STATIC_INLINE void DL_SYSCTL_clearPeripheralResetFlag(
    DL_SYSCTL_PERIPH_RESET peripheral
)

Resets the peripheral’s reset sticky flag.

Parameters:

function DL_SYSCTL_isPeripheralReset

__STATIC_INLINE bool DL_SYSCTL_isPeripheralReset(
    DL_SYSCTL_PERIPH_RESET peripheral
)

Check if a peripheral is reset.

function DL_SYSCTL_resetDevice

__STATIC_INLINE void DL_SYSCTL_resetDevice(
    DL_SYSCTL_RESET resetType
)

Resets the device.

Parameters:

Resets the device using the type of reset selected. This function does not return, the reset will happen immediately.

function DL_SYSCTL_getResetCause

__STATIC_INLINE DL_SYSCTL_RESET_CAUSE DL_SYSCTL_getResetCause(
    void 
)

Return byte that is stored in RSTCAUSE.

Return: The cause of reset. One of DL_SYSCTL_RESET_CAUSE

function DL_SYSCTL_enableInterrupt

__STATIC_INLINE void DL_SYSCTL_enableInterrupt(
    uint32_t interruptMask
)

Enable SYSCTL interrupts.

Parameters:

  • interruptMask Bit mask of interrupts to enable. Bitwise OR of [DL_SYSCTL_INTERRUPT].

function DL_SYSCTL_disableInterrupt

__STATIC_INLINE void DL_SYSCTL_disableInterrupt(
    uint32_t interruptMask
)

Disable SYSCTL interrupts.

Parameters:

  • interruptMask Bit mask of interrupts to enable. Bitwise OR of [DL_SYSCTL_INTERRUPT].

function DL_SYSCTL_getEnabledInterrupts

__STATIC_INLINE uint32_t DL_SYSCTL_getEnabledInterrupts(
    uint32_t interruptMask
)

Check which SYSCTL interrupts are enabled.

Parameters:

  • interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_SYSCTL_INTERRUPT].

Returns:

  • Bitwise OR of [DL_SYSCTL_INTERRUPT] values

Return: Which of the requested SYSCTL interrupts are enabled

function DL_SYSCTL_getEnabledInterruptStatus

__STATIC_INLINE uint32_t DL_SYSCTL_getEnabledInterruptStatus(
    uint32_t interruptMask
)

Check interrupt flag of enabled SYSCTL interrupts.

Parameters:

  • interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_SYSCTL_INTERRUPT].

Returns:

  • Bitwise OR of [DL_SYSCTL_INTERRUPT] values

See: DL_SYSCTL_enableInterrupt

Return: Which of the requested SYSCTL interrupts are pending

Checks if any of the SYSCTL interrupts that were previously enabled are pending.

function DL_SYSCTL_getRawInterruptStatus

__STATIC_INLINE uint32_t DL_SYSCTL_getRawInterruptStatus(
    uint32_t interruptMask
)

Check interrupt flag of any SYSCTL interrupt.

Parameters:

  • interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_SYSCTL_INTERRUPT].

Returns:

  • Bitwise OR of [DL_SYSCTL_INTERRUPT] values

Return: Which of the requested SYSCTL interrupts are pending

Checks if any of the SYSCTL interrupts are pending. Interrupts do not have to be previously enabled.

function DL_SYSCTL_getPendingInterrupt

__STATIC_INLINE DL_SYSCTL_IIDX DL_SYSCTL_getPendingInterrupt(
    void 
)

Get highest priority pending SYSCTL interrupt.

Returns:

Return: The highest priority pending SYSCTL interrupt

Checks if any of the SYSCTL interrupts are pending. Interrupts do not have to be previously enabled.

function DL_SYSCTL_clearInterruptStatus

__STATIC_INLINE void DL_SYSCTL_clearInterruptStatus(
    uint32_t interruptMask
)

Clear pending SYSCTL interrupts.

Parameters:

  • interruptMask Bit mask of interrupts to clear. Bitwise OR of [DL_SYSCTL_INTERRUPT].

function DL_SYSCTL_forceInterrupt

__STATIC_INLINE void DL_SYSCTL_forceInterrupt(
    uint32_t interruptMask
)

Force SYSCTL interrupts.

Parameters:

  • interruptMask Bit mask of interrupts to force. Bitwise OR of [DL_SYSCTL_INTERRUPT].

function DL_SYSCTL_getRawNonMaskableInterruptStatus

__STATIC_INLINE uint32_t DL_SYSCTL_getRawNonMaskableInterruptStatus(
    uint32_t interruptMask
)

Check interrupt flag of any SYSCTL non-maskable interrupt.

Parameters:

  • interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_SYSCTL_NMI].

Returns:

  • Bitwise OR of [DL_SYSCTL_NMI] values

Return: Which of the requested SYSCTL non-maskable interrupts are pending

Checks if any of the SYSCTL non-maskable interrupts are pending. Interrupts do not have to be previously enabled.

function DL_SYSCTL_getPendingNonMaskableInterrupt

__STATIC_INLINE DL_SYSCTL_NMI_IIDX DL_SYSCTL_getPendingNonMaskableInterrupt(
    void 
)

Get highest priority pending SYSCTL non-maskable interrupt.

Returns:

Return: The highest priority pending SYSCTL non-maskable interrupt

Checks if any of the SYSCTL non-maskable interrupts are pending. Interrupts do not have to be previously enabled.

function DL_SYSCTL_clearNonMaskableInterruptStatus

__STATIC_INLINE void DL_SYSCTL_clearNonMaskableInterruptStatus(
    uint32_t interruptMask
)

Clear pending SYSCTL non-maskable interrupts.

Parameters:

  • interruptMask Bit mask of interrupts to clear. Bitwise OR of [DL_SYSCTL_NMI].

function DL_SYSCTL_forceNonMaskableInterrupt

__STATIC_INLINE void DL_SYSCTL_forceNonMaskableInterrupt(
    uint32_t interruptMask
)

Force SYSCTL non-maskable interrupts.

Parameters:

  • interruptMask Bit mask of interrupts to force. Bitwise OR of [DL_SYSCTL_NMI].

function DL_SYSCTL_setFlashDEDErrorBehavior

__STATIC_INLINE void DL_SYSCTL_setFlashDEDErrorBehavior(
    DL_SYSCTL_ERROR_BEHAVIOR behavior
)

Set the behavior when a Flash ECC double error detect (DED) occurs.

Parameters:

  • behavior The behavior when a Flash ECC DED error occurrs

See: DL_SYSCTL_enableNonMaskableInterrupt

Configures whether a Flash ECC double error detect (DED) will trigger a SYSRST or an NMI (non-maskable interrupt). By default, this error will trigger a SYSRST.

function DL_SYSCTL_getFlashDEDErrorBehavior

__STATIC_INLINE DL_SYSCTL_ERROR_BEHAVIOR DL_SYSCTL_getFlashDEDErrorBehavior(
    void 
)

Get the behavior when a Flash ECC double error detect (DED) occurs.

Returns:

Return: The behavior when a Flash ECC DED error occurs

By default, this error will trigger a SYSRST.

3

function DL_SYSCTL_setWWDT0ErrorBehavior

__STATIC_INLINE void DL_SYSCTL_setWWDT0ErrorBehavior(
    DL_SYSCTL_ERROR_BEHAVIOR behavior
)

Set the behavior when a WWDT0 error occurs.

Parameters:

  • behavior The behavior when a Flash ECC DED occurrs

See: DL_SYSCTL_enableNonMaskableInterrupt

Configures whether a WWDT0 error will trigger a BOOTRST or an NMI (non-maskable interrupt). By default, this error will trigger a BOOTRST.

function DL_SYSCTL_getWWDT0ErrorBehavior

__STATIC_INLINE DL_SYSCTL_ERROR_BEHAVIOR DL_SYSCTL_getWWDT0ErrorBehavior(
    void 
)

Get the behavior when a WWDT0 error occurs.

Returns:

Return: The behavior when a WWDT0 error occurs

By default, this error will trigger a BOOTRST.

function DL_SYSCTL_getMCLKSource

__STATIC_INLINE DL_SYSCTL_MCLK_SOURCE DL_SYSCTL_getMCLKSource(
    void 
)

Get the source for the Main Clock (MCLK)

Returns:

Return: The source for the Main Clock (MCLK)

function DL_SYSCTL_getClockStatus

__STATIC_INLINE uint32_t DL_SYSCTL_getClockStatus(
    void 
)

Returns status of the different clocks in CKM.

Returns:

  • Bitwise OR of [DL_SYSCTL_CLK_STATUS].

Return: Full status of all clock selections

function DL_SYSCTL_getStatus

__STATIC_INLINE uint32_t DL_SYSCTL_getStatus(
    void 
)

Returns general status of SYSCTL.

Returns:

  • Bitwise OR of [DL_SYSCTL_STATUS].

Return: Full status of all general conditions in SYSCTL

function DL_SYSCTL_clearECCErrorStatus

__STATIC_INLINE void DL_SYSCTL_clearECCErrorStatus(
    void 
)

Clear the ECC error bits in SYSSTATUS.

The ECC error bits in SYSSTATUS are sticky (they remain set when an ECC error occurs even if future reads do not have errors), and can be cleared through this API.

function DL_SYSCTL_configSYSPLL

void DL_SYSCTL_configSYSPLL(
    DL_SYSCTL_SYSPLLConfig * config
)

Configure SYSPLL output frequencies.

Parameters:

  • config Pointer to the SYSPLL configuration struct DL_SYSCTL_SYSPLLConfig. Elements sysPLLRef, pDiv, and inputFreq control desired startup time versus power consumption.

Note: For practical purposes, it is not required to wait until SYSPLL completes startup, but do not go into STOP/STANDBY or use SYSPLL until completed.

Precondition:

  • SYSPLL is disabled (SYSPLLOFF in CLKSTATUS)

  • SYSOSC is running at base frequency (32MHz) even if HFCLK is the SYSPLL reference

Postcondition: SYSPLL has completed startup and outputs chosen frequencies

function DL_SYSCTL_setMCLKDivider

__STATIC_INLINE void DL_SYSCTL_setMCLKDivider(
    DL_SYSCTL_MCLK_DIV divider
)

Set the dividers for Semi (MCLK/2) and Quarter (MCLK/4) clock domains.

Parameters:

Semi clock domain IPs are connected on Peripheral interconnect (PI) that operates on MCLK divide by two clock ( i.e. maximum frequency/2). Divider allows option of /2 or bypass.

Quarter clock domain IPs are connected on CPU interconnect (CI) that operates on MCLK divide by four clock ( i.e. maximum frequency/4). Quarter divider allows /2, /4 divider option besides bypass.

The ULPCLK is the bus clock for peripherals in the PD0 power domain. This is derived from quarter domain i.e. MCLK/4 clock tree. ULPCLK must be maintained to be ≤50MHz at all times.

Valid****options :

Freq Range (MHz)

MCLK2

MCLK4

200-100

/2

/4

100-50

/1

/2

/1

/4

/2

/2

/2

/4

<50

/1

/1

/1

/2

/1

/4

/2

/2

/2

/4

function DL_SYSCTL_setHFCLKSourceXTAL

void DL_SYSCTL_setHFCLKSourceXTAL(
    uint32_t startupTime,
    bool monitorEnable
)

Change HFCLK source to external crystal XTAL.

Parameters:

  • startupTime XTAL startup time

  • monitorEnable Whether to enable the HFCLK startup monitor

To use the XTAL, a crystal or resonator must be populated between X1 and X2 pins. Find more info in XTAL section in the device Technical Reference Manual.

The IOMUX must be configured to enable XTAL functionality on the X1 and X2 pins.

If the HFCLK startup monitor is enabled, then the XTAL will be checked after the amount of time specified by the startupTime parameter. This basic implementation will busy-wait until XTAL oscillator is stabilized. But a more advanced implementation can do other things while the XTAL is stabilizing. You can enable HFCLKGOOD interrupt, or check CLKSTATUS.HFCLKGOOD when convenient, as long as you do not switch the source before HFCLKGOOD is set.

If the HFCLK startup monitor is disabled, then this implementation will not check if the XTAL oscillator is stabilized.

function DL_SYSCTL_disableSYSPLL

__STATIC_INLINE void DL_SYSCTL_disableSYSPLL(
    void 
)

Disable the SYSPLL.

See: DL_SYSCTL_getClockStatus

If SYSPLL is already enabled, application software should not disable the SYSPLL until the SYSPLLGOOD or SYSPLOFF bit is set in the CLKSTATUS register, indicating that the SYSPLL transitioned to a stable active or a stable dead state.

function DL_SYSCTL_disableXTAL

__STATIC_INLINE void DL_SYSCTL_disableXTAL(
    void 
)

Disable the XTAL.

See: DL_SYSCTL_getClockStatus

If XTAL is already enabled, application software must verify that either an HFCLKGOOD indication or an HFCLKOFF (off/dead) indication in the CLKSTATUS register was asserted by hardware before attempting to disable the XTAL by setting OSCOFF. When disabling the XTAL by clearing OSCOFF, the XTAL must not be re-enabled again until the HFCLKOFF bit in the CLKSTATUS register is set by hardware.

function DL_SYSCTL_enableXTALSingleEndedMode

__STATIC_INLINE void DL_SYSCTL_enableXTALSingleEndedMode(
    void 
)

Enable single-ended mode for the XTAL.

function DL_SYSCTL_setHFCLKSourceHFCLKIN

__STATIC_INLINE void DL_SYSCTL_setHFCLKSourceHFCLKIN(
    void 
)

Change HFCLK source to external digital HFCLK_IN.

HFCLK_IN can be used to bypass the XTAL circuit and bring 4-48MHz typical frequency digital clock into the devce as HFCLK source instead of XTAL.

HFCLK_IN is a digital clock input compatible with digital square wave CMOS clock inputs and should have typical duty cycle of 50%.

Digital clock input must be valid and GPIO/IOMUX must be configured separately on the appropriate pin before calling this function to enable HFCLK_IN.

function DL_SYSCTL_getHSCLKSource

__STATIC_INLINE DL_SYSCTL_HSCLK_SOURCE DL_SYSCTL_getHSCLKSource(
    void 
)

Get the source of High Speed Clock (HSCLK)

Return: The source of HSCLK. One of DL_SYSCTL_HSCLK_SOURCE.

HSCLK can be sourced by SYSPLL or HFCLK. HSCLK is an optional source for MCLK alongside SYSOSC or LFCLK.

function DL_SYSCTL_setHSCLKSource

__STATIC_INLINE void DL_SYSCTL_setHSCLKSource(
    DL_SYSCTL_HSCLK_SOURCE source
)

Set the source of High Speed Clock (HSCLK)

Parameters:

HSCLK can be sourced by SYSPLL or HFCLK. HSCLK is an optional source for MCLK alongside SYSOSC or LFCLK.

function DL_SYSCTL_setCANCLKSource

__STATIC_INLINE void DL_SYSCTL_setCANCLKSource(
    DL_SYSCTL_CANCLK_SOURCE source
)

Set the source of CAN Clock (CANCLK)

Parameters:

function DL_SYSCTL_enableExternalClock

__STATIC_INLINE void DL_SYSCTL_enableExternalClock(
    DL_SYSCTL_CLK_OUT_SOURCE source,
    DL_SYSCTL_CLK_OUT_DIVIDE divider
)

Enable the External Clock (CLK_OUT)

Parameters:

See:

CLK_OUT is provided for pushing out digital clocks to external circuits, such as an external ADC which does not have its own clock source.

IOMUX setting for CLK_OUT must be configured before using this function.

CLK_OUT has a typical duty cycle of 50% if clock source is HFCLK, SYSPLLOUT1, SYSOSC, or LFCLK. If source is MCLK, ULPCLK, or MFCLK, duty cycle is not guaranteed to be 50%.

This function performs multiple operations: 1) Sets the CLK_OUT source 2) Sets the CLK_OUT divider value 3) Enables the CLK_OUT divider, which can be disabled by DL_SYSCTL_disableExternalClockDivider 4) Enables the CLK_OUT, which can be disabled by DL_SYSCTL_disableExternalClock

function DL_SYSCTL_disableExternalClock

__STATIC_INLINE void DL_SYSCTL_disableExternalClock(
    void 
)

Disable the External Clock (CLK_OUT)

See: DL_SYSCTL_enableExternalClock

function DL_SYSCTL_disableExternalClockDivider

__STATIC_INLINE void DL_SYSCTL_disableExternalClockDivider(
    void 
)

Disable the External Clock (CLK_OUT) Divider.

See: DL_SYSCTL_enableExternalClock

function DL_SYSCTL_enablePLLDivider

__STATIC_INLINE void DL_SYSCTL_enablePLLDivider(
    DL_SYSCTL_PLL_DIVIDER divider
)

Set PLL divider.

function DL_SYSCTL_disablePLLDivider

__STATIC_INLINE void DL_SYSCTL_disablePLLDivider(
    void 
)

Disable PLL divider.

See: DL_SYSCTL_enablePLLDivider

function DL_SYSCTL_blockAllAsyncFastClockRequests

__STATIC_INLINE void DL_SYSCTL_blockAllAsyncFastClockRequests(
    void 
)

Blocks all asynchronous fast clock requests.

To block specific async fast clock requests on certain IP, refer to their individual driverlib. Examples include: RTC, UART, SPI, I2C.

function DL_SYSCTL_allowAllAsyncFastClockRequests

__STATIC_INLINE void DL_SYSCTL_allowAllAsyncFastClockRequests(
    void 
)

Allows all asynchronous fast clock requests.

Although this allows all async fast clock requests, individual IPs may still be blocking theirs.

To allow specific async fast clock requests on certain IP, refer to their individual driverlib. Examples include: RTC, UART, SPI, I2C, GPIO.

function DL_SYSCTL_enableFastCPUEventHandling

__STATIC_INLINE void DL_SYSCTL_enableFastCPUEventHandling(
    void 
)

Generates an asynchronous fast clock request upon any IRQ request to CPU.

See: DL_SYSCTL_blockAllAsyncFastClockRequests

Provides lowest latency interrupt handling regardless of system clock speed. Blockable by DL_SYSCTL_blockAllAsyncFastClockRequests

function DL_SYSCTL_disableFastCPUEventHandling

__STATIC_INLINE void DL_SYSCTL_disableFastCPUEventHandling(
    void 
)

Maintains current system clock speed for IRQ request to CPU.

Latency for interrupt handling will be higher at lower system clock speeds.

function DL_SYSCTL_readFCC

__STATIC_INLINE uint32_t DL_SYSCTL_readFCC(
    void 
)

Read Frequency Clock Counter (FCC)

Return: 22-bit value of Frequency Clock Counter (FCC)

function DL_SYSCTL_startFCC

__STATIC_INLINE void DL_SYSCTL_startFCC(
    void 
)

Start Frequency Clock Counter (FCC)

If FCC_IN is already logic high, counting starts immediately. When using level trigger, FCC_IN should be low when GO is set, and trigger pulse should be sent to FCC_IN after starting FCC.

function DL_SYSCTL_isFCCDone

__STATIC_INLINE bool DL_SYSCTL_isFCCDone(
    void 
)

Returns whether FCC is done capturing.

Returns:

  • true or false (boolean)

Return: Whether FCC is done or not

When capture completes, FCCDONE is set by hardware. FCCDONE is read-only and is automatically cleared by hardware when a new capture is started.

function DL_SYSCTL_configFCC

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)

Parameters:

See: DL_SYSCTL_setFCCPeriods must be called to configure number of rising-edge to rising-edge periods when DL_SYSCTL_FCC_TRIG_TYPE_RISE_RISE is selected.

FCC enables flexible in-system testing and calibration of a variety of oscillators and clocks on the device. The FCC counts the number of clock periods seen on the selected clock source within a known fixed trigger period (derived from a secondary reference source) to provide an estimation of the frequency of the source clock.

function DL_SYSCTL_setFCCPeriods

__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)

Parameters:

Set the number of rising-edge to rising-edge period for Frequency Clock Counter (FCC)

function DL_SYSCTL_getFCCPeriods

__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)

Return: One of DL_SYSCTL_FCC_TRIG_CNT

function DL_SYSCTL_enableSYSOSCFCL

__STATIC_INLINE void DL_SYSCTL_enableSYSOSCFCL(
    void 
)

Enable Frequency Correction Loop (FCL) in Internal Resistor Mode.

Once FCL is enable, it cannot be disabled by software. A BOOTRST is required.

function DL_SYSCTL_enableWriteLock

__STATIC_INLINE void DL_SYSCTL_enableWriteLock(
    void 
)

Enable write protection of selected SYSCTL registers.

Note: Does not protect all SYSCTL registers, see TRM for more detail.

Protecting writes to configuration registers in SYSCTL can add a layer of robustness against unintended changes during runtime.

function DL_SYSCTL_disableWriteLock

__STATIC_INLINE void DL_SYSCTL_disableWriteLock(
    void 
)

Disable write protection of selected SYSCTL registers.

Note: Does not protect all SYSCTL registers, see TRM for more detail.

Protecting writes to configuration registers in SYSCTL can add a layer of robustness against unintended changes during runtime.

function DL_SYSCTL_getShutdownStorageByte

__STATIC_INLINE uint8_t DL_SYSCTL_getShutdownStorageByte(
    DL_SYSCTL_SHUTDOWN_STORAGE_BYTE index
)

Return byte that was saved through SHUTDOWN.

Parameters:

Return: 8-bit value of Shutdown Storage Byte.

Note: Parity bits and parity fault checking is done by hardware.

Shutdown memory persists beyond BOR, BOOTRST, and SYSRST.

function DL_SYSCTL_setShutdownStorageByte

__STATIC_INLINE void DL_SYSCTL_setShutdownStorageByte(
    DL_SYSCTL_SHUTDOWN_STORAGE_BYTE index,
    uint8_t data
)

Save a byte to SHUTDOWN memory.

Parameters:

Note: Parity bits and parity fault checking is done by hardware.

Shutdown memory persists beyond BOR, BOOTRST, and SYSRST.

function DL_SYSCTL_releaseShutdownIO

__STATIC_INLINE void DL_SYSCTL_releaseShutdownIO(
    void 
)

Enable SHUTDOWN IO Release.

Note: Release IO after re-configuring IO to their proper state.

After shutdown, IO is locked in previous state.

function DL_SYSCTL_disableNRSTPin

__STATIC_INLINE void DL_SYSCTL_disableNRSTPin(
    void 
)

Disable the reset functionality of the NRST pin.

Note: The register is write-only, so the EXRSTPIN register will always appear as “Disabled” in the debugger

Disabling the NRST pin allows the pin to be configured as a GPIO. Once disabled, the reset functionality can only be re-enabled by a POR.

function DL_SYSCTL_disableSWD

__STATIC_INLINE void DL_SYSCTL_disableSWD(
    void 
)

Disable Serial Wire Debug (SWD) functionality.

Note: Cannot debug the device after disabling SWD. Only re-enabled by POR.

Postcondition: SWD is disabled, but pins must be re-configured separately.

SWD pins are enabled by default after cold start to allow a debug connection. It is possible to disable SWD on these pins to use for other functionality.

function DL_SYSCTL_setXTALStartupTime

__STATIC_INLINE void DL_SYSCTL_setXTALStartupTime(
    uint32_t startupTime
)

Set the XTAL startup time.

Parameters:

  • startupTime The XTAL startup time to set in ~64us steps. Value between [0x0 (~0s), 0xFF (~16.32ms)].

Specify the XTAL startup time in 64us resolution. If the HFCLK startup monitor is enabled (HFCLKFLTCHK), XTAL will be checked after this time expires.

function DL_SYSCTL_getXTALStartupTime

__STATIC_INLINE uint32_t DL_SYSCTL_getXTALStartupTime(
    void 
)

Get the XTAL startup time.

Returns:

  • Value between [0x0 (~0s), 0xFF (~16.32ms)]

Return: Returns the XTAL startup time in ~64us steps

function DL_SYSCTL_enableHFCLKStartupMonitor

__STATIC_INLINE void DL_SYSCTL_enableHFCLKStartupMonitor(
    void 
)

Enable the HFCLK startup monitor.

The XTAL takes time to start after being enabled. A startup monitor is provided to indicate to the application software if the XTAL has successfully started, at which point the HFCLK can be selected to source a variety of system functions. The HFCLK startup monitor also supports checking the HFCLK_IN digital clock input for a clock stuck fault.

function DL_SYSCTL_disableHFCLKStartupMonitor

__STATIC_INLINE void DL_SYSCTL_disableHFCLKStartupMonitor(
    void 
)

Disable the HFCLK startup monitor.

function DL_SYSCTL_setCompartorHPMux

__STATIC_INLINE void DL_SYSCTL_setCompartorHPMux(
    DL_SYSCTL_CMPSS_MUX muxSel,
    DL_SYSCTL_CMP_HP value
)

Configure the COMP-H Postive Input Mux.

Parameters:

function DL_SYSCTL_setCompartorHNMux

__STATIC_INLINE void DL_SYSCTL_setCompartorHNMux(
    DL_SYSCTL_CMPSS_MUX muxSel,
    DL_SYSCTL_CMP_HN value
)

Configure the COMP-H Negative Input Mux.

Parameters:

function DL_SYSCTL_setCompartorLPMux

__STATIC_INLINE void DL_SYSCTL_setCompartorLPMux(
    DL_SYSCTL_CMPSS_MUX muxSel,
    DL_SYSCTL_CMP_LP value
)

Configure the COMP-L Postive Input Mux.

Parameters:

function DL_SYSCTL_setCompartorLNMux

__STATIC_INLINE void DL_SYSCTL_setCompartorLNMux(
    DL_SYSCTL_CMPSS_MUX muxSel,
    DL_SYSCTL_CMP_LN value
)

Configure the COMP-L Negative Input Mux.

Parameters:

function DL_SYSCTL_enableDACOUT

__STATIC_INLINE void DL_SYSCTL_enableDACOUT(
    uint32_t dacSel
)

Enable general purpose DAC functionality for CMPSS DAC.

Parameters:

  • dacSel Bitwise OR of [DL_SYSCTL_DACOUTEN]

function DL_SYSCTL_disableDACOUT

__STATIC_INLINE void DL_SYSCTL_disableDACOUT(
    void 
)

Disable general purpose DAC functionality for CMPSS DAC.

function DL_SYSCTL_setSRAMBusMux

__STATIC_INLINE void DL_SYSCTL_setSRAMBusMux(
    DL_SYSCTL_BUSMUX_ENABLED_SRAM sram_num,
    DL_SYSCTL_SRAM_BUS bus
)

Configure the SRAM Bus Mux.

Parameters:

function DL_SYSCTL_setVREF

__STATIC_INLINE void DL_SYSCTL_setVREF(
    DL_SYSCTL_VREF_MODE mode
)

Set the analog voltage reference selection to external / internal.

Parameters:

function DL_SYSCTL_enableTempSensor

__STATIC_INLINE void DL_SYSCTL_enableTempSensor()

Enable Temperator Sensor.

function DL_SYSCTL_disableTempSensor

__STATIC_INLINE void DL_SYSCTL_disableTempSensor()

Disable Temperator Sensor.

function DL_SYSCTL_selectInternalTestNode

__STATIC_INLINE void DL_SYSCTL_selectInternalTestNode(
    DL_SYSCTL_InternalTestNode select
)

Selects the internal node, if any, to come out on the INTERNALTEST node connected to ADC.

function DL_SYSCTL_enableEthercatPhyClk

__STATIC_INLINE void DL_SYSCTL_enableEthercatPhyClk(
    void 
)

Enable Ethercat PHY clock.

function DL_SYSCTL_disableEthercatPhyClk

__STATIC_INLINE void DL_SYSCTL_disableEthercatPhyClk(
    void 
)

Disable Ethercat PHY clock.

function DL_SYSCTL_enableEthercat100Clk

__STATIC_INLINE void DL_SYSCTL_enableEthercat100Clk(
    void 
)

Enable Ethercat 100 clock.

function DL_SYSCTL_disableEthercat100Clk

__STATIC_INLINE void DL_SYSCTL_disableEthercat100Clk(
    void 
)

Disable Ethercat 100 clock.

function DL_SYSCTL_setEthercatClkDivider

__STATIC_INLINE void DL_SYSCTL_setEthercatClkDivider(
    DL_SYSCTL_ETHERCAT_CLK_DIV divider
)

Set Ethercat clock divider.

Parameters:

function DL_SYSCTL_enableEthercatI2CLoopback

__STATIC_INLINE void DL_SYSCTL_enableEthercatI2CLoopback(
    void 
)

Enable Ethercat I2C loopback.

function DL_SYSCTL_disableEthercatI2CLoopback

__STATIC_INLINE void DL_SYSCTL_disableEthercatI2CLoopback(
    void 
)

Disable Ethercat I2C loopback.

Macros Documentation

define DL_SYSCTL_INTERRUPT_LFOSCGOOD

#define DL_SYSCTL_INTERRUPT_LFOSCGOOD 0x00000001U

Low Frequency Oscillator is stabilized and ready to use.

define DL_SYSCTL_INTERRUPT_FLASHSEC

#define DL_SYSCTL_INTERRUPT_FLASHSEC 0x00000004U

Flash Single Error Correct.

define DL_SYSCTL_INTERRUPT_HFCLKGOOD

#define DL_SYSCTL_INTERRUPT_HFCLKGOOD 0x00000010U

High Frequency Clock is stabilized and ready to use.

define DL_SYSCTL_INTERRUPT_SYSPLLGOOD

#define DL_SYSCTL_INTERRUPT_SYSPLLGOOD 0x00000020U

System PLL is stabilized and ready to use.

define DL_SYSCTL_INTERRUPT_HSCLKGOOD

#define DL_SYSCTL_INTERRUPT_HSCLKGOOD 0x00000040U

High Speed Clock is stabilized and ready to use.

define DL_SYSCTL_NMI_WWDT0

#define DL_SYSCTL_NMI_WWDT0 0x00000002U

Watch Dog 0 Fault.

define DL_SYSCTL_NMI_SECURITY

#define DL_SYSCTL_NMI_SECURITY 0x00000004U

Security Fault.

define DL_SYSCTL_NMI_FLASHDED

#define DL_SYSCTL_NMI_FLASHDED 0x00000008U

Flash Double Error Detect.

define DL_SYSCTL_NMI_SRAMPAR

#define DL_SYSCTL_NMI_SRAMPAR 0x00000010U

SRAM Parity Error Detect.

define DL_SYSCTL_NMI_TMUROMPAR

#define DL_SYSCTL_NMI_TMUROMPAR 0x00000020U

TMU ROM Parity error.

define DL_SYSCTL_NMI_SYSMEMACC

#define DL_SYSCTL_NMI_SYSMEMACC 0x00000040U

SYSMEM Access error.

define DL_SYSCTL_NMI_ECATRESETOUT

#define DL_SYSCTL_NMI_ECATRESETOUT 0x00000080U

ECATSS RESET out.

define DL_SYSCTL_NMI_ECATRAMPAR

#define DL_SYSCTL_NMI_ECATRAMPAR 0x00000100U

ECATSS RAM Parity error.

define DL_SYSCTL_CLK_STATUS_ANALOG_CLOCK_ERROR

#define DL_SYSCTL_CLK_STATUS_ANALOG_CLOCK_ERROR (SYSCTL_CLKSTATUS_ANACLKERR_TRUE)

Analog clocking error.

define DL_SYSCTL_CLK_STATUS_SYSPLL_CONFIG_BLOCKED

#define DL_SYSCTL_CLK_STATUS_SYSPLL_CONFIG_BLOCKED (SYSCTL_CLKSTATUS_SYSPLLBLKUPD_TRUE)

Writes to SYSPLLCFG0-1, SYSPLLPARAM0-1 are blocked.

define DL_SYSCTL_CLK_STATUS_HFCLK_CONFIG_BLOCKED

#define DL_SYSCTL_CLK_STATUS_HFCLK_CONFIG_BLOCKED (SYSCTL_CLKSTATUS_HFCLKBLKUPD_TRUE)

Writes to HFCLKCLKCFG are blocked.

define DL_SYSCTL_CLK_STATUS_FCC_DONE

#define DL_SYSCTL_CLK_STATUS_FCC_DONE (SYSCTL_CLKSTATUS_FCCDONE_DONE)

Frequency Clock Counter (FCC) done.

define DL_SYSCTL_CLK_STATUS_FCL_ON

#define DL_SYSCTL_CLK_STATUS_FCL_ON (SYSCTL_CLKSTATUS_FCLMODE_ENABLED)

SYSOSC Frequency Correcting Loop Mode ON.

define DL_SYSCTL_CLK_STATUS_HSCLK_GOOD

#define DL_SYSCTL_CLK_STATUS_HSCLK_GOOD (SYSCTL_CLKSTATUS_HSCLKGOOD_TRUE)

High Speed Clock Good.

define DL_SYSCTL_CLK_STATUS_HSCLK_FAULT

#define DL_SYSCTL_CLK_STATUS_HSCLK_FAULT (SYSCTL_CLKSTATUS_HSCLKDEAD_TRUE)

High Speed Clock Stuck Fault.

define DL_SYSCTL_CLK_STATUS_HSCLK_SOURCE_HFCLK

#define DL_SYSCTL_CLK_STATUS_HSCLK_SOURCE_HFCLK (SYSCTL_CLKSTATUS_CURHSCLKSEL_HFCLK)

= HSCLK current sourced from the HFCLK

define DL_SYSCTL_CLK_STATUS_SYSPLL_OFF

#define DL_SYSCTL_CLK_STATUS_SYSPLL_OFF (SYSCTL_CLKSTATUS_SYSPLLOFF_TRUE)

SYSPLL is OFF or DEAD.

define DL_SYSCTL_CLK_STATUS_HFCLK_OFF

#define DL_SYSCTL_CLK_STATUS_HFCLK_OFF (SYSCTL_CLKSTATUS_HFCLKOFF_TRUE)

HFCLKs is OFF or DEAD.

define DL_SYSCTL_CLK_STATUS_HSCLK_OFF

#define DL_SYSCTL_CLK_STATUS_HSCLK_OFF (SYSCTL_CLKSTATUS_HSCLKSOFF_TRUE)

All PLLs, HFCLKs are OFF or DEAD.

define DL_SYSCTL_CLK_STATUS_LFOSC_GOOD

#define DL_SYSCTL_CLK_STATUS_LFOSC_GOOD (SYSCTL_CLKSTATUS_LFOSCGOOD_TRUE)

LFOSC is Valid.

define DL_SYSCTL_CLK_STATUS_SYSPLL_GOOD

#define DL_SYSCTL_CLK_STATUS_SYSPLL_GOOD (SYSCTL_CLKSTATUS_SYSPLLGOOD_TRUE)

SYSTEM PLL ON.

define DL_SYSCTL_CLK_STATUS_HFCLK_GOOD

#define DL_SYSCTL_CLK_STATUS_HFCLK_GOOD (SYSCTL_CLKSTATUS_HFCLKGOOD_TRUE)

High Frequency Clock ON.

define DL_SYSCTL_CLK_STATUS_MCLK_SOURCE_HSCLK

#define DL_SYSCTL_CLK_STATUS_MCLK_SOURCE_HSCLK (SYSCTL_CLKSTATUS_HSCLKMUX_HSCLK)

MCLK now sourced from HSCLK, otherwise SYSOSC.

define DL_SYSCTL_CLK_STATUS_SYSOSC_4MHZ

#define DL_SYSCTL_CLK_STATUS_SYSOSC_4MHZ (SYSCTL_CLKSTATUS_SYSOSCFREQ_SYSOSC4M)

= SYSOSC is at low frequency (4MHz)

define DL_SYSCTL_CLK_STATUS_SYSOSC_USERTRIM_FREQ

#define DL_SYSCTL_CLK_STATUS_SYSOSC_USERTRIM_FREQ (SYSCTL_CLKSTATUS_SYSOSCFREQ_SYSOSCUSER)

= SYSOSC is at the user-trimmed frequency (16 or 24MHz)

define DL_SYSCTL_STATUS_FLASHDED

#define DL_SYSCTL_STATUS_FLASHDED 0x00000001U

FLASHDED indicates if a flash ECC double bit error was detected (DED).

define DL_SYSCTL_STATUS_FLASHSEC

#define DL_SYSCTL_STATUS_FLASHSEC 0x00000002U

FLASHSEC indicates if a flash ECC single bit error was detected and corrected (SEC).

define DL_SYSCTL_STATUS_PMUIREFGOOD

#define DL_SYSCTL_STATUS_PMUIREFGOOD 0x00000040U

PMUIREFGOOD is set by hardware when the PMU current reference is ready.

define DL_SYSCTL_STATUS_MCAN0READY

#define DL_SYSCTL_STATUS_MCAN0READY 0x00000100U

MCAN0READY indicates when the MCAN0 peripheral is ready.

define DL_SYSCTL_STATUS_MCAN1READY

#define DL_SYSCTL_STATUS_MCAN1READY 0x00000200U

MCAN1READY indicates when the MCAN1 peripheral is ready.

define DL_SYSCTL_STATUS_EXTRSTPINDIS

#define DL_SYSCTL_STATUS_EXTRSTPINDIS 0x00001000U

EXTRSTPINDIS indicates when user has disabled the use of external reset pin.

define DL_SYSCTL_STATUS_SWDJCFGDIS

#define DL_SYSCTL_STATUS_SWDJCFGDIS 0x00002000U

SWDJCFGDIS indicates when user has disabled the use of SWD/JTAG Port.

define DL_SYSCTL_STATUS_SHDNIOLOCK

#define DL_SYSCTL_STATUS_SHDNIOLOCK 0x00004000U

SHDNIOLOCK indicates when IO is locked due to SHUTDOWN.

define DL_SYSCTL_STATUS_SRAMBANK0READY

#define DL_SYSCTL_STATUS_SRAMBANK0READY 0x00010000U

SRAM BANK0 READY STATE.

define DL_SYSCTL_STATUS_SRAMBANK1READY

#define DL_SYSCTL_STATUS_SRAMBANK1READY 0x00020000U

SRAM BANK1 READY STATE.

define DL_SYSCTL_STATUS_SRAMBANK2READY

#define DL_SYSCTL_STATUS_SRAMBANK2READY 0x00040000U

SRAM BANK2 READY STATE.

define DL_SYSCTL_STATUS_SRAMBANK3READY

#define DL_SYSCTL_STATUS_SRAMBANK3READY 0x00080000U

SRAM BANK3 READY STATE.

define DL_SYSCTL_STATUS_SRAMBANK4READY

#define DL_SYSCTL_STATUS_SRAMBANK4READY 0x00100000U

SRAM BANK4 READY STATE.

define DL_SYSCTL_STATUS_SRAMBANK5READY

#define DL_SYSCTL_STATUS_SRAMBANK5READY 0x00200000U

SRAM BANK5 READY STATE.

define DL_SYSCTL_SYSPLL_CLK1_ENABLE

#define DL_SYSCTL_SYSPLL_CLK1_ENABLE (SYSCTL_SYSPLLCFG0_ENABLECLK1_ENABLE)

Enable CLK1 output.

define DL_SYSCTL_SYSPLL_CLK1_DISABLE

#define DL_SYSCTL_SYSPLL_CLK1_DISABLE (SYSCTL_SYSPLLCFG0_ENABLECLK1_DISABLE)

Disable CLK1 output.

define DL_SYSCTL_SYSPLL_CLK0_ENABLE

#define DL_SYSCTL_SYSPLL_CLK0_ENABLE (SYSCTL_SYSPLLCFG0_ENABLECLK0_ENABLE)

Enable CLK0 output.

define DL_SYSCTL_SYSPLL_CLK0_DISABLE

#define DL_SYSCTL_SYSPLL_CLK0_DISABLE (SYSCTL_SYSPLLCFG0_ENABLECLK0_DISABLE)

Disable CLK0 output.

define DL_SYSCTL_DACOUTEN_CMPSS2_DACL

#define DL_SYSCTL_DACOUTEN_CMPSS2_DACL SYSCTL_CMPSSCTL_CMP2LDACOUTEN_MASK

Enable general purpose DAC functionality for CMPSS2 COMPDACL.

define DL_SYSCTL_DACOUTEN_CMPSS3_DACL

#define DL_SYSCTL_DACOUTEN_CMPSS3_DACL SYSCTL_CMPSSCTL_CMP3LDACOUTEN_MASK

Enable general purpose DAC functionality for CMPSS3 COMPDACL.

define DL_SYSCTL_setMCLKSource

#define DL_SYSCTL_setMCLKSource(
    current,
    next,
    ...
)
DL_SYSCTL_switchMCLKfrom##current##to##next(__VA_ARGS__);

Change MCLK source.

See:

Note: Different transition APIs may require different input parameters Transitions between LFCLK and HSCLK requires going through SYSOSC.

To ensure good clocking behavior, these are the recommended steps for transition. Valid sources and destinations: LFCLK, SYSOSC, HSCLK

Depending on current MCLK source, steps to switch to next MCLK source can vary. This is a macro that redirects to the different possible transitions.

Only valid for RUN modes. In low power modes, MCLK transitions are handled by hardware.