atmel-samd21: Support loading mpy files.
This commit is contained in:
parent
b1be9f50ab
commit
ed34c35509
@ -78,6 +78,8 @@
|
|||||||
#define MICROPY_PY_SYS_STDFILES (1)
|
#define MICROPY_PY_SYS_STDFILES (1)
|
||||||
#define MICROPY_PY_IO_FILEIO (1)
|
#define MICROPY_PY_IO_FILEIO (1)
|
||||||
#define MICROPY_PY_MICROPYTHON_MEM_INFO (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
|
// type definitions for the specific machine
|
||||||
|
|
||||||
|
@ -425,7 +425,7 @@ mp_raw_code_t *mp_raw_code_load_file(const char *filename) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(__thumb2__)
|
#elif defined(__thumb2__) || defined(__thumb__)
|
||||||
// fatfs file reader (assume thumb2 arch uses fatfs...)
|
// fatfs file reader (assume thumb2 arch uses fatfs...)
|
||||||
|
|
||||||
#include "lib/fatfs/ff.h"
|
#include "lib/fatfs/ff.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user