Lines Matching refs:id

92 static uint32_t CLOCK_GetClk16KFreq(uint32_t id);
96 static uint32_t CLOCK_GetOsc32KFreq(uint32_t id);
98 static uint32_t CLOCK_GetSystickClkFreq(uint32_t id);
314 status_t CLOCK_SetupOsc32KClocking(uint32_t id) in CLOCK_SetupOsc32KClocking() argument
330 VBAT0->OSCCLKE |= VBAT_OSCCLKE_CLKE(id); in CLOCK_SetupOsc32KClocking()
356 status_t CLOCK_SetupClk16KClocking(uint32_t id) in CLOCK_SetupClk16KClocking() argument
364 VBAT0->FROCLKE |= VBAT_FROCLKE_CLKE(id); in CLOCK_SetupClk16KClocking()
908 uint32_t CLOCK_GetCTimerClkFreq(uint32_t id) in CLOCK_GetCTimerClkFreq() argument
912 switch (SYSCON->CTIMERCLKSEL[id]) in CLOCK_GetCTimerClkFreq()
955 return freq / ((SYSCON->CTIMERCLKDIV[id] & 0xffU) + 1U); in CLOCK_GetCTimerClkFreq()
962 uint32_t CLOCK_GetAdcClkFreq(uint32_t id) in CLOCK_GetAdcClkFreq() argument
967 switch ((id == 0U) ? (SYSCON->ADC0CLKSEL) : (SYSCON->ADC1CLKSEL)) in CLOCK_GetAdcClkFreq()
992 div = ((id == 0U) ? ((SYSCON->ADC0CLKDIV & SYSCON_ADC0CLKDIV_DIV_MASK) + 1U) : in CLOCK_GetAdcClkFreq()
1002 uint32_t CLOCK_GetLPFlexCommClkFreq(uint32_t id) in CLOCK_GetLPFlexCommClkFreq() argument
1006 switch (SYSCON->FCCLKSEL[id]) in CLOCK_GetLPFlexCommClkFreq()
1031 return freq / ((SYSCON->FLEXCOMMCLKDIV[id] & 0xffU) + 1U); in CLOCK_GetLPFlexCommClkFreq()
1145 uint32_t CLOCK_GetI3cClkFreq(uint32_t id) in CLOCK_GetI3cClkFreq() argument
1150 switch ((id == 0U) ? (SYSCON->I3C0FCLKSEL) : (SYSCON->I3C1FCLKSEL)) in CLOCK_GetI3cClkFreq()
1171 div = ((id == 0U) ? ((SYSCON->I3C0FCLKDIV & SYSCON_I3C0FCLKDIV_DIV_MASK) + 1U) : in CLOCK_GetI3cClkFreq()
1257 uint32_t CLOCK_GetFlexcanClkFreq(uint32_t id) in CLOCK_GetFlexcanClkFreq() argument
1262 switch ((id == 0U) ? (SYSCON->FLEXCAN0CLKSEL) : (SYSCON->FLEXCAN1CLKSEL)) in CLOCK_GetFlexcanClkFreq()
1283 div = ((id == 0U) ? ((SYSCON->FLEXCAN0CLKDIV & SYSCON_FLEXCAN0CLKDIV_DIV_MASK) + 1U) : in CLOCK_GetFlexcanClkFreq()
1317 uint32_t CLOCK_GetWdtClkFreq(uint32_t id) in CLOCK_GetWdtClkFreq() argument
1322 if (id == 0U) in CLOCK_GetWdtClkFreq()
1348 div = ((id == 0U) ? ((SYSCON->WDT0CLKDIV & SYSCON_WDT0CLKDIV_DIV_MASK) + 1U) : in CLOCK_GetWdtClkFreq()
1385 uint32_t CLOCK_GetCmpFClkFreq(uint32_t id) in CLOCK_GetCmpFClkFreq() argument
1390 switch ((id == 0U) ? (SYSCON->CMP0FCLKSEL) : (SYSCON->CMP1FCLKSEL)) in CLOCK_GetCmpFClkFreq()
1414 div = ((id == 0U) ? ((SYSCON->CMP0FCLKDIV & SYSCON_CMP0FCLKDIV_DIV_MASK) + 1U) : in CLOCK_GetCmpFClkFreq()
1424 uint32_t CLOCK_GetCmpRRClkFreq(uint32_t id) in CLOCK_GetCmpRRClkFreq() argument
1429 switch ((id == 0U) ? (SYSCON->CMP0RRCLKSEL) : (SYSCON->CMP1RRCLKSEL)) in CLOCK_GetCmpRRClkFreq()
1453 div = ((id == 0U) ? ((SYSCON->CMP0RRCLKDIV & SYSCON_CMP0RRCLKDIV_DIV_MASK) + 1U) : in CLOCK_GetCmpRRClkFreq()
1490 uint32_t CLOCK_GetSaiClkFreq(uint32_t id) in CLOCK_GetSaiClkFreq() argument
1495 switch ((id == 0U) ? (SYSCON->SAI0CLKSEL) : (SYSCON->SAI1CLKSEL)) in CLOCK_GetSaiClkFreq()
1516 div = ((id == 0U) ? ((SYSCON->SAI0CLKDIV & SYSCON_SAI0CLKDIV_DIV_MASK) + 1U) : in CLOCK_GetSaiClkFreq()
1526 void CLOCK_SetupSaiMclk(uint32_t id, uint32_t iFreq) in CLOCK_SetupSaiMclk() argument
1528 s_Sai_Mclk_Freq[id] = iFreq; in CLOCK_SetupSaiMclk()
1537 void CLOCK_SetupSaiTxBclk(uint32_t id, uint32_t iFreq) in CLOCK_SetupSaiTxBclk() argument
1539 s_Sai_Tx_Bclk_Freq[id] = iFreq; in CLOCK_SetupSaiTxBclk()
1548 void CLOCK_SetupSaiRxBclk(uint32_t id, uint32_t iFreq) in CLOCK_SetupSaiRxBclk() argument
1550 s_Sai_Rx_Bclk_Freq[id] = iFreq; in CLOCK_SetupSaiRxBclk()
1559 uint32_t CLOCK_GetSaiMclkFreq(uint32_t id) in CLOCK_GetSaiMclkFreq() argument
1561 return s_Sai_Mclk_Freq[id]; in CLOCK_GetSaiMclkFreq()
1568 uint32_t CLOCK_GetSaiTxBclkFreq(uint32_t id) in CLOCK_GetSaiTxBclkFreq() argument
1570 return s_Sai_Tx_Bclk_Freq[id]; in CLOCK_GetSaiTxBclkFreq()
1577 uint32_t CLOCK_GetSaiRxBclkFreq(uint32_t id) in CLOCK_GetSaiRxBclkFreq() argument
1579 return s_Sai_Rx_Bclk_Freq[id]; in CLOCK_GetSaiRxBclkFreq()
1894 static uint32_t CLOCK_GetClk16KFreq(uint32_t id) in CLOCK_GetClk16KFreq() argument
1897 (((VBAT0->FROCLKE & VBAT_FROCLKE_CLKE(id)) != 0UL) ? 16000U : 0U) : in CLOCK_GetClk16KFreq()
1914 static uint32_t CLOCK_GetOsc32KFreq(uint32_t id) in CLOCK_GetOsc32KFreq() argument
1917 (((VBAT0->OSCCLKE & VBAT_OSCCLKE_CLKE(id)) != 0UL) ? s_Xtal32_Freq : 0U) : in CLOCK_GetOsc32KFreq()
1964 static uint32_t CLOCK_GetSystickClkFreq(uint32_t id) in CLOCK_GetSystickClkFreq() argument
1971 freq = CLOCK_GetCoreSysClkFreq() / (((SYSCON->SYSTICKCLKDIV[id]) & 0xffU) + 1U); in CLOCK_GetSystickClkFreq()