diff options
Diffstat (limited to 'src/atsamd/Kconfig')
-rw-r--r-- | src/atsamd/Kconfig | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/atsamd/Kconfig b/src/atsamd/Kconfig new file mode 100644 index 00000000..02e21b7b --- /dev/null +++ b/src/atsamd/Kconfig @@ -0,0 +1,57 @@ +# Kconfig settings for Atmel SAMD processors + +if MACH_ATSAMD + +config ATSAMD_SELECT + bool + default y + select HAVE_GPIO + select HAVE_GPIO_ADC + select HAVE_GPIO_I2C + select HAVE_GPIO_SPI + select HAVE_GPIO_HARD_PWM + select HAVE_GPIO_BITBANGING + +config BOARD_DIRECTORY + string + default "atsamd" + +choice + prompt "Processor model" + config MACH_SAMD21A + bool "SAMD21G18A (Arduino Zero)" +endchoice + +config CLOCK_FREQ + int + default 48000000 + +choice + prompt "Bootloader offset" + config FLASH_START_0000 + bool "No bootloader" + config FLASH_START_2000 + bool "8KiB bootloader (Arduino Zero)" + config FLASH_START_4000 + bool "16KiB bootloader (Arduino M0)" +endchoice + +config FLASH_START + hex + default 0x4000 if FLASH_START_4000 + default 0x2000 if FLASH_START_2000 + default 0x0000 + +config USBSERIAL + bool "Use USB for communication (instead of serial)" + default y +config SERIAL + depends on !USBSERIAL + bool + default y +config SERIAL_BAUD + depends on SERIAL + int "Baud rate for serial port" + default 250000 + +endif |