Searched refs:sourceClockInHz (Results 1 – 2 of 2) sorted by relevance
96 uint32_t ECSPI_SetBaudRate(ECSPI_Type* base, uint32_t sourceClockInHz, uint32_t bitsPerSec) in ECSPI_SetBaudRate() argument102 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()
341 uint32_t ECSPI_SetBaudRate(ECSPI_Type* base, uint32_t sourceClockInHz, uint32_t bitsPerSec);