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
24
#define BAUDRATE 115200u
25
27
#define IBRD ((((8u * CPUFREQ) + BAUDRATE) / (2u * BAUDRATE)) / 64u)
28
30
#define FBRD ((((8u * CPUFREQ) + BAUDRATE) / (2u * BAUDRATE)) % 64u)
31
33
#define UART_UARTCR_UARTEN_BITS (1u << 0u)
34
36
#define UART_UARTCR_RXE_BITS (1u << 9u)
37
39
#define UART_UARTCR_TXE_BITS (1u << 8u)
40
42
#define UART_UARTFR_RXFF_BITS (1u << 6u)
43
45
#define UART_UARTFR_TXFE_BITS (1u << 7u)
46
47
#ifdef __cplusplus
48
extern
"C"
{
49
#endif
50
51
#ifdef __cplusplus
52
}
53
#endif
54
periph_cpu.h
Shared CPU specific definitions for the STM32 family.
units.h
Unit helper macros.
Generated on Sat Sep 6 2025 20:14:02 by
1.9.1