/hal_nxp-3.5.0/mcux/mcux-sdk/devices/LPC845/drivers/ |
D | fsl_clock.c | 117 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/ |
D | fsl_clock.c | 117 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/ |
D | system_LPC5506CPXXXX.c | 61 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/ |
D | system_LPC5504CPXXXX.c | 61 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/ |
D | system_LPC5506.c | 62 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/ |
D | system_LPC55S04.c | 62 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/ |
D | system_LPC5502CPXXXX.c | 61 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/ |
D | system_LPC5504.c | 62 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/ |
D | system_LPC55S06.c | 62 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/ |
D | system_LPC5502.c | 62 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/ |
D | system_LPC5512.c | 64 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/ |
D | system_LPC55S16.c | 65 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/ |
D | system_LPC55S14.c | 64 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/ |
D | system_LPC5514.c | 64 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/ |
D | system_LPC5516.c | 65 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/ |
D | fsl_clock.c | 156 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() 289 …SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking() 294 …SYSCON->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/ |
D | fsl_clock.c | 156 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() 289 …SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking() 294 …SYSCON->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/ |
D | fsl_clock.c | 156 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() 289 …SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking() 294 …SYSCON->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/ |
D | fsl_clock.c | 156 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() 289 …SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking() 294 …SYSCON->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/ |
D | fsl_clock.c | 156 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() 289 …SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking() 294 …SYSCON->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/ |
D | fsl_clock.c | 156 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() 289 …SYSCON->FROCTRL |= (SYSCON_FROCTRL_SEL(1) | SYSCON_FROCTRL_WRTRIM(1) | SYSCON_FROCTRL_USBCLKADJ(us… in CLOCK_SetupFROClocking() 294 …SYSCON->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/ |
D | fsl_clock.c | 229 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/ |
D | fsl_clock.c | 229 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/ |
D | fsl_clock.c | 227 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/ |
D | fsl_clock.c | 229 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 …]
|