Removed conflicting led usage from usb code.

This commit is contained in:
t-moe
2015-06-02 17:03:10 +02:00
parent 2521421bb4
commit 16bfdade78
2 changed files with 3 additions and 9 deletions

View File

@@ -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 :(
}

View File

@@ -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);
}