Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8380

General • Re: UART on PICO2

$
0
0
It's a pointer to the respective UART instance hardware registers base address.
#define uart0 ((uart_inst_t *)uart0_hw)
Identifier for UART instance 0
Expands to:
((uart_inst_t *)((uart_hw_t *)0x40034000u))

#define uart1 ((uart_inst_t *)uart1_hw)
Identifier for UART instance 1
Expands to:
((uart_inst_t *)((uart_hw_t *)0x40038000u))
But you can simply use uart0 or uart1, it's the first or second UART module (there are 2 of them).

Look at some examples: https://github.com/raspberrypi/pico-exa ... aster/uart

Statistics: Posted by gmx — Mon Sep 29, 2025 10:15 pm



Viewing all articles
Browse latest Browse all 8380

Trending Articles