2016-11-14 17:22:56 -08:00
|
|
|
#define USB_REPL
|
|
|
|
|
2017-03-27 19:44:45 +01:00
|
|
|
#define MICROPY_HW_BOARD_NAME "Adafruit Feather M0 Express"
|
2016-11-14 17:22:56 -08:00
|
|
|
#define MICROPY_HW_MCU_NAME "samd21g18"
|
|
|
|
|
2017-04-12 15:24:50 -07:00
|
|
|
#define MICROPY_HW_NEOPIXEL (&pin_PA06)
|
2016-11-14 17:22:56 -08:00
|
|
|
|
2017-05-02 15:25:06 -07:00
|
|
|
// Salae reads 12mhz which is the limit even though we set it to the safer 8mhz.
|
|
|
|
#define SPI_FLASH_BAUDRATE (8000000)
|
2016-11-14 17:22:56 -08:00
|
|
|
|
2017-02-02 12:12:05 -08:00
|
|
|
#define SPI_FLASH_MUX_SETTING SPI_SIGNAL_MUX_SETTING_C
|
|
|
|
#define SPI_FLASH_PAD0_PINMUX PINMUX_PA08D_SERCOM2_PAD0 // MOSI
|
2016-11-14 17:22:56 -08:00
|
|
|
// Use default pinmux for the chip select since we manage it ourselves.
|
2017-02-02 12:12:05 -08:00
|
|
|
#define SPI_FLASH_PAD1_PINMUX PINMUX_PA09D_SERCOM2_PAD1 // SCK
|
|
|
|
#define SPI_FLASH_PAD2_PINMUX PINMUX_PA14C_SERCOM2_PAD2 // MISO
|
2017-05-03 10:50:29 -07:00
|
|
|
#define SPI_FLASH_PAD3_PINMUX PINMUX_UNUSED // SCK
|
2017-02-02 12:12:05 -08:00
|
|
|
#define SPI_FLASH_SERCOM SERCOM2
|
|
|
|
|
2016-11-14 17:22:56 -08:00
|
|
|
#define SPI_FLASH_CS PIN_PA13
|
|
|
|
|
2017-02-02 12:12:05 -08:00
|
|
|
#define MICROPY_PORT_A (PORT_PA06 | PORT_PA08 | PORT_PA09 | PORT_PA14 | PORT_PA13 | PORT_PA14 | PORT_PA24 | PORT_PA25)
|
|
|
|
#define MICROPY_PORT_B ( 0 )
|
2016-12-06 10:31:38 -08:00
|
|
|
|
2016-11-29 14:29:33 -08:00
|
|
|
#include "spi_flash.h"
|
2016-12-01 13:46:44 -08:00
|
|
|
|
|
|
|
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000)
|
2017-05-12 14:47:39 -07:00
|
|
|
|
|
|
|
#include "flash_S25FL216K.h"
|