Merged nuttx/nuttx into master

This commit is contained in:
Simon Piriou 2017-03-12 11:15:26 +01:00
commit 75c77a7e3b
5 changed files with 5 additions and 7 deletions

View File

@ -193,9 +193,7 @@ static inline void rcc_enableahb1(void)
#endif
#ifdef CONFIG_STM32_OTGHS
/* USB OTG HS */
#ifndef BOARD_DISABLE_USBOTG_HSULPI
#ifdef BOARD_ENABLE_USBOTG_HSULPI
/* Enable clocking for USB OTG HS and external PHY */
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);

View File

@ -215,7 +215,7 @@ static inline void rcc_enableahb1(void)
#endif
#ifdef CONFIG_STM32_OTGHS
#if 0 /* ifndef BOARD_DISABLE_USBOTG_HSULPI */
#ifdef BOARD_ENABLE_USBOTG_HSULPI
/* Enable clocking for USB OTG HS and external PHY */
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);

View File

@ -225,7 +225,7 @@ static inline void rcc_enableahb1(void)
#endif
#ifdef CONFIG_STM32F7_OTGHS
#if 0 /* ifndef BOARD_DISABLE_USBOTG_HSULPI */
#ifdef BOARD_ENABLE_USBOTG_HSULPI
/* Enable clocking for USB OTG HS and external PHY */
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);

View File

@ -221,7 +221,7 @@ static inline void rcc_enableahb1(void)
#endif
#ifdef CONFIG_STM32F7_OTGHS
#if 0 /* ifndef BOARD_DISABLE_USBOTG_HSULPI */
#ifdef BOARD_ENABLE_USBOTG_HSULPI
/* Enable clocking for USB OTG HS and external PHY */
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);

View File

@ -149,7 +149,7 @@
/* USB OTG HS definitions ***********************************************************/
/* Do not enable external PHY clock or OTG_HS module will not work */
#define BOARD_DISABLE_USBOTG_HSULPI 1
#undef BOARD_ENABLE_USBOTG_HSULPI
/* LED definitions ******************************************************************/