8000 teensy: Add own uart.h to not rely on stm32's version of the file. · msuszko/micropython@025d419 · GitHub
[go: up one dir, main page]

Skip to content

Commit 025d419

Browse files
committed
teensy: Add own uart.h to not rely on stm32's version of the file.
1 parent dc23978 commit 025d419

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ports/teensy/uart.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef MICROPY_INCLUDED_TEENSY_UART_H
2+
#define MICROPY_INCLUDED_TEENSY_UART_H
3+
4+
typedef enum {
5+
PYB_UART_NONE = 0,
6+
} pyb_uart_t;
7+
8+
typedef struct _pyb_uart_obj_t pyb_uart_obj_t;
9+
10+
extern const mp_obj_type_t pyb_uart_type;
11+
12+
mp_uint_t uart_rx_any(pyb_uart_obj_t *uart_obj);
13+
int uart_rx_char(pyb_uart_obj_t *uart_obj);
14+
void uart_tx_strn(pyb_uart_obj_t *uart_obj, const char *str, uint len);
15+
16+
#endif // MICROPY_INCLUDED_TEENSY_UART_H

0 commit comments

Comments
 (0)
0