8000 teensy: Get port compiling without any warnings. · codemee/micropython@5ae9586 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ae9586

Browse files
committed
teensy: Get port compiling without any warnings.
1 parent 80e3f07 commit 5ae9586

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ports/teensy/teensy_hal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ void mp_hal_stdout_tx_strn(const char *str, size_t len) {
4949
void mp_hal_stdout_tx_strn_cooked(const char *str, size_t len) {
5050
// send stdout to UART and USB CDC VCP
5151
if (MP_STATE_PORT(pyb_stdio_uart) != NULL) {
52+
void uart_tx_strn_cooked(pyb_uart_obj_t *uart_obj, const char *str, uint len);
5253
uart_tx_strn_cooked(MP_STATE_PORT(pyb_stdio_uart), str, len);
5354
}
5455
if (usb_vcp_is_enabled()) {

ports/teensy/uart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,13 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_KW(pyb_uart_send_obj, 1, pyb_uart_send);
426426
///
427427
/// Return value: if `recv` is an integer then a new buffer of the bytes received,
428428
/// otherwise the same buffer that was passed in to `recv`.
429+
#if 0
429430
STATIC const mp_arg_t pyb_uart_recv_args[] = {
430431
{ MP_QSTR_recv, MP_ARG_REQUIRED | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
431432
{ MP_QSTR_timeout, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 5000} },
432433
};
433434
#define PYB_UART_RECV_NUM_ARGS MP_ARRAY_SIZE(pyb_uart_recv_args)
435+
#endif
434436

435437
STATIC mp_obj_t pyb_uart_recv(uint n_args, const mp_obj_t *args, mp_map_t *kw_args) {
436438
// TODO assumes transmission size is 8-bits wide

0 commit comments

Comments
 (0)
0