summaryrefslogtreecommitdiff
path: root/nuttx/configs/samd20-xplained/Kconfig
blob: badd668d3d0358ec1e53ef105359dc31e5e540ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#

if ARCH_BOARD_SAMD20_XPLAINED

menu "SAMD20 Xplained Pro Modules"

config SAMD20_XPLAINED_IOMODULE
	bool "I/O1 Module"
	default n
	---help---
		The I/O 1 module is attached.  This module provides an MMC/SD card
		slot.

if SAMD20_XPLAINED_IOMODULE

choice
	prompt "I/O1 Module Location"
	default SAMD20_XPLAINED_IOMODULE_EXT1

config SAMD20_XPLAINED_IOMODULE_EXT1
	bool "EXT1"

config SAMD20_XPLAINED_IOMODULE_EXT2
	bool "EXT2"

endchoice
endif

config SAMD20_XPLAINED_OLED1MODULE
	bool "OLED1 Module"
	default n
	---help---
		The OLED 1 module is attached.  This module provides an OLED plus 3
		additional switches and 3 additional LEDs.

if SAMD20_XPLAINED_OLED1MODULE

choice
	prompt "OLED1 Module Location"
	default SAMD20_XPLAINED_OLED1MODULE_EXT1

config SAMD20_XPLAINED_OLED1MODULE_EXT1
	bool "EXT1"

config SAMD20_XPLAINED_OLED1MODULE_EXT2
	bool "EXT2"

endchoice
endif
endmenu

if USART4_SERIAL_CONSOLE
choice
	prompt "USART 4 Connection"
	default SAMD20_XPLAINED_USART4_EXT3

config SAMD20_XPLAINED_USART4_EXT1
	bool "EXT1"
	depends on !SAMD20_XPLAINED_OLED1MODULE_EXT1 && !SAMD20_XPLAINED_IOMODULE_EXT1
	---help---
		Select this option if the serial console is on SERCOM4 connected via
		EXT1.  The RX will be on PB9 and TX signal will be on PB8.

config SAMD20_XPLAINED_USART4_EXT2
	bool "EXT2"
	depends on !SAMD20_XPLAINED_OLED1MODULE_EXT2 && !SAMD20_XPLAINED_IOMODULE_EXT2
	---help---
		Select this option if the serial console is on SERCOM4 connected via
		EXT2.  The RX will be on PB13 and TX signal will be on PB12.

config SAMD20_XPLAINED_USART4_EXT3
	bool "EXT3"
	---help---
		Select this option if the serial console is on SERCOM4 connect via
		EXT3.  The RX will be on PB11 and TX signal will be on PB10.

endchoice
endif
endif