diff options
Diffstat (limited to 'testhal/STM32/STM32F0xx')
-rw-r--r-- | testhal/STM32/STM32F0xx/USB_CDC/.project | 2 | ||||
-rw-r--r-- | testhal/STM32/STM32F0xx/USB_CDC/main.c | 4 | ||||
-rw-r--r-- | testhal/STM32/STM32F0xx/USB_CDC/mcuconf.h | 2 |
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
|