summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@adafruit.com>2021-01-26 15:22:02 -0500
committerGitHub <noreply@github.com>2021-01-26 15:22:02 -0500
commit29e672fe86a13ddc2e45a95e48c0f2543970fe16 (patch)
tree2bed39e83e0108a8d2dd52171f1213ccceaf9e7b
parenta9227e15d0b3fb77504c597fc9a2925cc02750bd (diff)
parentb42e94ee2cf9b1d35ddabe36292a980bf0ed0c4f (diff)
Merge pull request #4071 from tannewt/rp2040_uart_error
Raise an error on UART use
-rw-r--r--ports/raspberrypi/common-hal/busio/UART.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/raspberrypi/common-hal/busio/UART.c b/ports/raspberrypi/common-hal/busio/UART.c
index 71da6cadd..f9a75b499 100644
--- a/ports/raspberrypi/common-hal/busio/UART.c
+++ b/ports/raspberrypi/common-hal/busio/UART.c
@@ -54,6 +54,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
uint32_t baudrate, uint8_t bits, busio_uart_parity_t parity, uint8_t stop,
mp_float_t timeout, uint16_t receiver_buffer_size, byte* receiver_buffer,
bool sigint_enabled) {
+ mp_raise_NotImplementedError(translate("UART not yet supported"));
// Sercom* sercom = NULL;
// uint8_t sercom_index = 255; // Unset index