Skip to content

Commit 25d351f

Browse files
Remove PIO global headers from UART object
1 parent afb0915 commit 25d351f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cores/rp2040/SerialUART.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020

2121
#include "SerialUART.h"
22+
#include <hardware/uart.h>
2223
#include <hardware/gpio.h>
2324

2425
bool SerialUART::setPinout(pin_size_t tx, pin_size_t rx) {

cores/rp2040/SerialUART.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323

2424
#include <Arduino.h>
2525
#include "api/HardwareSerial.h"
26-
#include <hardware/uart.h>
2726
#include <stdarg.h>
2827

28+
extern "C" typedef struct uart_inst uart_inst_t;
29+
2930
class SerialUART : public HardwareSerial {
3031
public:
3132
SerialUART(uart_inst_t *uart, pin_size_t tx, pin_size_t rx) { _uart = uart; _tx = tx; _rx = rx; }

0 commit comments

Comments
 (0)