diff options
| author | Sebastian Plamauer <oeplse@gmail.com> | 2016-10-31 20:18:39 +0100 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2016-12-19 13:03:50 -0800 |
| commit | 1598e44231a9ea2dbf20f487fcd05ded90e80d9a (patch) | |
| tree | 2020360e16b0a59b3207838274b5159ac9fe3b73 /stmhal/uart.c | |
| parent | af17b64a58a421342ebad876b81ab68b91c13473 (diff) | |
atmel-samd: Add preliminary support for UART
Diffstat (limited to 'stmhal/uart.c')
| -rw-r--r-- | stmhal/uart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/uart.c b/stmhal/uart.c index cbcb7c059..a485f4463 100644 --- a/stmhal/uart.c +++ b/stmhal/uart.c @@ -28,13 +28,13 @@ #include <string.h> #include <stdarg.h> +#include "py/ioctl.h" #include "py/nlr.h" #include "py/runtime.h" #include "py/stream.h" #include "py/mperrno.h" #include "py/mphal.h" #include "uart.h" -#include "pybioctl.h" #include "irq.h" //TODO: Add UART7/8 support for MCU_SERIES_F7 @@ -563,7 +563,7 @@ STATIC mp_obj_t pyb_uart_init_helper(pyb_uart_obj_t *self, mp_uint_t n_args, con self->read_buf_len = args.read_buf_len.u_int + 1; // +1 to adjust for usable length of buffer self->read_buf = m_new(byte, self->read_buf_len << self->char_width); __HAL_UART_ENABLE_IT(&self->uart, UART_IT_RXNE); - HAL_NVIC_SetPriority(self->irqn, IRQ_PRI_UART, IRQ_SUBPRI_UART); + HAL_NVIC_SetPriority(self->irqn, IRQ_PRI_UART, IRQ_SUBPRI_UART); HAL_NVIC_EnableIRQ(self->irqn); } |
