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 278 of file gr533x_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 287 of file gr533x_ll_uart.h.