Added BOARD_OTG_NOVBUSSENS option.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6576 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2013-12-23 08:46:10 +00:00
parent 2a11ace2be
commit 9d55b0877d
2 changed files with 6 additions and 3 deletions

View File

@ -773,7 +773,12 @@ void usb_lld_start(USBDriver *usbp) {
otgp->PCGCCTL = 0; otgp->PCGCCTL = 0;
/* Internal FS PHY activation.*/ /* Internal FS PHY activation.*/
#if defined(BOARD_OTG_NOVBUSSENS)
otgp->GCCFG = GCCFG_NOVBUSSENS | GCCFG_VBUSASEN | GCCFG_VBUSBSEN |
GCCFG_PWRDWN;
#else
otgp->GCCFG = GCCFG_VBUSASEN | GCCFG_VBUSBSEN | GCCFG_PWRDWN; otgp->GCCFG = GCCFG_VBUSASEN | GCCFG_VBUSBSEN | GCCFG_PWRDWN;
#endif
/* Soft core reset.*/ /* Soft core reset.*/
otg_core_reset(usbp); otg_core_reset(usbp);

View File

@ -818,9 +818,7 @@
#error "HSI not enabled, required by STM32_MCO1SEL" #error "HSI not enabled, required by STM32_MCO1SEL"
#endif #endif
#if (STM32_MCO2SEL == STM32_MCO2SEL_HSI) || \ #if (STM32_MCO2SEL == STM32_MCO2SEL_PLL) && (STM32_PLLSRC == STM32_PLLSRC_HSI)
((STM32_MCO2SEL == STM32_MCO2SEL_PLL) && \
(STM32_PLLSRC == STM32_PLLSRC_HSI))
#error "HSI not enabled, required by STM32_MCO2SEL" #error "HSI not enabled, required by STM32_MCO2SEL"
#endif #endif