Macros
Exported_Macros_Helper
Peripheral Driver » LL Driver » UART » Defines » UART Exported Macros

## Macros
#define | __LL_UART_DIV(__PERIPHCLK__, __BAUDRATE__) ((__PERIPHCLK__) / (__BAUDRATE__) / 16)
| Compute UARTDIV value according to Peripheral Clock and expected Baud Rate (32 bits value of UARTDIV is returned) More...
#define | __LL_UART_DLF(__PERIPHCLK__, __BAUDRATE__) ((__PERIPHCLK__) / (__BAUDRATE__) % 16)
| Compute UARTDLF value according to Peripheral Clock and expected Baud Rate (32 bits value of UARTDLF is returned) More...

## Detailed Description

## Macro Definition Documentation

## ◆ __LL_UART_DIV

#define __LL_UART_DIV | ( |  | __PERIPHCLK__,
|  |  | __BAUDRATE__
| ) |  | ((__PERIPHCLK__) / (__BAUDRATE__) / 16)

Compute UARTDIV value according to Peripheral Clock and expected Baud Rate (32 bits value of UARTDIV is returned)

Parameters

  __PERIPHCLK__ | Peripheral Clock frequency used for UART instance
  __BAUDRATE__ | Baud rate value to achieve

Return values

  UARTDIV | value to be used for DLL,DLH registers

Definition at line 277 of file gr55xx_ll_uart.h.

## ◆ __LL_UART_DLF

#define __LL_UART_DLF | ( |  | __PERIPHCLK__,
|  |  | __BAUDRATE__
| ) |  | ((__PERIPHCLK__) / (__BAUDRATE__) % 16)

Compute UARTDLF value according to Peripheral Clock and expected Baud Rate (32 bits value of UARTDLF is returned)

Parameters

  __PERIPHCLK__ | Peripheral Clock frequency used for UART instance
  __BAUDRATE__ | Baud rate value to achieve

Return values

  UARTDLF | value to be used for DLL,DLH registers

Definition at line 286 of file gr55xx_ll_uart.h.