2014-10-18 00:43:52 +02:00
|
|
|
#
|
|
|
|
# arch/arm/src/efm32/Kconfig
|
|
|
|
#
|
|
|
|
|
|
|
|
if ARCH_CHIP_EFM32
|
|
|
|
|
|
|
|
comment "EFM32 Configuration Options"
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "EFM32 Chip Selection"
|
|
|
|
default ARCH_CHIP_EFM32TG840F32
|
|
|
|
|
|
|
|
config ARCH_CHIP_EFM32TG840F32
|
|
|
|
bool "EFM32TG840F32"
|
|
|
|
select EFM32_EFM32TG
|
|
|
|
select ARCH_CORTEXM3
|
|
|
|
---help---
|
|
|
|
This chip is a Tiny Gecko with 32 KB flash and 4 KB RAM in a QFN64
|
|
|
|
package
|
|
|
|
|
|
|
|
config ARCH_CHIP_EFM32G880F128
|
|
|
|
bool "EFM32G880F128"
|
|
|
|
select EFM32_EFM32G
|
|
|
|
select ARCH_CORTEXM3
|
|
|
|
---help---
|
|
|
|
This chip is a Gecko with 128KiB flash and 16KiB RAM in a LQFP100
|
|
|
|
package
|
|
|
|
|
|
|
|
config ARCH_CHIP_EFM32G890F128
|
|
|
|
bool "EFM32G890F128"
|
|
|
|
select EFM32_EFM32G
|
|
|
|
select ARCH_CORTEXM3
|
|
|
|
---help---
|
|
|
|
This chip is a Gecko with 128KiB flash and 16KiB RAM in a BGA112
|
|
|
|
package
|
|
|
|
|
|
|
|
config ARCH_CHIP_EFM32GG332F1024
|
|
|
|
bool "EFM32GG332F1024"
|
|
|
|
select EFM32_EFM32GG
|
|
|
|
select ARCH_CORTEXM3
|
|
|
|
---help---
|
|
|
|
This chip is a Giant Gecko with 1024KiB flash and 128KiB RAM in a
|
|
|
|
QFP64 package.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
# These hidden selections represent automatically selected MCU families and,
|
|
|
|
# in turn, select general capabilities of the MCU family
|
|
|
|
|
|
|
|
config EFM32_EFM32TG
|
2014-10-18 20:47:45 +02:00
|
|
|
bool
|
|
|
|
default n
|
2014-10-18 00:43:52 +02:00
|
|
|
|
|
|
|
config EFM32_EFM32G
|
2014-10-18 20:47:45 +02:00
|
|
|
bool
|
|
|
|
default n
|
2014-10-18 00:43:52 +02:00
|
|
|
select EFM32_HAVE_USART2
|
|
|
|
select EFM32_HAVE_UART0
|
|
|
|
select EFM32_HAVE_LEUART1
|
|
|
|
|
|
|
|
config EFM32_EFM32GG
|
2014-10-18 20:47:45 +02:00
|
|
|
bool
|
|
|
|
default n
|
2014-10-18 00:43:52 +02:00
|
|
|
select EFM32_HAVE_USART2
|
|
|
|
select EFM32_HAVE_UART0
|
|
|
|
select EFM32_HAVE_UART1
|
|
|
|
select EFM32_HAVE_LEUART1
|
|
|
|
|
|
|
|
menu "EFM32 Peripheral Support"
|
|
|
|
|
|
|
|
# These "hidden" settings determine is a peripheral option is available for
|
|
|
|
# the selection MCU
|
|
|
|
|
|
|
|
config EFM32_HAVE_USART2
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config EFM32_HAVE_UART0
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config EFM32_HAVE_UART1
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config EFM32_HAVE_LEUART1
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
# When there are multiple instances of a device, these "hidden" settings
|
2014-10-21 16:48:38 +02:00
|
|
|
# will automatically be selected and will represent the 'OR' of the
|
2014-10-18 00:43:52 +02:00
|
|
|
# instances selected.
|
|
|
|
|
2014-10-21 16:48:38 +02:00
|
|
|
config EFM32_USART
|
|
|
|
bool
|
|
|
|
default n
|
2014-10-18 00:43:52 +02:00
|
|
|
|
|
|
|
config EFM32_UART
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2014-10-21 16:48:38 +02:00
|
|
|
config EFM32_LEUART
|
|
|
|
bool
|
|
|
|
default n
|
2014-10-21 19:38:51 +02:00
|
|
|
select MCU_SERIAL
|
2014-10-21 16:48:38 +02:00
|
|
|
|
2014-10-18 00:43:52 +02:00
|
|
|
# Then, these are the actual, selectable peripheral options
|
|
|
|
|
2014-10-18 20:47:45 +02:00
|
|
|
config EFM32_USART0
|
2014-10-18 00:43:52 +02:00
|
|
|
bool "USART0"
|
|
|
|
default n
|
|
|
|
select ARCH_HAVE_USART0
|
2014-10-21 16:48:38 +02:00
|
|
|
select EFM32_USART
|
2014-10-18 00:43:52 +02:00
|
|
|
|
2014-10-18 20:47:45 +02:00
|
|
|
config EFM32_USART1
|
2014-10-18 00:43:52 +02:00
|
|
|
bool "USART1"
|
|
|
|
default n
|
|
|
|
select ARCH_HAVE_USART1
|
2014-10-21 16:48:38 +02:00
|
|
|
select EFM32_USART
|
2014-10-18 00:43:52 +02:00
|
|
|
|
2014-10-18 20:47:45 +02:00
|
|
|
config EFM32_USART2
|
2014-10-18 00:43:52 +02:00
|
|
|
bool "USART2"
|
|
|
|
default n
|
|
|
|
depends on EFM32_HAVE_USART2
|
|
|
|
select ARCH_HAVE_USART2
|
2014-10-21 16:48:38 +02:00
|
|
|
select EFM32_USART
|
2014-10-18 00:43:52 +02:00
|
|
|
|
|
|
|
config EFM32_UART0
|
|
|
|
bool "UART0"
|
|
|
|
default n
|
|
|
|
select ARCH_HAVE_UART0
|
|
|
|
select EFM32_UART
|
|
|
|
|
|
|
|
config EFM32_UART1
|
|
|
|
bool "UART1"
|
|
|
|
default n
|
|
|
|
select ARCH_HAVE_UART1
|
|
|
|
select EFM32_UART
|
|
|
|
|
|
|
|
config EFM32_LEUART0
|
|
|
|
bool "Low energy UART0"
|
|
|
|
default n
|
2014-10-21 19:38:51 +02:00
|
|
|
select ARCH_HAVE_OTHER_UART
|
2014-10-21 16:48:38 +02:00
|
|
|
select EFM32_LEUART
|
2014-10-18 00:43:52 +02:00
|
|
|
|
|
|
|
config EFM32_LEUART1
|
|
|
|
bool "Low energy UART1"
|
|
|
|
default n
|
2014-10-21 19:38:51 +02:00
|
|
|
depends on EFM32_HAVE_LEUART1
|
|
|
|
select ARCH_HAVE_OTHER_UART
|
2014-10-21 16:48:38 +02:00
|
|
|
select EFM32_LEUART
|
2014-10-18 00:43:52 +02:00
|
|
|
|
2014-10-18 20:47:45 +02:00
|
|
|
endmenu # EFM32 Peripheral Support
|
2014-10-19 02:40:08 +02:00
|
|
|
|
|
|
|
config EFM32_GPIO_IRQ
|
|
|
|
bool "GPIO pin interrupts"
|
|
|
|
---help---
|
|
|
|
Enable support for interrupting GPIO pins
|
|
|
|
|
2014-10-23 16:25:37 +02:00
|
|
|
choice
|
|
|
|
prompt "USART0 Mode"
|
|
|
|
default EFM32_USART0_ISUART
|
|
|
|
depends on EFM32_USART0
|
|
|
|
|
|
|
|
config EFM32_USART0_ISUART
|
|
|
|
bool "USART0 is a UART"
|
|
|
|
select USART0_ISUART
|
|
|
|
|
|
|
|
config EFM32_USART0_ISSPI
|
|
|
|
bool "USART0 is SPI"
|
|
|
|
|
|
|
|
endchoice # USART0 Mode
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "USART1 Mode"
|
|
|
|
default EFM32_USART1_ISUART
|
|
|
|
depends on EFM32_USART1
|
|
|
|
|
|
|
|
config EFM32_USART1_ISUART
|
|
|
|
bool "USART1 is a UART"
|
|
|
|
select USART1_ISUART
|
|
|
|
|
|
|
|
config EFM32_USART1_ISSPI
|
|
|
|
bool "USART1 is SPI"
|
|
|
|
|
|
|
|
endchoice # USART1 Mode
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "USART2 Mode"
|
|
|
|
default EFM32_USART2_ISUART
|
|
|
|
depends on EFM32_USART2
|
|
|
|
|
|
|
|
config EFM32_USART2_ISUART
|
|
|
|
bool "USART2 is a UART"
|
|
|
|
select USART2_ISUART
|
|
|
|
|
|
|
|
config EFM32_USART2_ISSPI
|
|
|
|
bool "USART2 is SPI"
|
|
|
|
|
|
|
|
endchoice # USART2 Mode
|
|
|
|
|
2014-10-21 17:37:02 +02:00
|
|
|
choice
|
|
|
|
prompt "LEUART Serial Console"
|
|
|
|
default NO_LEUART_SERIAL_CONSOLE
|
|
|
|
depends on DEV_CONSOLE && EFM32_LEUART
|
|
|
|
|
|
|
|
config LEUART0_SERIAL_CONSOLE
|
|
|
|
bool "Use LEUART0 as the serial console"
|
|
|
|
depends on EFM32_LEUART0
|
|
|
|
select OTHER_SERIAL_CONSOLE
|
|
|
|
---help---
|
|
|
|
Use the LEUART0 device as the serial console
|
|
|
|
|
|
|
|
config LEUART1_SERIAL_CONSOLE
|
|
|
|
bool "Use LEUART1 as the serial console"
|
|
|
|
depends on EFM32_LEUART1
|
|
|
|
select OTHER_SERIAL_CONSOLE
|
|
|
|
---help---
|
|
|
|
Use the LEUART0 device as the serial console
|
|
|
|
|
|
|
|
config NO_LEUART_SERIAL_CONSOLE
|
2014-10-21 19:38:51 +02:00
|
|
|
bool "No LEUART serial console"
|
2014-10-21 17:37:02 +02:00
|
|
|
---help---
|
|
|
|
No serial console OR some other serial device provides the serial console
|
|
|
|
|
|
|
|
endchoice # LEUART Serial Console
|
|
|
|
|
|
|
|
menu "LEUART0 Configuration"
|
|
|
|
depends on EFM32_LEUART0
|
|
|
|
|
|
|
|
config LEUART0_RXBUFSIZE
|
|
|
|
int "Receive buffer size"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Characters are buffered as they are received. This specifies
|
|
|
|
the size of the receive buffer.
|
|
|
|
|
|
|
|
config LEUART0_TXBUFSIZE
|
|
|
|
int "Transmit buffer size"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Characters are buffered before being sent. This specifies
|
|
|
|
the size of the transmit buffer.
|
|
|
|
|
|
|
|
config LEUART0_BAUD
|
|
|
|
int "BAUD rate"
|
|
|
|
default 2400
|
|
|
|
---help---
|
|
|
|
The configured BAUD of the UART.
|
|
|
|
|
|
|
|
config LEUART0_BITS
|
|
|
|
int "Character size"
|
|
|
|
default 8
|
|
|
|
range 8 9
|
|
|
|
---help---
|
|
|
|
The number of bits. Must be either 8 or 9.
|
|
|
|
|
|
|
|
config LEUART0_PARITY
|
|
|
|
int "Parity setting"
|
|
|
|
range 0 2
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
0=no parity, 1=odd parity, 2=even parity
|
|
|
|
|
|
|
|
config LEUART0_2STOP
|
|
|
|
int "use 2 stop bits"
|
|
|
|
default 0
|
|
|
|
range 0 1
|
|
|
|
---help---
|
|
|
|
1=Two stop bits
|
|
|
|
|
|
|
|
endmenu # LEUART0 Configuration
|
|
|
|
|
|
|
|
menu "LEUART1 Configuration"
|
|
|
|
depends on EFM32_LEUART1
|
|
|
|
|
|
|
|
config LEUART1_RXBUFSIZE
|
|
|
|
int "Receive buffer size"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Characters are buffered as they are received. This specifies
|
|
|
|
the size of the receive buffer.
|
|
|
|
|
|
|
|
config LEUART1_TXBUFSIZE
|
|
|
|
int "Transmit buffer size"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Characters are buffered before being sent. This specifies
|
|
|
|
the size of the transmit buffer.
|
|
|
|
|
|
|
|
config LEUART1_BAUD
|
|
|
|
int "BAUD rate"
|
|
|
|
default 2400
|
|
|
|
---help---
|
|
|
|
The configured BAUD of the UART.
|
|
|
|
|
|
|
|
config LEUART1_BITS
|
|
|
|
int "Character size"
|
|
|
|
default 8
|
|
|
|
range 8 9
|
|
|
|
---help---
|
|
|
|
The number of bits. Must be either 8 or 9.
|
|
|
|
|
|
|
|
config LEUART1_PARITY
|
|
|
|
int "Parity setting"
|
|
|
|
range 0 2
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
0=no parity, 1=odd parity, 2=even parity
|
|
|
|
|
|
|
|
config LEUART1_2STOP
|
|
|
|
int "use 2 stop bits"
|
|
|
|
default 0
|
|
|
|
range 0 1
|
|
|
|
---help---
|
|
|
|
1=Two stop bits
|
|
|
|
|
|
|
|
endmenu # LEUART1 Configuration
|
|
|
|
|
2014-10-18 20:47:45 +02:00
|
|
|
endif # ARCH_CHIP_EFM32
|