Removed conflicting led usage from usb code.
This commit is contained in:
@@ -32,12 +32,10 @@ bool ll_system_init(void)
|
|||||||
/* Initialize LEDS */
|
/* Initialize LEDS */
|
||||||
STM_EVAL_LEDInit(LED3);
|
STM_EVAL_LEDInit(LED3);
|
||||||
STM_EVAL_LEDInit(LED4);
|
STM_EVAL_LEDInit(LED4);
|
||||||
STM_EVAL_LEDInit(LED5);
|
//LED5 and LED6 can not be used because of pin conflict. See docu
|
||||||
STM_EVAL_LEDInit(LED6);
|
|
||||||
STM_EVAL_PBInit(BUTTON_USER, BUTTON_MODE_GPIO);
|
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 */
|
/* SysTick end of count event each 1ms */
|
||||||
RCC_GetClocksFreq(&RCC_Clocks); //we run at 168mhz :)
|
RCC_GetClocksFreq(&RCC_Clocks); //we run at 168mhz :)
|
||||||
@@ -58,5 +56,5 @@ void ll_system_delay(uint32_t msec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ll_system_toggle_led() {
|
void ll_system_toggle_led() {
|
||||||
STM_EVAL_LEDToggle(LED6);
|
//no led's free :(
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,8 +52,6 @@ void USBH_USR_DeviceAttached(void)
|
|||||||
product_ok= false;
|
product_ok= false;
|
||||||
serial_ok=false;
|
serial_ok=false;
|
||||||
|
|
||||||
|
|
||||||
STM_EVAL_LEDOff(LED5);
|
|
||||||
STM_EVAL_LEDOff(LED3);
|
STM_EVAL_LEDOff(LED3);
|
||||||
STM_EVAL_LEDOn(LED4);
|
STM_EVAL_LEDOn(LED4);
|
||||||
}
|
}
|
||||||
@@ -75,8 +73,6 @@ void USBH_USR_UnrecoveredError (void)
|
|||||||
*/
|
*/
|
||||||
void USBH_USR_DeviceDisconnected (void)
|
void USBH_USR_DeviceDisconnected (void)
|
||||||
{
|
{
|
||||||
/* Red Led on if the USB Key is removed */
|
|
||||||
STM_EVAL_LEDOn(LED5);
|
|
||||||
STM_EVAL_LEDOff(LED4);
|
STM_EVAL_LEDOff(LED4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user