Lines Matching refs:u32ClkDiv
45 uint32_t u32ClkDiv = 0ul; in USPI_Open() local
60 …u32ClkDiv = (uint32_t) ((((((u32Pclk/2ul)*10ul)/(u32BusClock))+5ul)/10ul)-1ul); /* Compute proper … in USPI_Open()
96 uspi->BRGEN |= (u32ClkDiv << USPI_BRGEN_CLKDIV_Pos); in USPI_Open()
101 u32UspiClk = (uint32_t)( u32Pclk / ((u32ClkDiv+1ul)<<1) ); in USPI_Open()
171 uint32_t u32ClkDiv; in USPI_SetBusClock() local
183 …u32ClkDiv = (uint32_t) ((((((u32Pclk/2ul)*10ul)/(u32BusClock))+5ul)/10ul)-1ul); /* Compute proper … in USPI_SetBusClock()
187 uspi->BRGEN |= (u32ClkDiv << USPI_BRGEN_CLKDIV_Pos); in USPI_SetBusClock()
189 return ( u32Pclk / ((u32ClkDiv+1ul)<<1) ); in USPI_SetBusClock()
200 uint32_t u32ClkDiv; in USPI_GetBusClock() local
202 u32ClkDiv = (uspi->BRGEN & USPI_BRGEN_CLKDIV_Msk) >> USPI_BRGEN_CLKDIV_Pos; in USPI_GetBusClock()
206 u32BusClk = (uint32_t)( CLK_GetPCLK0Freq() / ((u32ClkDiv+1ul)<<1) ); in USPI_GetBusClock()
210 u32BusClk = (uint32_t)( CLK_GetPCLK1Freq() / ((u32ClkDiv+1ul)<<1) ); in USPI_GetBusClock()