summaryrefslogtreecommitdiff
path: root/nuttx/arch/avr/src/at32uc3/Kconfig
blob: 419178238913116bb33747bb5df32cbd2e14843c (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#

if ARCH_CHIP_AT32UC3
comment "AT32U3 Configuration Options"

choice
	prompt "AT32U3 Processor Selection"
	default ARCH_CHIP_AT32UC3B0256

config ARCH_CHIP_AT32UC3B064
	bool "AT32UC3B064"
	select ARCH_CHIP_AT32UC3B
	select ARCH_CHIP_AT32UC3B0

config ARCH_CHIP_AT32UC3B0128
	bool "AT32UC3B0128"
	select ARCH_CHIP_AT32UC3B
	select ARCH_CHIP_AT32UC3B0

config ARCH_CHIP_AT32UC3B0256
	bool "AT32UC3B0256"
	select ARCH_CHIP_AT32UC3B
	select ARCH_CHIP_AT32UC3B0

config ARCH_CHIP_AT32UC3B0512
	bool "AT32UC3B0512"
	select ARCH_CHIP_AT32UC3B
	select ARCH_CHIP_AT32UC3B0

config ARCH_CHIP_AT32UC3B164
	bool "AT32UC3B164"
	select ARCH_CHIP_AT32UC3B
	select ARCH_CHIP_AT32UC3B1

config ARCH_CHIP_AT32UC3B1128
	bool "AT32UC3B1128"
	select ARCH_CHIP_AT32UC3B
	select ARCH_CHIP_AT32UC3B1

config ARCH_CHIP_AT32UC3B1256
	bool "AT32UC3B1256"
	select ARCH_CHIP_AT32UC3B
	select ARCH_CHIP_AT32UC3B1

config ARCH_CHIP_AT32UC3B1512
	bool "AT32UC3B1512"
	select ARCH_CHIP_AT32UC3B
	select ARCH_CHIP_AT32UC3B1

endchoice # AT32U3 Processor Selection

config ARCH_CHIP_AT32UC3A
	bool
	default n

config ARCH_CHIP_AT32UC3B
	bool
	default n

config ARCH_CHIP_AT32UC3B0
	bool
	default n

config ARCH_CHIP_AT32UC3B1
	bool
	default n

menu "AT32U3 Peripheral Selections"

config AVR32_USART0
	bool "USART0"
	default n
	select ARCH_HAVE_USART0

config AVR32_USART1
	bool "USART1"
	default n
	select ARCH_HAVE_USART1

config AVR32_USART2
	bool "USART2"
	default n
	depends on ARCH_CHIP_AT32UC3B0
	select ARCH_HAVE_USART2

endmenu # AT32U3 Peripheral Selections

if AVR32_USART0

choice
	prompt "USART0 Function"
	default AVR32_USART0_RS232

config AVR32_USART0_IRDA
	bool "USART0 is IRDA"

config AVR32_USART0_ISO786
	bool "USART0 is ISO786"

config AVR32_USART0_MAN
	bool "USART0 is Manchester"

config AVR32_USART0_MODEM
	bool "USART0 is Modem"

config AVR32_USART0_RS232
	bool "USART0 is RS-232"
	select USART0_ISUART

config AVR32_USART0_RS485
	bool "USART0 is RS-485"

config AVR32_USART0_SPI
	bool "USART0 is SPI"
	select SPI

endchoice # USART0 Function
endif # AVR32_USART0

if AVR32_USART1

choice
	prompt "USART1 Function"
	default AVR32_USART1_RS232

config AVR32_USART1_IRDA
	bool "USART1 is IRDA"

config AVR32_USART1_ISO786
	bool "USART1 is ISO786"

config AVR32_USART1_MAN
	bool "USART1 is Manchester"

config AVR32_USART1_MODEM
	bool "USART1 is Modem"

config AVR32_USART1_RS232
	bool "USART1 is RS-232"
	select USART1_ISUART

config AVR32_USART1_RS485
	bool "USART1 is RS-485"

config AVR32_USART1_SPI
	bool "USART1 is SPI"
	select SPI

endchoice # USART1 Function
endif # AVR32_USART1

if AVR32_USART2

choice
	prompt "USART2 Function"
	default AVR32_USART2_RS232

config AVR32_USART2_IRDA
	bool "USART2 is IRDA"

config AVR32_USART2_ISO786
	bool "USART2 is ISO786"

config AVR32_USART2_MAN
	bool "USART2 is Manchester"

config AVR32_USART2_MODEM
	bool "USART2 is Modem"

config AVR32_USART2_RS232
	bool "USART2 is RS-232"
	select USART2_ISUART

config AVR32_USART2_RS485
	bool "USART2 is RS-485"

config AVR32_USART2_SPI
	bool "USART2 is SPI"
	select SPI

endchoice # USART2 Function
endif # AVR32_USART2

config AVR32_GPIOIRQ
	bool "GPIO IRQ support"
	default n

if AVR32_GPIOIRQ

config AVR32_GPIOIRQSETA
	hex "GPIO IRQ set A"
	default 0x0

config AVR32_GPIOIRQSETB
	hex "GPIO IRQ set B"
	default 0x0

endif # AVR32_GPIOIRQ
endif # ARCH_CHIP_AT32UC3