aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F0xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-12-20 10:33:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-12-20 10:33:27 +0000
commit2e7aee242c1df1223b46abaaef063b0bbccd77e9 (patch)
treee5b307d89948e1826213acc8dd9d023b1201229f /testhal/STM32/STM32F0xx
parent372b97790c3992966043fcbf3f8e1955c6ab97ce (diff)
downloadChibiOS-2e7aee242c1df1223b46abaaef063b0bbccd77e9.tar.gz
ChibiOS-2e7aee242c1df1223b46abaaef063b0bbccd77e9.tar.bz2
ChibiOS-2e7aee242c1df1223b46abaaef063b0bbccd77e9.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7588 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F0xx')
-rw-r--r--testhal/STM32/STM32F0xx/USB_CDC/.project2
-rw-r--r--testhal/STM32/STM32F0xx/USB_CDC/main.c4
-rw-r--r--testhal/STM32/STM32F0xx/USB_CDC/mcuconf.h2
3 files changed, 5 insertions, 3 deletions
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 @@
<link>
<name>board</name>
<type>2</type>
- <locationURI>CHIBIOS/os/hal/boards/ST_STM32F3_DISCOVERY</locationURI>
+ <locationURI>CHIBIOS/os/hal/boards/ST_STM32F072B_DISCOVERY</locationURI>
</link>
<link>
<name>os</name>
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