summaryrefslogtreecommitdiffstats
path: root/nuttx/arch/arm/src/lpc43xx/Kconfig
blob: 68d705e3ef2f41293243926f6c03263ba9a1cb1f (plain)
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#

choice
	prompt "LPC43XX Chip Selection"
	default ARCH_CHIP_LPC4330FET100
	depends on ARCH_CHIP_LPC43XX

config ARCH_CHIP_LPC4310FBD144
	bool "LPC4310FBD144"

config ARCH_CHIP_LPC4310FET100
	bool "LPC4310FET100"

config ARCH_CHIP_LPC4320FBD144
	bool "LPC4320FBD144"

config ARCH_CHIP_LPC4320FET100
	bool "LPC4320FET100"

config ARCH_CHIP_LPC4330FBD144
	bool "LPC4330FBD144"

config ARCH_CHIP_LPC4330FET100
	bool "LPC4330FET100"

config ARCH_CHIP_LPC4330FET180
	bool "LPC4330FET180"

config ARCH_CHIP_LPC4330FET256
	bool "LPC4330FET256"

config ARCH_CHIP_LPC4350FBD208
	bool "LPC4350FBD208"

config ARCH_CHIP_LPC4350FET180
	bool "LPC4350FET180"

config ARCH_CHIP_LPC4350FET256
	bool "LPC4350FET256"

config ARCH_CHIP_LPC4353FBD208
	bool "LPC4353FBD208"

config ARCH_CHIP_LPC4353FET180
	bool "LPC4353FET180"

config ARCH_CHIP_LPC4353FET256
	bool "LPC4353FET256"

config ARCH_CHIP_LPC4357FET180
	bool "LPC4357FET180"

config ARCH_CHIP_LPC4357FBD208
	bool "LPC4357FBD208"

config ARCH_CHIP_LPC4357FET256
	bool "LPC4357FET256"

endchoice

config ARCH_FAMILY_LPC4310
	bool
	default y if ARCH_CHIP_LPC4310FBD144 || ARCH_CHIP_LPC4310FET100

config ARCH_FAMILY_LPC4320
	bool
	default y if ARCH_CHIP_LPC4320FBD144 || ARCH_CHIP_LPC4320FET100

config ARCH_FAMILY_LPC4330
	bool
	default y if ARCH_CHIP_LPC4330FBD144 || ARCH_CHIP_LPC4330FET100 || ARCH_CHIP_LPC4330FET180 || ARCH_CHIP_LPC4330FET256

config ARCH_FAMILY_LPC4350
	bool
	default y if ARCH_CHIP_LPC4350FBD208 || ARCH_CHIP_LPC4350FET180 || ARCH_CHIP_LPC4350FET256

config ARCH_FAMILY_LPC4353
	bool
	default y if ARCH_CHIP_LPC4353FBD208 || ARCH_CHIP_LPC4353FET180 || ARCH_CHIP_LPC4353FET256

config ARCH_FAMILY_LPC4357
	bool
	default y if ARCH_CHIP_LPC4357FET180 || ARCH_CHIP_LPC4357FBD208 || ARCH_CHIP_LPC4357FET256

config ARCH_CORTEXM3
	bool
	default n if !ARCH_CHIP_LPC43XX

config ARCH_CORTEXM4
	bool
	default y if ARCH_CHIP_LPC43XX

config ARCH_FPU
	bool "FPU support"
	default y
	depends on ARCH_CORTEXM4
	---help---
		Build in support for the ARM Cortex-M4 FPU.

choice
	prompt "LPC43XX Boot Configuration"
	default CONFIG_BOOT_SRAM
	depends on ARCH_CHIP_LPC43XX
	---help---
		The startup code needs to know if the code is running from internal FLASH,
		external FLASH, SPIFI, or SRAM in order to initialize properly.  Note that
		a boot device is not specified for cases where the code is copied into SRAM;
		those cases are all covered by BOOT_SRAM.

config BOOT_SRAM
	bool "Running from SRAM"

config BOOT_SPIFI
	bool "Running from QuadFLASH"

config BOOT_FLASHA
	bool "Running in internal FLASHA"

