Searched refs:bitsPerSec (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()109 div = sourceClockInHz / bitsPerSec; in ECSPI_SetBaudRate()112 if((sourceClockInHz - bitsPerSec * div) < ((bitsPerSec * (div + 1)) - sourceClockInHz)) in ECSPI_SetBaudRate()123 pre_baud = bitsPerSec * 16; in ECSPI_SetBaudRate()139 …if((post_baud - bitsPerSec * (post_baud / bitsPerSec)) < ((bitsPerSec * ((post_baud / bitsPerSec) … in ECSPI_SetBaudRate()140 pre_div = post_baud / bitsPerSec - 1; in ECSPI_SetBaudRate()142 pre_div = post_baud / bitsPerSec; in ECSPI_SetBaudRate()
341 uint32_t ECSPI_SetBaudRate(ECSPI_Type* base, uint32_t sourceClockInHz, uint32_t bitsPerSec);