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)"
|
2019-01-18 17:47:06 +03:00
|
|
|
select MACH_SAM3X
|
2019-01-18 18:07:57 +03:00
|
|
|
config MACH_SAM3X8C
|
|
|
|
bool "SAM3x8c (Printrboard G2)"
|
|
|
|
select MACH_SAM3X
|
2018-12-27 04:31:23 +03:00
|
|
|
config MACH_SAM4S8C
|
|
|
|
bool "SAM4s8c (Duet Maestro)"
|
2019-01-18 17:47:06 +03:00
|
|
|
select MACH_SAM4S
|
2018-12-27 00:50:44 +03:00
|
|
|
config MACH_SAM4E8E
|
|
|
|
bool "SAM4e8e (Duet Wifi/Eth)"
|
2019-01-18 17:47:06 +03:00
|
|
|
select MACH_SAM4E
|
2018-12-27 00:50:44 +03:00
|
|
|
endchoice
|
|
|
|
|
2019-01-18 17:47:06 +03:00
|
|
|
config MACH_SAM3X
|
|
|
|
bool
|
|
|
|
config MACH_SAM4
|
|
|
|
bool
|
|
|
|
config MACH_SAM4S
|
|
|
|
bool
|
|
|
|
select MACH_SAM4
|
|
|
|
config MACH_SAM4E
|
|
|
|
bool
|
|
|
|
select MACH_SAM4
|
|
|
|
|
2018-12-27 00:50:44 +03:00
|
|
|
config MCU
|
|
|
|
string
|
|
|
|
default "sam3x8e" if MACH_SAM3X8E
|
2019-01-18 18:07:57 +03:00
|
|
|
default "sam3x8c" if MACH_SAM3X8C
|
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
|
2019-01-18 17:47:06 +03:00
|
|
|
default 42000000 if MACH_SAM3X # 84000000/2
|
|
|
|
default 15000000 if MACH_SAM4S # 120000000/8
|
|
|
|
default 60000000 if MACH_SAM4E # 120000000/2
|
2016-06-14 21:27:30 +03:00
|
|
|
|
2018-12-30 01:09:35 +03:00
|
|
|
config USBSERIAL
|
|
|
|
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
|
|
|
|
|
|
|
|
endif
|