config BOOT_FLASHB
	bool "Running in internal FLASHA"

config BOOT_CS0FLASH
	bool "Running in external FLASH CS0"

config BOOT_CS1FLASH
	bool "Running in external FLASH CS1"

config BOOT_CS2FLASH
	bool "Running in external FLASH CS2"

config BOOT_CS3FLASH
	bool "Running in external FLASH CS3"

endchoice

menu "LPC43xx Peripheral Support"

config LPC43_ADC0
	bool "ADC0"
	default n

config LPC43_ADC1
	bool "ADC1"
	default n

config LPC43_ATIMER
	bool "Alarm timer"
	default n

config LPC43_CAN1
	bool "C_CAN1"
	default n

config LPC43_CAN2
	bool "C_CAN1"
	default n

config LPC43_DAC
	bool "DAC"
	default n

config LPC43_EMC
	bool "External Memory Controller (EMC)"
	default n

config LPC43_ETHERNET
	bool "Ethernet"
	default n

config LPC43_EVNTMNTR
	bool "Event Monitor"
	default n

config LPC43_GPDMA
	bool "GPDMA"
	default n

config LPC43_I2C0
	bool "I2C0"
	default n

config LPC43_I2C1
	bool "I2C1"
	default n

config LPC43_I2S0
	bool "I2S0"
	default n

config LPC43_I2S1
	bool "I2S1"
	default n

config LPC43_LCD
	bool "LCD"
	default n

config LPC43_MCPWM
	bool "Motor Control PWM (MCPWM)"
	default n

config LPC43_QEI
	bool "Quadrature Controller Interface (QEI)"
	default n

config LPC43_RIT
	bool "Repetitive Interrupt Timer (RIT)"
	default n

config LPC43_RTC
	bool "Real Time Clock (RTC)"
	default n

config LPC43_SCT
	bool "State Configurable Timer (SCT)"
	default n

config LPC43_SDMMC
	bool "SD/MMC"
	default n

config LPC43_SPI
	bool "SPI"
	default n

config LPC43_SPIFI
	bool "SPI Flash Interface (SPIFI)"
	default n

config LPC43_SSP0
	bool "SSP0"
	default n

config LPC43_SSP1
	bool "SSP1"
	default n

config LPC43_TMR0
	bool "ADC1"
	default n

config LPC43_TMR1
	bool "Timer 1"
	default n

config LPC43_TMR2
	bool "Timer 2"
	default n

config LPC43_TMR3
	bool "Timer 3"
	default n

config LPC43_USART0
	bool "USART0"
	default n

config LPC43_UART1
	bool "UART1"
	default n

config LPC43_USART2
	bool "USART2"
	default n

config LPC43_USART3
	bool "USART3"
	default n

config LPC43_USB0
	bool "USB0"
	default n

config LPC43_USB1
	bool "USB1"
	default n

config LPC43_USB1_ULPI
	bool "USB1 with ULPI"
	default n
	depends on LPC43_USB1

config LPC43_WWDT
	bool "Windowing Watchdog Timer (WWDT)"
	default n

endmenu

menu "USART0 Configuration"
	depends on LPC43_USART0

config USART0_SERIAL_CONSOLE
	bool "USART0 serial console"
	default y
	---help---
		Selects the USART0 for the console and ttys0 (default is the USART0).

config USART0_RXBUFSIZE
	int "USART0 Rx buffer size"
	default 256
	---help---
		Characters are buffered as received.  This specific the size of the receive
		buffer.

config USART0_TXBUFSIZE
	int "USART0 Tx buffer size"
	default 256
	---help---
		Characters are buffered before being sent.  This specific the size of the
		transmit buffer

config USART0_BAUD
	int "USART0 BAUD"
	default 11520
	---help---
		The configured BAUD of the UART

config USART0_BITS
	int "USART0 number of bits"
	default 8
	---help---
		The number of bits.  Must be either 7 or 8.

config USART0_PARITY
	int "USART0 parity"
	default 0
	---help---
		0=no parity, 1=odd parity, 2=even parity

config USART0_2STOP
	int "USART0 two stop bits"
	default 0
	---help---
		0=1 stop bit, 1=Two stop bits.  Default: 1 stop bit

