Home
last modified time | relevance | path

Searched refs:clock_rate (Results 1 – 3 of 3) sorted by relevance

/loramac-node-3.4.0/src/boards/mcu/saml21/hal/include/
Dhpl_usart_sync.h123 uint16_t _usart_sync_calculate_baud_rate(const uint32_t baud, const uint32_t clock_rate, const uint…
Dhpl_usart_async.h147 uint16_t _usart_async_calculate_baud_rate(const uint32_t baud, const uint32_t clock_rate, const uin…
/loramac-node-3.4.0/src/boards/mcu/saml21/hpl/sercom/
Dhpl_sercom.c177 static uint16_t _usart_calculate_baud_rate(const uint32_t baud, const uint32_t clock_rate, const ui…
240 uint16_t _usart_sync_calculate_baud_rate(const uint32_t baud, const uint32_t clock_rate, const uint… in _usart_sync_calculate_baud_rate() argument
243 return _usart_calculate_baud_rate(baud, clock_rate, samples, mode, fraction); in _usart_sync_calculate_baud_rate()
249 uint16_t _usart_async_calculate_baud_rate(const uint32_t baud, const uint32_t clock_rate, const uin… in _usart_async_calculate_baud_rate() argument
252 return _usart_calculate_baud_rate(baud, clock_rate, samples, mode, fraction); in _usart_async_calculate_baud_rate()
646 static uint16_t _usart_calculate_baud_rate(const uint32_t baud, const uint32_t clock_rate, const ui… in _usart_calculate_baud_rate() argument
650 return 65536 - ((uint64_t)65536 * samples * baud) / clock_rate; in _usart_calculate_baud_rate()
654 return clock_rate / baud / samples + SERCOM_USART_BAUD_FRACFP_FP(fraction); in _usart_calculate_baud_rate()
658 return clock_rate / baud / 2 - 1; in _usart_calculate_baud_rate()