atmel-samd21: Support loading mpy files.

This commit is contained in:
Scott Shawcroft 2016-09-26 15:43:52 -07:00
parent b1be9f50ab
commit ed34c35509
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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"