Home
last modified time | relevance | path

Searched refs:SYSCON (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC845/drivers/
Dfsl_clock.c117 return CLOCK_SetFRGClkFreq(((uint32_t *)(uint32_t)(&SYSCON->FRG[0U])), freq); in CLOCK_SetFRG0ClkFreq()
127 return CLOCK_SetFRGClkFreq(((uint32_t *)(uint32_t)(&SYSCON->FRG[1U])), freq); in CLOCK_SetFRG1ClkFreq()
137 temp = CLOCK_GetFRGInputClkFreq((uint32_t *)(uint32_t)(&SYSCON->FRG[0U])) << 8U; in CLOCK_GetFRG0ClkFreq()
138 …return (uint32_t)((uint64_t)(temp) / (((uint64_t)SYSCON->FRG[0U].FRGMULT & SYSCON_FRG_FRGMULT_MULT… in CLOCK_GetFRG0ClkFreq()
148 temp = (CLOCK_GetFRGInputClkFreq((uint32_t *)(uint32_t)(&SYSCON->FRG[1U])) << 8U); in CLOCK_GetFRG1ClkFreq()
149 …return (uint32_t)(((uint64_t)temp) / (((uint64_t)SYSCON->FRG[1U].FRGMULT & SYSCON_FRG_FRGMULT_MULT… in CLOCK_GetFRG1ClkFreq()
159 if ((SYSCON->MAINCLKPLLSEL & SYSCON_MAINCLKPLLSEL_SEL_MASK) == 1U) in CLOCK_GetMainClkFreq()
164 switch (SYSCON->MAINCLKSEL) in CLOCK_GetMainClkFreq()
194 uint32_t froOscSel = SYSCON->FROOSCCTRL & 3U; in CLOCK_GetFroFreq()
210 …if (((SYSCON->FROOSCCTRL & SYSCON_FROOSCCTRL_FRO_DIRECT_MASK) >> SYSCON_FROOSCCTRL_FRO_DIRECT_SHIF… in CLOCK_GetFroFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC844/drivers/
Dfsl_clock.c117 return CLOCK_SetFRGClkFreq(((uint32_t *)(uint32_t)(&SYSCON->FRG[0U])), freq); in CLOCK_SetFRG0ClkFreq()
127 return CLOCK_SetFRGClkFreq(((uint32_t *)(uint32_t)(&SYSCON->FRG[1U])), freq); in CLOCK_SetFRG1ClkFreq()
137 temp = CLOCK_GetFRGInputClkFreq((uint32_t *)(uint32_t)(&SYSCON->FRG[0U])) << 8U; in CLOCK_GetFRG0ClkFreq()
138 …return (uint32_t)((uint64_t)(temp) / (((uint64_t)SYSCON->FRG[0U].FRGMULT & SYSCON_FRG_FRGMULT_MULT… in CLOCK_GetFRG0ClkFreq()
148 temp = (CLOCK_GetFRGInputClkFreq((uint32_t *)(uint32_t)(&SYSCON->FRG[1U])) << 8U); in CLOCK_GetFRG1ClkFreq()
149 …return (uint32_t)(((uint64_t)temp) / (((uint64_t)SYSCON->FRG[1U].FRGMULT & SYSCON_FRG_FRGMULT_MULT… in CLOCK_GetFRG1ClkFreq()
159 if ((SYSCON->MAINCLKPLLSEL & SYSCON_MAINCLKPLLSEL_SEL_MASK) == 1U) in CLOCK_GetMainClkFreq()
164 switch (SYSCON->MAINCLKSEL) in CLOCK_GetMainClkFreq()
194 uint32_t froOscSel = SYSCON->FROOSCCTRL & 3U; in CLOCK_GetFroFreq()
210 …if (((SYSCON->FROOSCCTRL & SYSCON_FROOSCCTRL_FRO_DIRECT_MASK) >> SYSCON_FROOSCCTRL_FRO_DIRECT_SHIF… in CLOCK_GetFroFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC5506CPXXXX/
Dsystem_LPC5506CPXXXX.c61 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
63 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
77 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
79 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
81 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
85 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
102 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
104 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
108 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
109 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC5504CPXXXX/
Dsystem_LPC5504CPXXXX.c61 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
63 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
77 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
79 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
81 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
85 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
102 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
104 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
108 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
109 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC5506/
Dsystem_LPC5506.c62 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
64 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
78 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
80 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
82 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
86 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
103 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
105 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
109 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
110 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC55S04/
Dsystem_LPC55S04.c62 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
64 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
78 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
80 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
82 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
86 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
103 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
105 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
109 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
110 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC5502CPXXXX/
Dsystem_LPC5502CPXXXX.c61 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
63 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
77 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
79 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
81 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
85 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
102 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
104 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
108 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
109 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC5504/
Dsystem_LPC5504.c62 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
64 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
78 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
80 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
82 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
86 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
103 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
105 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
109 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
110 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC55S06/
Dsystem_LPC55S06.c62 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
64 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
78 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
80 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
82 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
86 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
103 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
105 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
109 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
110 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC5502/
Dsystem_LPC5502.c62 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
64 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
78 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
80 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
82 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
86 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
103 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
105 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
109 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
110 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC5512/
Dsystem_LPC5512.c64 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
66 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
80 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
82 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
84 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
88 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
105 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
107 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
111 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
112 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC55S16/
Dsystem_LPC55S16.c65 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
67 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
81 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
83 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
85 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
89 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
106 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
108 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
112 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
113 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC55S14/
Dsystem_LPC55S14.c64 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
66 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
80 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
82 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
84 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
88 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
105 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
107 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
111 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
112 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC5514/
Dsystem_LPC5514.c64 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
66 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
80 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
82 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
84 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
88 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
105 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
107 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
111 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
112 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC5516/
Dsystem_LPC5516.c65 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK) == 0UL) in findPll0PreDiv()
67 preDiv = SYSCON->PLL0NDEC & SYSCON_PLL0NDEC_NDIV_MASK; in findPll0PreDiv()
81 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK) == 0UL) in findPll0PostDiv()
83 if ((SYSCON->PLL0CTRL & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK) != 0UL) in findPll0PostDiv()
85 postDiv = SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK; in findPll0PostDiv()
89 postDiv = 2UL * (SYSCON->PLL0PDEC & SYSCON_PLL0PDEC_PDIV_MASK); in findPll0PostDiv()
106 if ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_SEL_EXT_MASK) != 0UL) in findPll0MMult()
108 …mMult = (float)(uint32_t)((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MDIV_EXT_MASK) >> SYSCON_PLL0SSCG1… in findPll0MMult()
112 mMult_int = ((SYSCON->PLL0SSCG1 & SYSCON_PLL0SSCG1_MD_MBS_MASK) << 7U); in findPll0MMult()
113 mMult_int = mMult_int | ((SYSCON->PLL0SSCG0) >> PLL_SSCG_MD_INT_P); in findPll0MMult()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54618/drivers/
Dfsl_clock.c156 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_AttachClk()
173 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
204 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_GetClockAttachId()
248 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
281 usb_adj = ((SYSCON->FROCTRL) & SYSCON_FROCTRL_USBCLKADJ_MASK) >> SYSCON_FROCTRL_USBCLKADJ_SHIFT; in CLOCK_SetupFROClocking()
289SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
294SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(0) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
300 SYSCON->FROCTRL &= ~SYSCON_FROCTRL_HSPDCLK(1); in CLOCK_SetupFROClocking()
314 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
352 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54606/drivers/
Dfsl_clock.c156 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_AttachClk()
173 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
204 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_GetClockAttachId()
248 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
281 usb_adj = ((SYSCON->FROCTRL) & SYSCON_FROCTRL_USBCLKADJ_MASK) >> SYSCON_FROCTRL_USBCLKADJ_SHIFT; in CLOCK_SetupFROClocking()
289SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
294SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(0) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
300 SYSCON->FROCTRL &= ~SYSCON_FROCTRL_HSPDCLK(1); in CLOCK_SetupFROClocking()
314 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
352 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54607/drivers/
Dfsl_clock.c156 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_AttachClk()
173 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
204 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_GetClockAttachId()
248 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
281 usb_adj = ((SYSCON->FROCTRL) & SYSCON_FROCTRL_USBCLKADJ_MASK) >> SYSCON_FROCTRL_USBCLKADJ_SHIFT; in CLOCK_SetupFROClocking()
289SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
294SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(0) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
300 SYSCON->FROCTRL &= ~SYSCON_FROCTRL_HSPDCLK(1); in CLOCK_SetupFROClocking()
314 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
352 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54605/drivers/
Dfsl_clock.c156 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_AttachClk()
173 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
204 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_GetClockAttachId()
248 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
281 usb_adj = ((SYSCON->FROCTRL) & SYSCON_FROCTRL_USBCLKADJ_MASK) >> SYSCON_FROCTRL_USBCLKADJ_SHIFT; in CLOCK_SetupFROClocking()
289SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
294SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(0) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
300 SYSCON->FROCTRL &= ~SYSCON_FROCTRL_HSPDCLK(1); in CLOCK_SetupFROClocking()
314 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
352 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54628/drivers/
Dfsl_clock.c156 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_AttachClk()
173 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
204 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_GetClockAttachId()
248 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
281 usb_adj = ((SYSCON->FROCTRL) & SYSCON_FROCTRL_USBCLKADJ_MASK) >> SYSCON_FROCTRL_USBCLKADJ_SHIFT; in CLOCK_SetupFROClocking()
289SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
294SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(0) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
300 SYSCON->FROCTRL &= ~SYSCON_FROCTRL_HSPDCLK(1); in CLOCK_SetupFROClocking()
314 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
352 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54616/drivers/
Dfsl_clock.c156 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_AttachClk()
173 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
204 pClkSel = &(SYSCON->MAINCLKSELA); in CLOCK_GetClockAttachId()
248 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
281 usb_adj = ((SYSCON->FROCTRL) & SYSCON_FROCTRL_USBCLKADJ_MASK) >> SYSCON_FROCTRL_USBCLKADJ_SHIFT; in CLOCK_SetupFROClocking()
289SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
294SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(0) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking()
300 SYSCON->FROCTRL &= ~SYSCON_FROCTRL_HSPDCLK(1); in CLOCK_SetupFROClocking()
314 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
352 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54016/drivers/
Dfsl_clock.c229 pClkSel = &(SYSCON->STICKCLKSEL); in CLOCK_AttachClk()
246 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
277 pClkSel = &(SYSCON->STICKCLKSEL); in CLOCK_GetClockAttachId()
321 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
344 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
382 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
393 switch (SYSCON->SPIFICLKSEL) in CLOCK_GetSpifiClkFreq()
418 return freq / ((SYSCON->SPIFICLKDIV & 0xffU) + 1U); in CLOCK_GetSpifiClkFreq()
429 switch (SYSCON->ADCCLKSEL) in CLOCK_GetAdcClkFreq()
451 return freq / ((SYSCON->ADCCLKDIV & 0xffU) + 1U); in CLOCK_GetAdcClkFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54018/drivers/
Dfsl_clock.c229 pClkSel = &(SYSCON->STICKCLKSEL); in CLOCK_AttachClk()
246 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
277 pClkSel = &(SYSCON->STICKCLKSEL); in CLOCK_GetClockAttachId()
321 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
344 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
382 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
393 switch (SYSCON->SPIFICLKSEL) in CLOCK_GetSpifiClkFreq()
418 return freq / ((SYSCON->SPIFICLKDIV & 0xffU) + 1U); in CLOCK_GetSpifiClkFreq()
429 switch (SYSCON->ADCCLKSEL) in CLOCK_GetAdcClkFreq()
451 return freq / ((SYSCON->ADCCLKDIV & 0xffU) + 1U); in CLOCK_GetAdcClkFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54005/drivers/
Dfsl_clock.c227 pClkSel = &(SYSCON->STICKCLKSEL); in CLOCK_AttachClk()
244 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
275 pClkSel = &(SYSCON->STICKCLKSEL); in CLOCK_GetClockAttachId()
319 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
342 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
380 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
391 switch (SYSCON->SPIFICLKSEL) in CLOCK_GetSpifiClkFreq()
416 return freq / ((SYSCON->SPIFICLKDIV & 0xffU) + 1U); in CLOCK_GetSpifiClkFreq()
427 switch (SYSCON->ADCCLKSEL) in CLOCK_GetAdcClkFreq()
449 return freq / ((SYSCON->ADCCLKDIV & 0xffU) + 1U); in CLOCK_GetAdcClkFreq()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC54S018M/drivers/
Dfsl_clock.c229 pClkSel = &(SYSCON->STICKCLKSEL); in CLOCK_AttachClk()
246 SYSCON->ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE(1); in CLOCK_AttachClk()
277 pClkSel = &(SYSCON->STICKCLKSEL); in CLOCK_GetClockAttachId()
321 pClkDiv = &(SYSCON->SYSTICKCLKDIV); in CLOCK_SetClkDiv()
344 switch (SYSCON->CLKOUTSELA) in CLOCK_GetClockOutClkFreq()
382 return freq / ((SYSCON->CLKOUTDIV & 0xffU) + 1U); in CLOCK_GetClockOutClkFreq()
393 switch (SYSCON->SPIFICLKSEL) in CLOCK_GetSpifiClkFreq()
418 return freq / ((SYSCON->SPIFICLKDIV & 0xffU) + 1U); in CLOCK_GetSpifiClkFreq()
429 switch (SYSCON->ADCCLKSEL) in CLOCK_GetAdcClkFreq()
451 return freq / ((SYSCON->ADCCLKDIV & 0xffU) + 1U); in CLOCK_GetAdcClkFreq()
[all …]

12345678910>>...17