2019-08-10 06:04:00 +01:00
|
|
|
#define MICROPY_HW_BOARD_NAME "Mini SAM M4"
|
|
|
|
#define MICROPY_HW_MCU_NAME "SAMD51G19A"
|
|
|
|
|
|
|
|
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
|
|
|
|
#define MICROPY_PY_BUILTINS_COMPLEX (0)
|
|
|
|
#define MICROPY_PY_MATH (0)
|
|
|
|
#define MICROPY_PY_CMATH (0)
|
2021-05-22 08:04:04 +01:00
|
|
|
|
|
|
|
// MicroPython configs
|
|
|
|
// samd_flash.c flash parameters
|
|
|
|
// Build a 128k Flash storage at top. 512k-128k=384k=0x60000
|
|
|
|
// 512*1024= 0x80000 minus 128*1024= 0x20000 = 0x60000
|
|
|
|
#define MICROPY_HW_FLASH_STORAGE_BASE (0x60000)
|
|
|
|
#define MICROPY_HW_FLASH_STORAGE_BYTES (0x1FFFF)
|
|
|
|
#define VFS_BLOCK_SIZE_BYTES (1536) //
|
|
|
|
|
|
|
|
#define CPU_FREQ (48000000) // For selecting Baud from clock.
|