From 16bfdade78e6e88cecde7c47d623dfa3a016b342 Mon Sep 17 00:00:00 2001 From: t-moe Date: Tue, 2 Jun 2015 17:03:10 +0200 Subject: [PATCH] Removed conflicting led usage from usb code. --- discovery/src/ll_system.c | 8 +++----- discovery/src/usbh_usr.c | 4 ---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/discovery/src/ll_system.c b/discovery/src/ll_system.c index 5858d64..3b93a6f 100644 --- a/discovery/src/ll_system.c +++ b/discovery/src/ll_system.c @@ -32,12 +32,10 @@ bool ll_system_init(void) /* Initialize LEDS */ STM_EVAL_LEDInit(LED3); STM_EVAL_LEDInit(LED4); - STM_EVAL_LEDInit(LED5); - STM_EVAL_LEDInit(LED6); + //LED5 and LED6 can not be used because of pin conflict. See docu + STM_EVAL_PBInit(BUTTON_USER, BUTTON_MODE_GPIO); - /* Blue Led On: start of application */ - STM_EVAL_LEDOn(LED6); /* SysTick end of count event each 1ms */ RCC_GetClocksFreq(&RCC_Clocks); //we run at 168mhz :) @@ -58,5 +56,5 @@ void ll_system_delay(uint32_t msec) { } void ll_system_toggle_led() { - STM_EVAL_LEDToggle(LED6); + //no led's free :( } diff --git a/discovery/src/usbh_usr.c b/discovery/src/usbh_usr.c index c0ed14c..1d8f8a3 100644 --- a/discovery/src/usbh_usr.c +++ b/discovery/src/usbh_usr.c @@ -52,8 +52,6 @@ void USBH_USR_DeviceAttached(void) product_ok= false; serial_ok=false; - - STM_EVAL_LEDOff(LED5); STM_EVAL_LEDOff(LED3); STM_EVAL_LEDOn(LED4); } @@ -75,8 +73,6 @@ void USBH_USR_UnrecoveredError (void) */ void USBH_USR_DeviceDisconnected (void) { - /* Red Led on if the USB Key is removed */ - STM_EVAL_LEDOn(LED5); STM_EVAL_LEDOff(LED4); }