2019-01-13 04:14:50 +03:00
|
|
|
# Kconfig settings for Atmel SAM processors
|
2016-06-14 21:27:30 +03:00
|
|
|
|
2019-01-13 04:14:50 +03:00
|
|
|
if MACH_ATSAM
|
2016-06-14 21:27:30 +03:00
|
|
|
|
2019-01-13 04:14:50 +03:00
|
|
|
config ATSAM_SELECT
|
2016-12-23 22:49:52 +03:00
|
|
|
bool
|
|
|
|
default y
|
2017-07-20 06:59:35 +03:00
|
|
|
select HAVE_GPIO
|
2016-12-23 22:49:52 +03:00
|
|
|
select HAVE_GPIO_ADC
|
2018-12-27 03:54:52 +03:00
|
|
|
select HAVE_GPIO_I2C
|
2018-05-04 19:47:26 +03:00
|
|
|
select HAVE_GPIO_SPI
|
2018-08-27 18:09:47 +03:00
|
|
|
select HAVE_GPIO_BITBANGING
|
2016-12-23 22:49:52 +03:00
|
|
|
|
2016-06-14 21:27:30 +03:00
|
|
|
config BOARD_DIRECTORY
|
|
|
|
string
|
2019-01-13 04:14:50 +03:00
|
|
|
default "atsam"
|
2016-06-14 21:27:30 +03:00
|
|
|
|
2018-12-27 00:50:44 +03:00
|
|
|
choice
|
|
|
|
prompt "Processor model"
|
|
|
|
config MACH_SAM3X8E
|
|
|
|
bool "SAM3x8e (Arduino Due)"
|
2018-12-27 04:31:23 +03:00
|
|
|
config MACH_SAM4S8C
|
|
|
|
bool "SAM4s8c (Duet Maestro)"
|
2018-12-27 00:50:44 +03:00
|
|
|
config MACH_SAM4E8E
|
|
|
|
bool "SAM4e8e (Duet Wifi/Eth)"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config MCU
|
|
|
|
string
|
|
|
|
default "sam3x8e" if MACH_SAM3X8E
|
2018-12-27 04:31:23 +03:00
|
|
|
default "sam4s8c" if MACH_SAM4S8C
|
2018-12-27 00:50:44 +03:00
|
|
|
default "sam4e8e" if MACH_SAM4E8E
|
|
|
|
|
2016-06-14 21:27:30 +03:00
|
|
|
config CLOCK_FREQ
|
|
|
|
int
|
2018-12-27 00:50:44 +03:00
|
|
|
default 42000000 if MACH_SAM3X8E # 84000000/2
|
2018-12-27 04:31:23 +03:00
|
|
|
default 15000000 if MACH_SAM4S8C # 120000000/8
|
2018-12-27 00:50:44 +03:00
|
|
|
default 60000000 if MACH_SAM4E8E # 120000000/2
|
2016-06-14 21:27:30 +03:00
|
|
|
|
2018-12-30 01:09:35 +03:00
|
|
|
config USBSERIAL
|
|
|
|
depends on MACH_SAM4S8C || MACH_SAM4E8E
|
|
|
|
bool "Use USB for communication (instead of serial)"
|
|
|
|
default y
|
2016-06-14 21:27:30 +03:00
|
|
|
config SERIAL
|
2018-12-30 01:09:35 +03:00
|
|
|
depends on !USBSERIAL
|
2016-06-14 21:27:30 +03:00
|
|
|
bool
|
|
|
|
default y
|
|
|
|
config SERIAL_BAUD
|
|
|
|
depends on SERIAL
|
|
|
|
int "Baud rate for serial port"
|
|
|
|
default 250000
|
|
|
|
|
|
|
|
endif
|