EFM32: Add USB build support

This commit is contained in:
Gregory Nutt 2014-11-04 06:47:14 -06:00
parent 5c64d09b02
commit e31947689d
4 changed files with 26 additions and 7 deletions

View File

@ -73,6 +73,7 @@ config EFM32_EFM32GG
select EFM32_HAVE_UART0
select EFM32_HAVE_UART1
select EFM32_HAVE_LEUART1
select EFM32_HAVE_USBFSOTG
menu "EFM32 Peripheral Support"
@ -95,6 +96,10 @@ config EFM32_HAVE_LEUART1
bool
default n
config EFM32_HAVE_USBFSOTG
bool
default n
# When there are multiple instances of a device, these "hidden" settings
# will automatically be selected and will represent the 'OR' of the
# instances selected.
@ -164,6 +169,11 @@ config EFM32_LEUART1
select ARCH_HAVE_OTHER_UART
select EFM32_LEUART
config EFM32_USBFSOTG
bool "USB Full-Speed OTG"
default n
depends on EFM32_HAVE_USBFSOTG && EXPERIMENTAL
endmenu # EFM32 Peripheral Support
config EFM32_GPIO_IRQ

View File

@ -126,3 +126,12 @@ endif
ifeq ($(CONFIG_EFM32_DMA),y)
CHIP_CSRCS += efm32_dma.c
endif
ifeq ($(CONFIG_EFM32_USBFSOTG),y)
ifeq ($(CONFIG_USBDEV),y)
CHIP_CSRCS += efm32_usbdev.c
endif
ifeq ($(CONFIG_USBHOST),y)
CHIP_CSRCS += efm32_usbhost.c
endif
endif

View File

@ -82,7 +82,7 @@
* Perform IDLE state power management.
*
* REVISIT: These power management hooks were taken with no modification
* from the STM32 implementation and need review against EFM32 reduced
* from the EFM32 implementation and need review against EFM32 reduced
* power modes.
*
****************************************************************************/

View File

@ -79,8 +79,8 @@ extern "C"
* Enter STOP mode.
*
* REVISIT: This power management interface was taken with no modification
* from the STM32 implementation and needs to be reviewed against EFM32
* reduced power modes. Comments here apply to the STM32!
* from the EFM32 implementation and needs to be reviewed against EFM32
* reduced power modes. Comments here apply to the EFM32!
*
* Input Parameters:
* lpds - true: To further reduce power consumption in Stop mode, put the
@ -104,8 +104,8 @@ int efm32_pmstop(bool lpds);
* Enter STANDBY mode.
*
* REVISIT: This power management interface was taken with no modification
* from the STM32 implementation and needs to be reviewed against EFM32
* reduced power modes. Comments here apply to the STM32!
* from the EFM32 implementation and needs to be reviewed against EFM32
* reduced power modes. Comments here apply to the EFM32!
*
* Input Parameters:
* None
@ -127,8 +127,8 @@ int efm32_pmstandby(void);
* Enter SLEEP mode.
*
* REVISIT: This power management interface was taken with no modification
* from the STM32 implementation and needs to be reviewed against EFM32
* reduced power modes. Comments here apply to the STM32!
* from the EFM32 implementation and needs to be reviewed against EFM32
* reduced power modes. Comments here apply to the EFM32!
*
* Input Parameters:
* sleeponexit - true: SLEEPONEXIT bit is set when the WFI instruction is