|
STM32H735xx HAL User Manual
|
Defines | |
| #define | __LL_LPUART_DIV(__PERIPHCLK__, __PRESCALER__, __BAUDRATE__) |
| Compute LPUARTDIV value according to Peripheral Clock and expected Baud Rate (20-bit value of LPUARTDIV is returned) | |
| #define __LL_LPUART_DIV | ( | __PERIPHCLK__, | |
| __PRESCALER__, | |||
| __BAUDRATE__ | |||
| ) |
(uint32_t)\ ((((((uint64_t)(__PERIPHCLK__)/(uint64_t)(LPUART_PRESCALER_TAB[(uint16_t)(__PRESCALER__)]))\ * LPUART_LPUARTDIV_FREQ_MUL) + (uint32_t)((__BAUDRATE__)/2U))/(__BAUDRATE__)) & LPUART_BRR_MASK)
Compute LPUARTDIV value according to Peripheral Clock and expected Baud Rate (20-bit value of LPUARTDIV is returned)
| __PERIPHCLK__ | Peripheral Clock frequency used for LPUART Instance |
| __PRESCALER__ | This parameter can be one of the following values:
|
| __BAUDRATE__ | Baud Rate value to achieve |
| LPUARTDIV | value to be used for BRR register filling |
Definition at line 468 of file stm32h7xx_ll_lpuart.h.
Referenced by LL_LPUART_SetBaudRate().
1.7.6.1