From 2e7aee242c1df1223b46abaaef063b0bbccd77e9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 20 Dec 2014 10:33:27 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7588 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F0xx/USB_CDC/.project | 2 +- testhal/STM32/STM32F0xx/USB_CDC/main.c | 4 ++-- testhal/STM32/STM32F0xx/USB_CDC/mcuconf.h | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'testhal/STM32/STM32F0xx') diff --git a/testhal/STM32/STM32F0xx/USB_CDC/.project b/testhal/STM32/STM32F0xx/USB_CDC/.project index 393b7838d..f097b827b 100644 --- a/testhal/STM32/STM32F0xx/USB_CDC/.project +++ b/testhal/STM32/STM32F0xx/USB_CDC/.project @@ -27,7 +27,7 @@ board 2 - CHIBIOS/os/hal/boards/ST_STM32F3_DISCOVERY + CHIBIOS/os/hal/boards/ST_STM32F072B_DISCOVERY os diff --git a/testhal/STM32/STM32F0xx/USB_CDC/main.c b/testhal/STM32/STM32F0xx/USB_CDC/main.c index dc29d6855..f6f304cdc 100644 --- a/testhal/STM32/STM32F0xx/USB_CDC/main.c +++ b/testhal/STM32/STM32F0xx/USB_CDC/main.c @@ -451,9 +451,9 @@ static msg_t Thread1(void *arg) { chRegSetThreadName("blinker"); while (TRUE) { systime_t time = serusbcfg.usbp->state == USB_ACTIVE ? 250 : 500; - palClearPad(GPIOE, GPIOE_LED3_RED); + palClearPad(GPIOC, GPIOC_LED_RED); chThdSleepMilliseconds(time); - palSetPad(GPIOE, GPIOE_LED3_RED); + palSetPad(GPIOC, GPIOC_LED_RED); chThdSleepMilliseconds(time); } } diff --git a/testhal/STM32/STM32F0xx/USB_CDC/mcuconf.h b/testhal/STM32/STM32F0xx/USB_CDC/mcuconf.h index 482b6ba11..fc28e745e 100644 --- a/testhal/STM32/STM32F0xx/USB_CDC/mcuconf.h +++ b/testhal/STM32/STM32F0xx/USB_CDC/mcuconf.h @@ -38,6 +38,7 @@ #define STM32_PLS STM32_PLS_LEV0 #define STM32_HSI_ENABLED TRUE #define STM32_HSI14_ENABLED TRUE +#define STM32_HSI48_ENABLED FALSE #define STM32_LSI_ENABLED TRUE #define STM32_HSE_ENABLED FALSE #define STM32_LSE_ENABLED FALSE @@ -52,6 +53,7 @@ #define STM32_MCOSEL STM32_MCOSEL_NOCLOCK #define STM32_ADCPRE STM32_ADCPRE_DIV4 #define STM32_ADCSW STM32_ADCSW_HSI14 +#define STM32_USBSW STM32_USBSW_HSI48 #define STM32_CECSW STM32_CECSW_HSI #define STM32_I2C1SW STM32_I2C1SW_HSI #define STM32_USART1SW STM32_USART1SW_PCLK -- cgit v1.2.3