Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
uart_conf.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2025 Tom Hert <git@annsann.eu>
3
* SPDX-FileCopyrightText: 2025 HAW Hamburg
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
19
#include "RP2350.h"
20
#include "
macros/units.h
"
21
#include "
periph_cpu.h
"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
28
#define BAUDRATE 115200u
29
31
#define IBRD ((((8u * CPUFREQ) + BAUDRATE) / (2u * BAUDRATE)) / 64u)
32
34
#define FBRD ((((8u * CPUFREQ) + BAUDRATE) / (2u * BAUDRATE)) % 64u)
35
37
#define UART_UARTCR_UARTEN_BITS (1u << 0u)
38
40
#define UART_UARTCR_RXE_BITS (1u << 9u)
41
43
#define UART_UARTCR_TXE_BITS (1u << 8u)
44
46
#define UART_UARTFR_RXFF_BITS (1u << 6u)
47
49
#define UART_UARTFR_TXFE_BITS (1u << 7u)
50
periph_cpu.h
Shared CPU specific definitions for the STM32 family.
units.h
Unit helper macros.
Generated on Thu Jun 26 2025 14:14:45 by
1.9.1