src: Rename source folders for atsam and atsamd architectures
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
This commit is contained in:
committed by
KevinOConnor
parent
432e6c490a
commit
6256599a6d
53
src/atsam/Kconfig
Normal file
53
src/atsam/Kconfig
Normal file
@@ -0,0 +1,53 @@
|
||||
# Kconfig settings for Atmel SAM processors
|
||||
|
||||
if MACH_ATSAM
|
||||
|
||||
config ATSAM_SELECT
|
||||
bool
|
||||
default y
|
||||
select HAVE_GPIO
|
||||
select HAVE_GPIO_ADC
|
||||
select HAVE_GPIO_I2C
|
||||
select HAVE_GPIO_SPI
|
||||
select HAVE_GPIO_BITBANGING
|
||||
|
||||
config BOARD_DIRECTORY
|
||||
string
|
||||
default "atsam"
|
||||
|
||||
choice
|
||||
prompt "Processor model"
|
||||
config MACH_SAM3X8E
|
||||
bool "SAM3x8e (Arduino Due)"
|
||||
config MACH_SAM4S8C
|
||||
bool "SAM4s8c (Duet Maestro)"
|
||||
config MACH_SAM4E8E
|
||||
bool "SAM4e8e (Duet Wifi/Eth)"
|
||||
endchoice
|
||||
|
||||
config MCU
|
||||
string
|
||||
default "sam3x8e" if MACH_SAM3X8E
|
||||
default "sam4s8c" if MACH_SAM4S8C
|
||||
default "sam4e8e" if MACH_SAM4E8E
|
||||
|
||||
config CLOCK_FREQ
|
||||
int
|
||||
default 42000000 if MACH_SAM3X8E # 84000000/2
|
||||
default 15000000 if MACH_SAM4S8C # 120000000/8
|
||||
default 60000000 if MACH_SAM4E8E # 120000000/2
|
||||
|
||||
config USBSERIAL
|
||||
depends on MACH_SAM4S8C || MACH_SAM4E8E
|
||||
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
|
||||
Reference in New Issue
Block a user