aboutsummaryrefslogtreecommitdiff
path: root/shared-bindings/nativeio
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-01-10 15:57:04 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-01-12 12:46:18 -0800
commitcea5503ca006c712c007ad6d38c140c4ac241638 (patch)
treee7312e65bd59a2f81d3ea7c42eee7b4832295d7c /shared-bindings/nativeio
parentdfb61f01dbd1d580ff11503f531bb5972cbbd433 (diff)
Fixup warnings from merge about undefined macro values, switch to
VM keyboard exception and switch to FATFS reader.
Diffstat (limited to 'shared-bindings/nativeio')
-rw-r--r--shared-bindings/nativeio/UART.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/shared-bindings/nativeio/UART.c b/shared-bindings/nativeio/UART.c
index 3d0e7f475..c2cab4033 100644
--- a/shared-bindings/nativeio/UART.c
+++ b/shared-bindings/nativeio/UART.c
@@ -148,18 +148,12 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(nativeio_uart___exit___obj, 4, 4, nat
//
//| .. method:: read([nbytes])
//|
-//| Read characters. If ``nbytes`` is specified then read at most that many bytes.
+//| Read characters. If ``nbytes`` is specified then read at most that many
+//| bytes. Otherwise, read everything that has been buffered.
//|
//| :return: Data read
//| :rtype: bytes or None
//|
-//| .. method:: readall()
-//|
-//| Reads much has been buffered.
-//|
-//| :return: Data buffered so far
-//| :rtype: bytes or None
-//|
//| .. method:: readinto(buf[, nbytes])
//|
//| Read bytes into the ``buf``. If ``nbytes`` is specified then read at most
@@ -263,7 +257,6 @@ STATIC const mp_rom_map_elem_t nativeio_uart_locals_dict_table[] = {
// Standard stream methods.
{ MP_OBJ_NEW_QSTR(MP_QSTR_read), MP_ROM_PTR(&mp_stream_read_obj) },
- { MP_OBJ_NEW_QSTR(MP_QSTR_readall), MP_ROM_PTR(&mp_stream_readall_obj) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_readline), MP_ROM_PTR(&mp_stream_unbuffered_readline_obj)},
{ MP_OBJ_NEW_QSTR(MP_QSTR_readinto), MP_ROM_PTR(&mp_stream_readinto_obj) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_write), MP_ROM_PTR(&mp_stream_write_obj) },