From 17995cff3b841f5609311d7b43ab059757af3625 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 22 Mar 2015 14:58:08 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7794 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F0xx/stm32_registry.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'os/hal') diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h index 72d5a303d..9867a908b 100644 --- a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h @@ -192,8 +192,7 @@ #define STM32_HAS_USART6 FALSE /* USB attributes.*/ -#if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || \ - defined(STM32F078xx) +#if defined(STM32F072xB) || defined(STM32F078xx) #define STM32_HAS_USB TRUE #define STM32_USB_ACCESS_SCHEME_2x16 TRUE #define STM32_USB_PMA_SIZE 768 @@ -327,7 +326,15 @@ #define STM32_HAS_USART6 FALSE /* USB attributes.*/ +/* USB attributes.*/ +#if defined(STM32F042x6) || defined(STM32F048xx) +#define STM32_HAS_USB TRUE +#define STM32_USB_ACCESS_SCHEME_2x16 TRUE +#define STM32_USB_PMA_SIZE 768 +#define STM32_USB_HAS_BCDR TRUE +#else #define STM32_HAS_USB FALSE +#endif #define STM32_HAS_OTG1 FALSE #define STM32_HAS_OTG2 FALSE -- cgit v1.2.3