summaryrefslogtreecommitdiff
path: root/shared-bindings/board
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-11-27 12:52:11 -0500
committerDan Halbert <halbert@halwitz.org>2019-11-27 13:05:29 -0500
commitb32a9192df04c6fb36027b2b9b3e0e3a3548005a (patch)
treebafb2fa5d56ddfd1cf6cdd7aef38a10c9da99937 /shared-bindings/board
parentcc008598d05637decf5aab9cae03e992a2e19712 (diff)
make UART.write be blocking on SAMD; add timeout property
Diffstat (limited to 'shared-bindings/board')
-rw-r--r--shared-bindings/board/__init__.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-bindings/board/__init__.c b/shared-bindings/board/__init__.c
index 47e2d64bc..3dda59fb8 100644
--- a/shared-bindings/board/__init__.c
+++ b/shared-bindings/board/__init__.c
@@ -93,6 +93,12 @@ MP_DEFINE_CONST_FUN_OBJ_0(board_spi_obj, board_spi);
//|
//| Returns the `busio.UART` object for the board designated TX and RX pins. It is a singleton.
//|
+//| The object created uses the default parameter values for `busio.UART`. If you need to set
+//| parameters that are not changeable after creation, such as ``receiver_buffer_size``,
+//| do not use `board.UART()`; instead create a `busio.UART` object explicitly with the
+//| desired parameters.
+//|
+//|
#if BOARD_UART
mp_obj_t board_uart(void) {
mp_obj_t singleton = common_hal_board_get_uart();