aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-07-03 12:02:03 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-07-03 12:02:03 -0700
commit76d2c28e4edf5716c1c16d8bddbfaa4b554af003 (patch)
tree9df76a600821cacfae39fdf7d5ee43a4503194d3
parenta4aa8b0ef73c0a75f6ec6a9247123d146ed01f78 (diff)
atmel-samd: Switch streams to non-blocking mode. Fixes #159.
-rw-r--r--atmel-samd/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/atmel-samd/mpconfigport.h b/atmel-samd/mpconfigport.h
index 926bff72b..341005795 100644
--- a/atmel-samd/mpconfigport.h
+++ b/atmel-samd/mpconfigport.h
@@ -60,6 +60,7 @@
#define MICROPY_CPYTHON_COMPAT (0)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
+#define MICROPY_STREAMS_NON_BLOCK (1)
// fatfs configuration used in ffconf.h
#define MICROPY_FATFS_ENABLE_LFN (1)