uart_conf.h File Reference

UART configuration for the RP2350. More...

Detailed Description

UART configuration for the RP2350.

Author
Tom Hert git@a.nosp@m.nnsa.nosp@m.nn.eu

Definition in file uart_conf.h.

#include "RP2350.h"
#include "macros/units.h"
#include "periph_cpu.h"
+ Include dependency graph for uart_conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define BAUDRATE   115200u
 UART baud rate in bits per second.
 
#define IBRD   ((((8u * CPUFREQ) + BAUDRATE) / (2u * BAUDRATE)) / 64u)
 Integer baud rate divisor.
 
#define FBRD   ((((8u * CPUFREQ) + BAUDRATE) / (2u * BAUDRATE)) % 64u)
 Fractional baud rate divisor.
 
#define UART_UARTCR_UARTEN_BITS   (1u << 0u)
 UART enable bit in control register.
 
#define UART_UARTCR_RXE_BITS   (1u << 9u)
 UART receive enable bit in control register.
 
#define UART_UARTCR_TXE_BITS   (1u << 8u)
 UART transmit enable bit in control register.
 
#define UART_UARTFR_RXFF_BITS   (1u << 6u)
 UART receive FIFO full flag bit in flag register.
 
#define UART_UARTFR_TXFE_BITS   (1u << 7u)
 UART transmit FIFO empty flag bit in flag register.