/hal_nxp-latest/imx/devices/MCIMX6X/ |
D | clock_freq.c | 49 if(CCM_GetRootMux(CCM, ccmRootPerclkClkSel) == ccmRootmuxPerclkClkOsc24m) in get_epit_clock_freq() 53 divPerclkPodf = CCM_GetRootDivider(CCM, ccmRootPerclkPodf); in get_epit_clock_freq() 58 else if(CCM_GetRootMux(CCM, ccmRootPeriphClkSel) == ccmRootmuxPeriphClkPrePeriphClkSel) in get_epit_clock_freq() 60 root = CCM_GetRootMux(CCM, ccmRootPrePeriphClkSel); in get_epit_clock_freq() 68 divPerclkPodf = CCM_GetRootDivider(CCM, ccmRootPerclkPodf); in get_epit_clock_freq() 69 divIpgPodf = CCM_GetRootDivider(CCM, ccmRootIpgPodf); in get_epit_clock_freq() 70 divAhbPodf = CCM_GetRootDivider(CCM, ccmRootAhbPodf); in get_epit_clock_freq() 77 else if(CCM_GetRootMux(CCM, ccmRootPeriphClk2Sel) == ccmRootmuxPeriphClk2OSC24m) in get_epit_clock_freq() 81 divPerclkPodf = CCM_GetRootDivider(CCM, ccmRootPerclkPodf); in get_epit_clock_freq() 82 divIpgPodf = CCM_GetRootDivider(CCM, ccmRootIpgPodf); in get_epit_clock_freq() [all …]
|
/hal_nxp-latest/imx/devices/MCIMX7D/ |
D | clock_freq.c | 50 root = CCM_GetRootMux(CCM, ccmRootGpt3); in get_gpt_clock_freq() 51 CCM_GetRootDivider(CCM, ccmRootGpt3, &pre, &post); in get_gpt_clock_freq() 54 root = CCM_GetRootMux(CCM, ccmRootGpt4); in get_gpt_clock_freq() 55 CCM_GetRootDivider(CCM, ccmRootGpt4, &pre, &post); in get_gpt_clock_freq() 89 root = CCM_GetRootMux(CCM, ccmRootEcspi1); in get_ecspi_clock_freq() 90 CCM_GetRootDivider(CCM, ccmRootEcspi1, &pre, &post); in get_ecspi_clock_freq() 93 root = CCM_GetRootMux(CCM, ccmRootEcspi2); in get_ecspi_clock_freq() 94 CCM_GetRootDivider(CCM, ccmRootEcspi2, &pre, &post); in get_ecspi_clock_freq() 128 root = CCM_GetRootMux(CCM, ccmRootCan1); in get_flexcan_clock_freq() 129 CCM_GetRootDivider(CCM, ccmRootCan1, &pre, &post); in get_flexcan_clock_freq() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkmimxrt1010/ |
D | clock_config.c | 162 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 197 CCM->CSCMR2 &= ~CCM_CSCMR2_ADC_ACLK_EN_MASK; in BOARD_BootClockRUN() 317 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 319 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 321 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 323 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(18); in BOARD_BootClockRUN() 325 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 327 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 329 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 456 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_400M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkmimxrt1015/ |
D | clock_config.c | 167 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 332 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 334 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 336 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 338 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(6); in BOARD_BootClockRUN() 340 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 342 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 344 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 478 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_400M() 637 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN_400M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkmimxrt1020/ |
D | clock_config.c | 178 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 387 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 389 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 391 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 393 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(3); in BOARD_BootClockRUN() 395 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 397 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 399 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 553 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_400M() 756 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN_400M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkmimxrt1024/ |
D | clock_config.c | 178 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 387 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 389 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 391 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 393 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(3); in BOARD_BootClockRUN() 395 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 397 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 399 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 553 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_400M() 756 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN_400M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkbimxrt1050/ |
D | clock_config.c | 186 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 455 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 457 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 459 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 461 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(18); in BOARD_BootClockRUN() 463 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 465 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 467 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 631 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_528M() 894 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN_528M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkmimxrt1040/ |
D | clock_config.c | 189 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 445 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 447 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 449 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 451 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(18); in BOARD_BootClockRUN() 453 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 455 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 457 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 615 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_600M() 879 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN_600M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkmimxrt1060/ |
D | clock_config.c | 193 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 474 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 476 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 478 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 480 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(18); in BOARD_BootClockRUN() 482 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 484 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 486 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 652 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_528M() 927 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN_528M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkbmimxrt1060/ |
D | clock_config.c | 193 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 474 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 476 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 478 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 480 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(18); in BOARD_BootClockRUN() 482 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 484 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 486 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 652 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_528M() 927 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN_528M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkmimxrt1064/ |
D | clock_config.c | 195 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 476 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 478 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 480 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 482 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(18); in BOARD_BootClockRUN() 484 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 486 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 488 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 656 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_528M() 931 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN_528M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/boards/evkcmimxrt1060/ |
D | clock_config.c | 192 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN() 473 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN() 475 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_SEL_MASK)) | CCM_CCOSR_CLKO1_SEL(1); in BOARD_BootClockRUN() 477 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_DIV_MASK)) | CCM_CCOSR_CLKO2_DIV(0); in BOARD_BootClockRUN() 479 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO2_SEL_MASK)) | CCM_CCOSR_CLKO2_SEL(18); in BOARD_BootClockRUN() 481 CCM->CCOSR &= ~CCM_CCOSR_CLK_OUT_SEL_MASK; in BOARD_BootClockRUN() 483 CCM->CCOSR &= ~CCM_CCOSR_CLKO1_EN_MASK; in BOARD_BootClockRUN() 485 CCM->CCOSR &= ~CCM_CCOSR_CLKO2_EN_MASK; in BOARD_BootClockRUN() 651 CCM->CCR = (CCM->CCR & (~CCM_CCR_OSCNT_MASK)) | CCM_CCR_OSCNT(127); in BOARD_BootClockRUN_528M() 926 CCM->CCOSR = (CCM->CCOSR & (~CCM_CCOSR_CLKO1_DIV_MASK)) | CCM_CCOSR_CLKO1_DIV(0); in BOARD_BootClockRUN_528M() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1172/drivers/ |
D | fsl_clock.h | 1972 CCM->CLOCK_ROOT[root].CONTROL = in CLOCK_SetRootClockMux() 1973 …(CCM->CLOCK_ROOT[root].CONTROL & ~(CCM_CLOCK_ROOT_CONTROL_MUX_MASK)) | CCM_CLOCK_ROOT_CONTROL_MUX(… in CLOCK_SetRootClockMux() 1977 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockMux() 1989 …return (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_MUX_MASK) >> CCM_CLOCK_ROOT_CONTROL… in CLOCK_GetRootClockMux() 2013 …CCM->CLOCK_ROOT[root].CONTROL = (CCM->CLOCK_ROOT[root].CONTROL & ~CCM_CLOCK_ROOT_CONTROL_DIV_MASK)… in CLOCK_SetRootClockDiv() 2018 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockDiv() 2030 …return ((CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_DIV_MASK) >> CCM_CLOCK_ROOT_CONTRO… in CLOCK_GetRootClockDiv() 2041 if (0UL == (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_OFF_MASK)) in CLOCK_PowerOffRootClock() 2043 CCM->CLOCK_ROOT[root].CONTROL_SET = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOffRootClock() 2047 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOffRootClock() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1166/drivers/ |
D | fsl_clock.h | 1939 CCM->CLOCK_ROOT[root].CONTROL = in CLOCK_SetRootClockMux() 1940 …(CCM->CLOCK_ROOT[root].CONTROL & ~(CCM_CLOCK_ROOT_CONTROL_MUX_MASK)) | CCM_CLOCK_ROOT_CONTROL_MUX(… in CLOCK_SetRootClockMux() 1944 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockMux() 1956 …return (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_MUX_MASK) >> CCM_CLOCK_ROOT_CONTROL… in CLOCK_GetRootClockMux() 1980 …CCM->CLOCK_ROOT[root].CONTROL = (CCM->CLOCK_ROOT[root].CONTROL & ~CCM_CLOCK_ROOT_CONTROL_DIV_MASK)… in CLOCK_SetRootClockDiv() 1985 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockDiv() 1997 …return ((CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_DIV_MASK) >> CCM_CLOCK_ROOT_CONTRO… in CLOCK_GetRootClockDiv() 2008 if (0UL == (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_OFF_MASK)) in CLOCK_PowerOffRootClock() 2010 CCM->CLOCK_ROOT[root].CONTROL_SET = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOffRootClock() 2014 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOffRootClock() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1171/drivers/ |
D | fsl_clock.h | 1972 CCM->CLOCK_ROOT[root].CONTROL = in CLOCK_SetRootClockMux() 1973 …(CCM->CLOCK_ROOT[root].CONTROL & ~(CCM_CLOCK_ROOT_CONTROL_MUX_MASK)) | CCM_CLOCK_ROOT_CONTROL_MUX(… in CLOCK_SetRootClockMux() 1977 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockMux() 1989 …return (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_MUX_MASK) >> CCM_CLOCK_ROOT_CONTROL… in CLOCK_GetRootClockMux() 2013 …CCM->CLOCK_ROOT[root].CONTROL = (CCM->CLOCK_ROOT[root].CONTROL & ~CCM_CLOCK_ROOT_CONTROL_DIV_MASK)… in CLOCK_SetRootClockDiv() 2018 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockDiv() 2030 …return ((CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_DIV_MASK) >> CCM_CLOCK_ROOT_CONTRO… in CLOCK_GetRootClockDiv() 2041 if (0UL == (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_OFF_MASK)) in CLOCK_PowerOffRootClock() 2043 CCM->CLOCK_ROOT[root].CONTROL_SET = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOffRootClock() 2047 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOffRootClock() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1165/drivers/ |
D | fsl_clock.h | 1939 CCM->CLOCK_ROOT[root].CONTROL = in CLOCK_SetRootClockMux() 1940 …(CCM->CLOCK_ROOT[root].CONTROL & ~(CCM_CLOCK_ROOT_CONTROL_MUX_MASK)) | CCM_CLOCK_ROOT_CONTROL_MUX(… in CLOCK_SetRootClockMux() 1944 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockMux() 1956 …return (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_MUX_MASK) >> CCM_CLOCK_ROOT_CONTROL… in CLOCK_GetRootClockMux() 1980 …CCM->CLOCK_ROOT[root].CONTROL = (CCM->CLOCK_ROOT[root].CONTROL & ~CCM_CLOCK_ROOT_CONTROL_DIV_MASK)… in CLOCK_SetRootClockDiv() 1985 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockDiv() 1997 …return ((CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_DIV_MASK) >> CCM_CLOCK_ROOT_CONTRO… in CLOCK_GetRootClockDiv() 2008 if (0UL == (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_OFF_MASK)) in CLOCK_PowerOffRootClock() 2010 CCM->CLOCK_ROOT[root].CONTROL_SET = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOffRootClock() 2014 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOffRootClock() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1176/drivers/ |
D | fsl_clock.h | 1972 CCM->CLOCK_ROOT[root].CONTROL = in CLOCK_SetRootClockMux() 1973 …(CCM->CLOCK_ROOT[root].CONTROL & ~(CCM_CLOCK_ROOT_CONTROL_MUX_MASK)) | CCM_CLOCK_ROOT_CONTROL_MUX(… in CLOCK_SetRootClockMux() 1977 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockMux() 1989 …return (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_MUX_MASK) >> CCM_CLOCK_ROOT_CONTROL… in CLOCK_GetRootClockMux() 2013 …CCM->CLOCK_ROOT[root].CONTROL = (CCM->CLOCK_ROOT[root].CONTROL & ~CCM_CLOCK_ROOT_CONTROL_DIV_MASK)… in CLOCK_SetRootClockDiv() 2018 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockDiv() 2030 …return ((CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_DIV_MASK) >> CCM_CLOCK_ROOT_CONTRO… in CLOCK_GetRootClockDiv() 2041 if (0UL == (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_OFF_MASK)) in CLOCK_PowerOffRootClock() 2043 CCM->CLOCK_ROOT[root].CONTROL_SET = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOffRootClock() 2047 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOffRootClock() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1175/drivers/ |
D | fsl_clock.h | 1972 CCM->CLOCK_ROOT[root].CONTROL = in CLOCK_SetRootClockMux() 1973 …(CCM->CLOCK_ROOT[root].CONTROL & ~(CCM_CLOCK_ROOT_CONTROL_MUX_MASK)) | CCM_CLOCK_ROOT_CONTROL_MUX(… in CLOCK_SetRootClockMux() 1977 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockMux() 1989 …return (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_MUX_MASK) >> CCM_CLOCK_ROOT_CONTROL… in CLOCK_GetRootClockMux() 2013 …CCM->CLOCK_ROOT[root].CONTROL = (CCM->CLOCK_ROOT[root].CONTROL & ~CCM_CLOCK_ROOT_CONTROL_DIV_MASK)… in CLOCK_SetRootClockDiv() 2018 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockDiv() 2030 …return ((CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_DIV_MASK) >> CCM_CLOCK_ROOT_CONTRO… in CLOCK_GetRootClockDiv() 2041 if (0UL == (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_OFF_MASK)) in CLOCK_PowerOffRootClock() 2043 CCM->CLOCK_ROOT[root].CONTROL_SET = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOffRootClock() 2047 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOffRootClock() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1173/drivers/ |
D | fsl_clock.h | 1972 CCM->CLOCK_ROOT[root].CONTROL = in CLOCK_SetRootClockMux() 1973 …(CCM->CLOCK_ROOT[root].CONTROL & ~(CCM_CLOCK_ROOT_CONTROL_MUX_MASK)) | CCM_CLOCK_ROOT_CONTROL_MUX(… in CLOCK_SetRootClockMux() 1977 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockMux() 1989 …return (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_MUX_MASK) >> CCM_CLOCK_ROOT_CONTROL… in CLOCK_GetRootClockMux() 2013 …CCM->CLOCK_ROOT[root].CONTROL = (CCM->CLOCK_ROOT[root].CONTROL & ~CCM_CLOCK_ROOT_CONTROL_DIV_MASK)… in CLOCK_SetRootClockDiv() 2018 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockDiv() 2030 …return ((CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_DIV_MASK) >> CCM_CLOCK_ROOT_CONTRO… in CLOCK_GetRootClockDiv() 2041 if (0UL == (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_OFF_MASK)) in CLOCK_PowerOffRootClock() 2043 CCM->CLOCK_ROOT[root].CONTROL_SET = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOffRootClock() 2047 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOffRootClock() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1011/drivers/ |
D | fsl_clock.c | 104 if ((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK_SEL_MASK) != 0UL) in CLOCK_GetPeriphClkFreq() 106 switch (CCM->CBCMR & CCM_CBCMR_PERIPH_CLK2_SEL_MASK) in CLOCK_GetPeriphClkFreq() 131 switch (CCM->CBCMR & CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK) in CLOCK_GetPeriphClkFreq() 166 switch ((CCM->CCSR & CCM_CCSR_PLL3_SW_CLK_SEL_MASK) >> CCM_CCSR_PLL3_SW_CLK_SEL_SHIFT) in CLOCK_GetPllUsb1SWFreq() 190 switch (CCM->CBCMR & CCM_CBCMR_PERIPH_CLK2_SEL_MASK) in CLOCK_GetPeriphClk2Freq() 219 switch ((CCM->CSCMR1 & CCM_CSCMR1_FLEXSPI_CLK_SEL_MASK) >> CCM_CSCMR1_FLEXSPI_CLK_SEL_SHIFT) in CLOCK_GetFlexspiSelFreq() 326 …return CLOCK_GetPeriphClkFreq() / (((CCM->CBCDR & CCM_CBCDR_AHB_PODF_MASK) >> CCM_CBCDR_AHB_PODF_S… in CLOCK_GetCoreFreq() 336 …return CLOCK_GetCoreFreq() / (((CCM->CBCDR & CCM_CBCDR_IPG_PODF_MASK) >> CCM_CBCDR_IPG_PODF_SHIFT)… in CLOCK_GetIpgFreq() 349 if ((CCM->CSCMR1 & CCM_CSCMR1_PERCLK_CLK_SEL_MASK) != 0UL) in CLOCK_GetPerClkFreq() 359 freq /= (((CCM->CSCMR1 & CCM_CSCMR1_PERCLK_PODF_MASK) >> CCM_CSCMR1_PERCLK_PODF_SHIFT) + 1U); in CLOCK_GetPerClkFreq() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1024/drivers/ |
D | fsl_clock.c | 91 if ((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK_SEL_MASK) != 0UL) in CLOCK_GetPeriphClkFreq() 93 switch (CCM->CBCMR & CCM_CBCMR_PERIPH_CLK2_SEL_MASK) in CLOCK_GetPeriphClkFreq() 115 …freq /= (((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK2_PODF_MASK) >> CCM_CBCDR_PERIPH_CLK2_PODF_SHIFT) + 1U… in CLOCK_GetPeriphClkFreq() 120 switch (CCM->CBCMR & CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK) in CLOCK_GetPeriphClkFreq() 155 switch ((CCM->CCSR & CCM_CCSR_PLL3_SW_CLK_SEL_MASK) >> CCM_CCSR_PLL3_SW_CLK_SEL_SHIFT) in CLOCK_GetPllUsb1SWFreq() 259 …return CLOCK_GetPeriphClkFreq() / (((CCM->CBCDR & CCM_CBCDR_AHB_PODF_MASK) >> CCM_CBCDR_AHB_PODF_S… in CLOCK_GetAhbFreq() 272 if ((CCM->CBCDR & CCM_CBCDR_SEMC_CLK_SEL_MASK) != 0UL) in CLOCK_GetSemcFreq() 275 if ((CCM->CBCDR & CCM_CBCDR_SEMC_ALT_CLK_SEL_MASK) != 0UL) in CLOCK_GetSemcFreq() 291 freq /= (((CCM->CBCDR & CCM_CBCDR_SEMC_PODF_MASK) >> CCM_CBCDR_SEMC_PODF_SHIFT) + 1U); in CLOCK_GetSemcFreq() 303 …return CLOCK_GetAhbFreq() / (((CCM->CBCDR & CCM_CBCDR_IPG_PODF_MASK) >> CCM_CBCDR_IPG_PODF_SHIFT) … in CLOCK_GetIpgFreq() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1015/drivers/ |
D | fsl_clock.c | 91 if ((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK_SEL_MASK) != 0UL) in CLOCK_GetPeriphClkFreq() 93 switch (CCM->CBCMR & CCM_CBCMR_PERIPH_CLK2_SEL_MASK) in CLOCK_GetPeriphClkFreq() 115 …freq /= (((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK2_PODF_MASK) >> CCM_CBCDR_PERIPH_CLK2_PODF_SHIFT) + 1U… in CLOCK_GetPeriphClkFreq() 120 switch (CCM->CBCMR & CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK) in CLOCK_GetPeriphClkFreq() 155 switch ((CCM->CCSR & CCM_CCSR_PLL3_SW_CLK_SEL_MASK) >> CCM_CCSR_PLL3_SW_CLK_SEL_SHIFT) in CLOCK_GetPllUsb1SWFreq() 260 …return CLOCK_GetPeriphClkFreq() / (((CCM->CBCDR & CCM_CBCDR_AHB_PODF_MASK) >> CCM_CBCDR_AHB_PODF_S… in CLOCK_GetAhbFreq() 273 if ((CCM->CBCDR & CCM_CBCDR_SEMC_CLK_SEL_MASK) != 0UL) in CLOCK_GetSemcFreq() 276 if ((CCM->CBCDR & CCM_CBCDR_SEMC_ALT_CLK_SEL_MASK) != 0UL) in CLOCK_GetSemcFreq() 292 freq /= (((CCM->CBCDR & CCM_CBCDR_SEMC_PODF_MASK) >> CCM_CBCDR_SEMC_PODF_SHIFT) + 1U); in CLOCK_GetSemcFreq() 304 …return CLOCK_GetAhbFreq() / (((CCM->CBCDR & CCM_CBCDR_IPG_PODF_MASK) >> CCM_CBCDR_IPG_PODF_SHIFT) … in CLOCK_GetIpgFreq() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1021/drivers/ |
D | fsl_clock.c | 91 if ((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK_SEL_MASK) != 0UL) in CLOCK_GetPeriphClkFreq() 93 switch (CCM->CBCMR & CCM_CBCMR_PERIPH_CLK2_SEL_MASK) in CLOCK_GetPeriphClkFreq() 115 …freq /= (((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK2_PODF_MASK) >> CCM_CBCDR_PERIPH_CLK2_PODF_SHIFT) + 1U… in CLOCK_GetPeriphClkFreq() 120 switch (CCM->CBCMR & CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK) in CLOCK_GetPeriphClkFreq() 155 switch ((CCM->CCSR & CCM_CCSR_PLL3_SW_CLK_SEL_MASK) >> CCM_CCSR_PLL3_SW_CLK_SEL_SHIFT) in CLOCK_GetPllUsb1SWFreq() 259 …return CLOCK_GetPeriphClkFreq() / (((CCM->CBCDR & CCM_CBCDR_AHB_PODF_MASK) >> CCM_CBCDR_AHB_PODF_S… in CLOCK_GetAhbFreq() 272 if ((CCM->CBCDR & CCM_CBCDR_SEMC_CLK_SEL_MASK) != 0UL) in CLOCK_GetSemcFreq() 275 if ((CCM->CBCDR & CCM_CBCDR_SEMC_ALT_CLK_SEL_MASK) != 0UL) in CLOCK_GetSemcFreq() 291 freq /= (((CCM->CBCDR & CCM_CBCDR_SEMC_PODF_MASK) >> CCM_CBCDR_SEMC_PODF_SHIFT) + 1U); in CLOCK_GetSemcFreq() 303 …return CLOCK_GetAhbFreq() / (((CCM->CBCDR & CCM_CBCDR_IPG_PODF_MASK) >> CCM_CBCDR_IPG_PODF_SHIFT) … in CLOCK_GetIpgFreq() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1041/drivers/ |
D | fsl_clock.c | 91 if ((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK_SEL_MASK) != 0U) in CLOCK_GetPeriphClkFreq() 93 switch (CCM->CBCMR & CCM_CBCMR_PERIPH_CLK2_SEL_MASK) in CLOCK_GetPeriphClkFreq() 115 …freq /= (((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK2_PODF_MASK) >> CCM_CBCDR_PERIPH_CLK2_PODF_SHIFT) + 1U… in CLOCK_GetPeriphClkFreq() 120 switch (CCM->CBCMR & CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK) in CLOCK_GetPeriphClkFreq() 140 (((CCM->CACRR & CCM_CACRR_ARM_PODF_MASK) >> CCM_CACRR_ARM_PODF_SHIFT) + 1U); in CLOCK_GetPeriphClkFreq() 156 switch ((CCM->CCSR & CCM_CCSR_PLL3_SW_CLK_SEL_MASK) >> CCM_CCSR_PLL3_SW_CLK_SEL_SHIFT) in CLOCK_GetPllUsb1SWFreq() 261 …return CLOCK_GetPeriphClkFreq() / (((CCM->CBCDR & CCM_CBCDR_AHB_PODF_MASK) >> CCM_CBCDR_AHB_PODF_S… in CLOCK_GetAhbFreq() 274 if ((CCM->CBCDR & CCM_CBCDR_SEMC_CLK_SEL_MASK) != 0U) in CLOCK_GetSemcFreq() 277 if ((CCM->CBCDR & CCM_CBCDR_SEMC_ALT_CLK_SEL_MASK) != 0U) in CLOCK_GetSemcFreq() 293 freq /= (((CCM->CBCDR & CCM_CBCDR_SEMC_PODF_MASK) >> CCM_CBCDR_SEMC_PODF_SHIFT) + 1U); in CLOCK_GetSemcFreq() [all …]
|
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT1042/drivers/ |
D | fsl_clock.c | 91 if ((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK_SEL_MASK) != 0U) in CLOCK_GetPeriphClkFreq() 93 switch (CCM->CBCMR & CCM_CBCMR_PERIPH_CLK2_SEL_MASK) in CLOCK_GetPeriphClkFreq() 115 …freq /= (((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK2_PODF_MASK) >> CCM_CBCDR_PERIPH_CLK2_PODF_SHIFT) + 1U… in CLOCK_GetPeriphClkFreq() 120 switch (CCM->CBCMR & CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK) in CLOCK_GetPeriphClkFreq() 140 (((CCM->CACRR & CCM_CACRR_ARM_PODF_MASK) >> CCM_CACRR_ARM_PODF_SHIFT) + 1U); in CLOCK_GetPeriphClkFreq() 156 switch ((CCM->CCSR & CCM_CCSR_PLL3_SW_CLK_SEL_MASK) >> CCM_CCSR_PLL3_SW_CLK_SEL_SHIFT) in CLOCK_GetPllUsb1SWFreq() 261 …return CLOCK_GetPeriphClkFreq() / (((CCM->CBCDR & CCM_CBCDR_AHB_PODF_MASK) >> CCM_CBCDR_AHB_PODF_S… in CLOCK_GetAhbFreq() 274 if ((CCM->CBCDR & CCM_CBCDR_SEMC_CLK_SEL_MASK) != 0U) in CLOCK_GetSemcFreq() 277 if ((CCM->CBCDR & CCM_CBCDR_SEMC_ALT_CLK_SEL_MASK) != 0U) in CLOCK_GetSemcFreq() 293 freq /= (((CCM->CBCDR & CCM_CBCDR_SEMC_PODF_MASK) >> CCM_CBCDR_SEMC_PODF_SHIFT) + 1U); in CLOCK_GetSemcFreq() [all …]
|