8000 atmel-samd21: Support loading mpy files. · sparkfun/circuitpython@ed34c35 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed34c35

Browse files
committed
atmel-samd21: Support loading mpy files.
1 parent b1be9f5 commit ed34c35

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

atmel-samd/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
#define MICROPY_PY_SYS_STDFILES (1)
7979
#define MICROPY_PY_IO_FILEIO (1)
8080
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
81+
#define MICROPY_PERSISTENT_CODE_LOAD (1)
82+
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
8183

8284
// type definitions for the specific machine
8385

py/emitglue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ mp_raw_code_t *mp_raw_code_load_file(const char *filename) {
425425
return rc;
426426
}
427427

428-
#elif defined(__thumb2__)
428+
#elif defined(__thumb2__) || defined(__thumb__)
429429
// fatfs file reader (assume thumb2 arch uses fatfs...)
430430

431431
#include "lib/fatfs/ff.h"

0 commit comments

Comments
 (0)
0