Lines Matching refs:id

94 static uint32_t CLOCK_GetClk16KFreq(uint32_t id);
98 static uint32_t CLOCK_GetOsc32KFreq(uint32_t id);
100 static uint32_t CLOCK_GetSystickClkFreq(uint32_t id);
330 status_t CLOCK_SetupOsc32KClocking(uint32_t id) in CLOCK_SetupOsc32KClocking() argument
346 VBAT0->OSCCLKE |= VBAT_OSCCLKE_CLKE(id); in CLOCK_SetupOsc32KClocking()
372 status_t CLOCK_SetupClk16KClocking(uint32_t id) in CLOCK_SetupClk16KClocking() argument
380 VBAT0->FROCLKE |= VBAT_FROCLKE_CLKE(id); in CLOCK_SetupClk16KClocking()
930 uint32_t CLOCK_GetCTimerClkFreq(uint32_t id) in CLOCK_GetCTimerClkFreq() argument
934 switch (SYSCON->CTIMERCLKSEL[id]) in CLOCK_GetCTimerClkFreq()
977 return freq / ((SYSCON->CTIMERCLKDIV[id] & 0xffU) + 1U); in CLOCK_GetCTimerClkFreq()
984 uint32_t CLOCK_GetAdcClkFreq(uint32_t id) in CLOCK_GetAdcClkFreq() argument
989 switch ((id == 0U) ? (SYSCON->ADC0CLKSEL) : (SYSCON->ADC1CLKSEL)) in CLOCK_GetAdcClkFreq()
1014 div = ((id == 0U) ? ((SYSCON->ADC0CLKDIV & SYSCON_ADC0CLKDIV_DIV_MASK) + 1U) : in CLOCK_GetAdcClkFreq()
1061 uint32_t CLOCK_GetLPFlexCommClkFreq(uint32_t id) in CLOCK_GetLPFlexCommClkFreq() argument
1065 switch (SYSCON->FCCLKSEL[id]) in CLOCK_GetLPFlexCommClkFreq()
1090 return freq / ((SYSCON->FLEXCOMMCLKDIV[id] & 0xffU) + 1U); in CLOCK_GetLPFlexCommClkFreq()
1195 uint32_t CLOCK_GetDacClkFreq(uint32_t id) in CLOCK_GetDacClkFreq() argument
1199 switch (SYSCON->DAC[id].CLKSEL) in CLOCK_GetDacClkFreq()
1221 return freq / ((SYSCON->DAC[id].CLKDIV & SYSCON_DAC_CLKDIV_DIV_MASK) + 1U); in CLOCK_GetDacClkFreq()
1363 uint32_t CLOCK_GetI3cClkFreq(uint32_t id) in CLOCK_GetI3cClkFreq() argument
1368 switch ((id == 0U) ? (SYSCON->I3C0FCLKSEL) : (SYSCON->I3C1FCLKSEL)) in CLOCK_GetI3cClkFreq()
1389 div = ((id == 0U) ? ((SYSCON->I3C0FCLKDIV & SYSCON_I3C0FCLKDIV_DIV_MASK) + 1U) : in CLOCK_GetI3cClkFreq()
1399 uint32_t CLOCK_GetI3cSTCClkFreq(uint32_t id) in CLOCK_GetI3cSTCClkFreq() argument
1404 switch ((id == 0U) ? (SYSCON->I3C0FCLKSTCSEL) : (SYSCON->I3C1FCLKSTCSEL)) in CLOCK_GetI3cSTCClkFreq()
1407 switch ((id == 0U) ? (SYSCON->I3C0FCLKSEL) : (SYSCON->I3C1FCLKSEL)) in CLOCK_GetI3cSTCClkFreq()
1436 div = ((id == 0U) ? ((SYSCON->I3C0FCLKSTCDIV & SYSCON_I3C0FCLKSTCDIV_DIV_MASK) + 1U) : in CLOCK_GetI3cSTCClkFreq()
1446 uint32_t CLOCK_GetI3cSClkFreq(uint32_t id) in CLOCK_GetI3cSClkFreq() argument
1451 switch ((id == 0U) ? (SYSCON->I3C0FCLKSSEL) : (SYSCON->I3C1FCLKSSEL)) in CLOCK_GetI3cSClkFreq()
1461 div = ((id == 0U) ? ((SYSCON->I3C0FCLKSDIV & SYSCON_I3C0FCLKSDIV_DIV_MASK) + 1U) : in CLOCK_GetI3cSClkFreq()
1582 uint32_t CLOCK_GetFlexcanClkFreq(uint32_t id) in CLOCK_GetFlexcanClkFreq() argument
1587 switch ((id == 0U) ? (SYSCON->FLEXCAN0CLKSEL) : (SYSCON->FLEXCAN1CLKSEL)) in CLOCK_GetFlexcanClkFreq()
1608 div = ((id == 0U) ? ((SYSCON->FLEXCAN0CLKDIV & SYSCON_FLEXCAN0CLKDIV_DIV_MASK) + 1U) : in CLOCK_GetFlexcanClkFreq()
1719 uint32_t CLOCK_GetWdtClkFreq(uint32_t id) in CLOCK_GetWdtClkFreq() argument
1724 if (id == 0U) in CLOCK_GetWdtClkFreq()
1750 div = ((id == 0U) ? ((SYSCON->WDT0CLKDIV & SYSCON_WDT0CLKDIV_DIV_MASK) + 1U) : in CLOCK_GetWdtClkFreq()
1787 uint32_t CLOCK_GetCmpFClkFreq(uint32_t id) in CLOCK_GetCmpFClkFreq() argument
1792 …switch ((id == 0U) ? (SYSCON->CMP0FCLKSEL) : ((id == 1U) ? (SYSCON->CMP1FCLKSEL) : (SYSCON->CMP2FC… in CLOCK_GetCmpFClkFreq()
1816 div = ((id == 0U) ? ((SYSCON->CMP0FCLKDIV & SYSCON_CMP0FCLKDIV_DIV_MASK) + 1U) : in CLOCK_GetCmpFClkFreq()
1817 ((id == 1U) ? ((SYSCON->CMP1FCLKDIV & SYSCON_CMP1FCLKDIV_DIV_MASK) + 1U) : in CLOCK_GetCmpFClkFreq()
1827 uint32_t CLOCK_GetCmpRRClkFreq(uint32_t id) in CLOCK_GetCmpRRClkFreq() argument
1832 …switch ((id == 0U) ? (SYSCON->CMP0RRCLKSEL) : ((id == 1U) ? (SYSCON->CMP1RRCLKSEL) : (SYSCON->CMP2… in CLOCK_GetCmpRRClkFreq()
1856 div = ((id == 0U) ? ((SYSCON->CMP0RRCLKDIV & SYSCON_CMP0RRCLKDIV_DIV_MASK) + 1U) : in CLOCK_GetCmpRRClkFreq()
1857 ((id == 1U) ? ((SYSCON->CMP1RRCLKDIV & SYSCON_CMP1RRCLKDIV_DIV_MASK) + 1U) : in CLOCK_GetCmpRRClkFreq()
1867 uint32_t CLOCK_GetSaiClkFreq(uint32_t id) in CLOCK_GetSaiClkFreq() argument
1872 switch ((id == 0U) ? (SYSCON->SAI0CLKSEL) : (SYSCON->SAI1CLKSEL)) in CLOCK_GetSaiClkFreq()
1893 div = ((id == 0U) ? ((SYSCON->SAI0CLKDIV & SYSCON_SAI0CLKDIV_DIV_MASK) + 1U) : in CLOCK_GetSaiClkFreq()
1903 void CLOCK_SetupSaiMclk(uint32_t id, uint32_t iFreq) in CLOCK_SetupSaiMclk() argument
1905 s_Sai_Mclk_Freq[id] = iFreq; in CLOCK_SetupSaiMclk()
1914 void CLOCK_SetupSaiTxBclk(uint32_t id, uint32_t iFreq) in CLOCK_SetupSaiTxBclk() argument
1916 s_Sai_Tx_Bclk_Freq[id] = iFreq; in CLOCK_SetupSaiTxBclk()
1925 void CLOCK_SetupSaiRxBclk(uint32_t id, uint32_t iFreq) in CLOCK_SetupSaiRxBclk() argument
1927 s_Sai_Rx_Bclk_Freq[id] = iFreq; in CLOCK_SetupSaiRxBclk()
1936 uint32_t CLOCK_GetSaiMclkFreq(uint32_t id) in CLOCK_GetSaiMclkFreq() argument
1938 return s_Sai_Mclk_Freq[id]; in CLOCK_GetSaiMclkFreq()
1945 uint32_t CLOCK_GetSaiTxBclkFreq(uint32_t id) in CLOCK_GetSaiTxBclkFreq() argument
1947 return s_Sai_Tx_Bclk_Freq[id]; in CLOCK_GetSaiTxBclkFreq()
1954 uint32_t CLOCK_GetSaiRxBclkFreq(uint32_t id) in CLOCK_GetSaiRxBclkFreq() argument
1956 return s_Sai_Rx_Bclk_Freq[id]; in CLOCK_GetSaiRxBclkFreq()
1963 uint32_t CLOCK_GetEmvsimClkFreq(uint32_t id) in CLOCK_GetEmvsimClkFreq() argument
1968 switch ((id == 0U) ? (SYSCON->EMVSIM0CLKSEL) : (SYSCON->EMVSIM1CLKSEL)) in CLOCK_GetEmvsimClkFreq()
1990 div = ((id == 0U) ? ((SYSCON->EMVSIM0CLKDIV & SYSCON_EMVSIM0CLKDIV_DIV_MASK) + 1U) : in CLOCK_GetEmvsimClkFreq()
2308 static uint32_t CLOCK_GetClk16KFreq(uint32_t id) in CLOCK_GetClk16KFreq() argument
2311 (((VBAT0->FROCLKE & VBAT_FROCLKE_CLKE(id)) != 0UL) ? 16000U : 0U) : in CLOCK_GetClk16KFreq()
2328 static uint32_t CLOCK_GetOsc32KFreq(uint32_t id) in CLOCK_GetOsc32KFreq() argument
2331 (((VBAT0->OSCCLKE & VBAT_OSCCLKE_CLKE(id)) != 0UL) ? s_Xtal32_Freq : 0U) : in CLOCK_GetOsc32KFreq()
2391 static uint32_t CLOCK_GetSystickClkFreq(uint32_t id) in CLOCK_GetSystickClkFreq() argument
2395 switch ((id == 0U) ? SYSCON->SYSTICKCLKSEL0 : SYSCON->SYSTICKCLKSEL1) in CLOCK_GetSystickClkFreq()
2398 freq = CLOCK_GetMainClkFreq() / (((SYSCON->SYSTICKCLKDIV[id]) & 0xffU) + 1U); in CLOCK_GetSystickClkFreq()