endmenu

menu "UART1 Configuration"
	depends on LPC43_UART1

config UART1_SERIAL_CONSOLE
	bool "UART1 serial console"
	default y if !LPC43_USART0
	---help---
		Selects the UART1 for the console and ttys0 (default is the UART1).

config UART1_RXBUFSIZE
	int "UART1 Rx buffer size"
	default 256
	---help---
		Characters are buffered as received.  This specific the size of the receive
		buffer.

config UART1_TXBUFSIZE
	int "UART1 Tx buffer size"
	default 256
	---help---
		Characters are buffered before being sent.  This specific the size of the
		transmit buffer

config UART1_BAUD
	int "UART1 BAUD"
	default 11520
	---help---
		The configured BAUD of the UART

config UART1_BITS
	int "UART1 number of bits"
	default 8
	---help---
		The number of bits.  Must be either 7 or 8.

config UART1_PARITY
	int "UART1 parity"
	default 0
	---help---
		0=no parity, 1=odd parity, 2=even parity

config UART1_2STOP
	int "UART1 two stop bits"
	default 0
	---help---
		0=1 stop bit, 1=Two stop bits.  Default: 1 stop bit

endmenu

menu "USART2 Configuration"
	depends on LPC43_USART2

config USART2_SERIAL_CONSOLE
	bool "USART2 serial console"
	default y if !LPC43_USART0 && !LPC43_UART1
	---help---
		Selects the USART2 for the console and ttys0 (default is the USART2).

config USART2_RXBUFSIZE
	int "USART2 Rx buffer size"
	default 256
	---help---
		Characters are buffered as received.  This specific the size of the receive
		buffer.

config USART2_TXBUFSIZE
	int "USART2 Tx buffer size"
	default 256
	---help---
		Characters are buffered before being sent.  This specific the size of the
		transmit buffer

config USART2_BAUD
	int "USART2 BAUD"
	default 11520
	---help---
		The configured BAUD of the UART

config USART2_BITS
	int "USART2 number of bits"
	default 8
	---help---
		The number of bits.  Must be either 7 or 8.

config USART2_PARITY
	int "USART2 parity"
	default 0
	---help---
		0=no parity, 1=odd parity, 2=even parity

config USART2_2STOP
	int "USART2 two stop bits"
	default 0
	---help---
		0=1 stop bit, 1=Two stop bits.  Default: 1 stop bit

endmenu

menu "USART3 Configuration"
	depends on LPC43_USART3

config USART3_SERIAL_CONSOLE
	bool "USART3 serial console"
	default y if !LPC43_USART0 && !LPC43_UART1 && !LPC43_USART2
	---help---
		Selects the USART3 for the console and ttys0 (default is the USART3).

config USART3_RXBUFSIZE
	int "USART3 Rx buffer size"
	default 256
	---help---
		Characters are buffered as received.  This specific the size of the receive
		buffer.

config USART3_TXBUFSIZE
	int "USART3 Tx buffer size"
	default 256
	---help---
		Characters are buffered before being sent.  This specific the size of the
		transmit buffer

config USART3_BAUD
	int "USART3 BAUD"
	default 11520
	---help---
		The configured BAUD of the UART

config USART3_BITS
	int "USART3 number of bits"
	default 8
	---help---
		The number of bits.  Must be either 7 or 8.

config USART3_PARITY
	int "USART3 parity"
	default 0
	---help---
		0=no parity, 1=odd parity, 2=even parity

config USART3_2STOP
	int "USART3 two stop bits"
	default 0
	---help---
		0=1 stop bit, 1=Two stop bits.  Default: 1 stop bit

endmenu

config SERIAL_TERMIOS
	bool "Serial driver TERMIOS supported"
	depends on LPC43_USART0 || LPC43_UART1 || LPC43_USART2 || LPC43_USART3
	default n
	---help---
		Serial driver supports termios.h interfaces (tcsetattr, tcflush, etc.).
		If this is not defined, then the terminal settings (baud, parity, etc).
		are not configurable at runtime; serial streams cannot be flushed, etc..