Lines Matching refs:root
2018 static inline void CLOCK_SetRootClockMux(clock_root_t root, uint8_t src) in CLOCK_SetRootClockMux() argument
2021 CCM->CLOCK_ROOT[root].CONTROL = in CLOCK_SetRootClockMux()
2022 …(CCM->CLOCK_ROOT[root].CONTROL & ~(CCM_CLOCK_ROOT_CONTROL_MUX_MASK)) | CCM_CLOCK_ROOT_CONTROL_MUX(… in CLOCK_SetRootClockMux()
2026 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockMux()
2036 static inline uint32_t CLOCK_GetRootClockMux(clock_root_t root) in CLOCK_GetRootClockMux() argument
2038 …return (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_MUX_MASK) >> CCM_CLOCK_ROOT_CONTROL… in CLOCK_GetRootClockMux()
2048 static inline clock_name_t CLOCK_GetRootClockSource(clock_root_t root, uint32_t src) in CLOCK_GetRootClockSource() argument
2050 return s_clockSourceName[root][src]; in CLOCK_GetRootClockSource()
2059 static inline void CLOCK_SetRootClockDiv(clock_root_t root, uint32_t div) in CLOCK_SetRootClockDiv() argument
2062 …CCM->CLOCK_ROOT[root].CONTROL = (CCM->CLOCK_ROOT[root].CONTROL & ~CCM_CLOCK_ROOT_CONTROL_DIV_MASK)… in CLOCK_SetRootClockDiv()
2067 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockDiv()
2077 static inline uint32_t CLOCK_GetRootClockDiv(clock_root_t root) in CLOCK_GetRootClockDiv() argument
2079 …return ((CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_DIV_MASK) >> CCM_CLOCK_ROOT_CONTRO… in CLOCK_GetRootClockDiv()
2088 static inline void CLOCK_PowerOffRootClock(clock_root_t root) in CLOCK_PowerOffRootClock() argument
2090 if (0UL == (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_OFF_MASK)) in CLOCK_PowerOffRootClock()
2092 CCM->CLOCK_ROOT[root].CONTROL_SET = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOffRootClock()
2096 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOffRootClock()
2106 static inline void CLOCK_PowerOnRootClock(clock_root_t root) in CLOCK_PowerOnRootClock() argument
2108 CCM->CLOCK_ROOT[root].CONTROL_CLR = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOnRootClock()
2112 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOnRootClock()
2122 static inline void CLOCK_SetRootClock(clock_root_t root, const clock_root_config_t *config) in CLOCK_SetRootClock() argument
2125 CCM->CLOCK_ROOT[root].CONTROL = CCM_CLOCK_ROOT_CONTROL_MUX(config->mux) | in CLOCK_SetRootClock()
2131 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClock()
2205 static inline uint32_t CLOCK_GetRootClockFreq(clock_root_t root) in CLOCK_GetRootClockFreq() argument
2208 mux = CLOCK_GetRootClockMux(root); in CLOCK_GetRootClockFreq()
2209 freq = CLOCK_GetFreq(s_clockSourceName[root][mux]) / (CLOCK_GetRootClockDiv(root)); in CLOCK_GetRootClockFreq()