From 62556f44e90cb83039dc0c8eae49c60a25e05a21 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 2 Oct 2014 16:34:45 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7351 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F3xx/hal_lld.c | 2 ++ os/hal/ports/STM32/STM32F3xx/stm32_registry.h | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'os/hal') diff --git a/os/hal/ports/STM32/STM32F3xx/hal_lld.c b/os/hal/ports/STM32/STM32F3xx/hal_lld.c index cfa538e2e..9c02300dc 100644 --- a/os/hal/ports/STM32/STM32F3xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32F3xx/hal_lld.c @@ -122,8 +122,10 @@ void hal_lld_init(void) { among multiple drivers.*/ rccEnableAPB2(RCC_APB2ENR_SYSCFGEN, TRUE); +#if STM32_HAS_USB /* USB IRQ relocated to not conflict with CAN.*/ SYSCFG->CFGR1 |= SYSCFG_CFGR1_USB_IT_RMP; +#endif } /** diff --git a/os/hal/ports/STM32/STM32F3xx/stm32_registry.h b/os/hal/ports/STM32/STM32F3xx/stm32_registry.h index 1a576e5dd..1336a6ed8 100644 --- a/os/hal/ports/STM32/STM32F3xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F3xx/stm32_registry.h @@ -1287,11 +1287,10 @@ #define STM32_HAS_OTG2 FALSE #endif /* defined(STM32F358xC) */ - /*===========================================================================*/ /* STM32F334xC. */ /*===========================================================================*/ -#if defined(STM32F334xC) || defined(__DOXYGEN__) +#if defined(STM32F334x8) || defined(__DOXYGEN__) /* ADC attributes.*/ #define STM32_HAS_ADC1 TRUE #define STM32_HAS_ADC2 TRUE @@ -1435,7 +1434,7 @@ #define STM32_HAS_USB FALSE #define STM32_HAS_OTG1 FALSE #define STM32_HAS_OTG2 FALSE -#endif /* defined(STM32F334xC) */ +#endif /* defined(STM32F334x8) */ /** @} */ -- cgit v1.2.3