Lines Matching refs:root

2053 static inline void CLOCK_SetRootClockMux(clock_root_t root, uint8_t src)  in CLOCK_SetRootClockMux()  argument
2056 CCM->CLOCK_ROOT[root].CONTROL = in CLOCK_SetRootClockMux()
2057 …(CCM->CLOCK_ROOT[root].CONTROL & ~(CCM_CLOCK_ROOT_CONTROL_MUX_MASK)) | CCM_CLOCK_ROOT_CONTROL_MUX(… in CLOCK_SetRootClockMux()
2061 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockMux()
2071 static inline uint32_t CLOCK_GetRootClockMux(clock_root_t root) in CLOCK_GetRootClockMux() argument
2073 …return (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_MUX_MASK) >> CCM_CLOCK_ROOT_CONTROL… in CLOCK_GetRootClockMux()
2083 static inline clock_name_t CLOCK_GetRootClockSource(clock_root_t root, uint32_t src) in CLOCK_GetRootClockSource() argument
2085 return s_clockSourceName[root][src]; in CLOCK_GetRootClockSource()
2094 static inline void CLOCK_SetRootClockDiv(clock_root_t root, uint32_t div) in CLOCK_SetRootClockDiv() argument
2097 …CCM->CLOCK_ROOT[root].CONTROL = (CCM->CLOCK_ROOT[root].CONTROL & ~CCM_CLOCK_ROOT_CONTROL_DIV_MASK)… in CLOCK_SetRootClockDiv()
2102 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClockDiv()
2112 static inline uint32_t CLOCK_GetRootClockDiv(clock_root_t root) in CLOCK_GetRootClockDiv() argument
2114 …return ((CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_DIV_MASK) >> CCM_CLOCK_ROOT_CONTRO… in CLOCK_GetRootClockDiv()
2123 static inline void CLOCK_PowerOffRootClock(clock_root_t root) in CLOCK_PowerOffRootClock() argument
2125 if (0UL == (CCM->CLOCK_ROOT[root].CONTROL & CCM_CLOCK_ROOT_CONTROL_OFF_MASK)) in CLOCK_PowerOffRootClock()
2127 CCM->CLOCK_ROOT[root].CONTROL_SET = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOffRootClock()
2131 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOffRootClock()
2141 static inline void CLOCK_PowerOnRootClock(clock_root_t root) in CLOCK_PowerOnRootClock() argument
2143 CCM->CLOCK_ROOT[root].CONTROL_CLR = CCM_CLOCK_ROOT_CONTROL_OFF_MASK; in CLOCK_PowerOnRootClock()
2147 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_PowerOnRootClock()
2157 static inline void CLOCK_SetRootClock(clock_root_t root, const clock_root_config_t *config) in CLOCK_SetRootClock() argument
2160 CCM->CLOCK_ROOT[root].CONTROL = CCM_CLOCK_ROOT_CONTROL_MUX(config->mux) | in CLOCK_SetRootClock()
2166 (void)CCM->CLOCK_ROOT[root].CONTROL; in CLOCK_SetRootClock()
2240 static inline uint32_t CLOCK_GetRootClockFreq(clock_root_t root) in CLOCK_GetRootClockFreq() argument
2243 mux = CLOCK_GetRootClockMux(root); in CLOCK_GetRootClockFreq()
2244 freq = CLOCK_GetFreq(s_clockSourceName[root][mux]) / (CLOCK_GetRootClockDiv(root)); in CLOCK_GetRootClockFreq()