Home
last modified time | relevance | path

Searched refs:sourceClockInHz (Results 1 – 2 of 2) sorted by relevance

/hal_nxp-3.5.0/imx/drivers/
Decspi.c96 uint32_t ECSPI_SetBaudRate(ECSPI_Type* base, uint32_t sourceClockInHz, uint32_t bitsPerSec) in ECSPI_SetBaudRate() argument
102 if(sourceClockInHz <= bitsPerSec) in ECSPI_SetBaudRate()
106 return sourceClockInHz; in ECSPI_SetBaudRate()
109 div = sourceClockInHz / bitsPerSec; in ECSPI_SetBaudRate()
112 if((sourceClockInHz - bitsPerSec * div) < ((bitsPerSec * (div + 1)) - sourceClockInHz)) in ECSPI_SetBaudRate()
120 return sourceClockInHz / (pre_div + 1); in ECSPI_SetBaudRate()
126 post_baud = sourceClockInHz >> div; in ECSPI_SetBaudRate()
Decspi.h341 uint32_t ECSPI_SetBaudRate(ECSPI_Type* base, uint32_t sourceClockInHz, uint32_t bitsPerSec);