summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@chickadee.tech>2016-09-26 15:43:52 -0700
committerScott Shawcroft <scott@chickadee.tech>2016-09-26 15:43:52 -0700
commited34c355095d32571116f3fff0b1bbc22ca819df (patch)
tree8c7568e04984596979ca23e0096b0ac3546cdd49
parentb1be9f50abfafc3139b307cd8e23e1505b9c84b5 (diff)
atmel-samd21: Support loading mpy files.
-rw-r--r--atmel-samd/mpconfigport.h2
-rw-r--r--py/emitglue.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/atmel-samd/mpconfigport.h b/atmel-samd/mpconfigport.h
index cbd514645..1f72477c7 100644
--- a/atmel-samd/mpconfigport.h
+++ b/atmel-samd/mpconfigport.h
@@ -78,6 +78,8 @@
#define MICROPY_PY_SYS_STDFILES (1)
#define MICROPY_PY_IO_FILEIO (1)
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
+#define MICROPY_PERSISTENT_CODE_LOAD (1)
+#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
// type definitions for the specific machine
diff --git a/py/emitglue.c b/py/emitglue.c
index f4b59df3e..2bfc4ad82 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -425,7 +425,7 @@ mp_raw_code_t *mp_raw_code_load_file(const char *filename) {
return rc;
}
-#elif defined(__thumb2__)
+#elif defined(__thumb2__) || defined(__thumb__)
// fatfs file reader (assume thumb2 arch uses fatfs...)
#include "lib/fatfs/ff.h"