85afed569d
It was only partially working and will be rpelaced later by a full machine.UART class implementation.
13 lines
497 B
C
13 lines
497 B
C
#define MICROPY_HW_BOARD_NAME "Seeed Xiao"
|
|
#define MICROPY_HW_MCU_NAME "SAMD21G18A"
|
|
|
|
// MicroPython configs
|
|
// samd_flash.c flash parameters
|
|
// Build a 64k Flash storage at top. 256k-64k=196k
|
|
// 256*1024=262144 minus 64*1024=65536 = 196608 = 0x30000
|
|
#define MICROPY_HW_FLASH_STORAGE_BASE (0x30000)
|
|
#define MICROPY_HW_FLASH_STORAGE_BYTES (0xFFFF)
|
|
#define VFS_BLOCK_SIZE_BYTES (1536) // 24x 64B flash pages;
|
|
|
|
#define CPU_FREQ (48000000) // For selecting Baud from clock.
|