diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-12-03 11:00:35 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2018-12-03 12:04:32 -0500 |
| commit | 80db2cec99ca5c995a0302b1d6d00ad77cfcd736 (patch) | |
| tree | 023d45974945a347590808e114843d2100cfc66e /py/stream.h | |
| parent | 57c2c4134c52405b78e8d9cd8ed0ed05fefc2827 (diff) | |
UART changes: timeout in secs, write bytes, etc.
Diffstat (limited to 'py/stream.h')
| -rw-r--r-- | py/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/stream.h b/py/stream.h index 7b953138c..bcba4f234 100644 --- a/py/stream.h +++ b/py/stream.h @@ -70,6 +70,7 @@ typedef struct _mp_stream_p_t { mp_uint_t (*write)(mp_obj_t obj, const void *buf, mp_uint_t size, int *errcode); mp_uint_t (*ioctl)(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode); mp_uint_t is_text : 1; // default is bytes, set this for text stream + bool pyserial_compatibility: 1; // adjust API to match pyserial more closely } mp_stream_p_t; MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(mp_stream_read_obj); |
