main.c: Set green LED when USB is configured

This commit is contained in:
Christina Quast
2015-05-06 08:46:32 +02:00
parent 34d4eb3f5f
commit 9dbf1c90ac

View File

@@ -40,7 +40,7 @@ extern int main( void )
LED_Configure(LED_NUM_RED); LED_Configure(LED_NUM_RED);
LED_Configure(LED_NUM_GREEN); LED_Configure(LED_NUM_GREEN);
LED_Set(LED_NUM_GREEN); LED_Set(LED_NUM_RED);
/* Disable watchdog*/ /* Disable watchdog*/
WDT_Disable( WDT ) ; WDT_Disable( WDT ) ;
@@ -82,6 +82,8 @@ extern int main( void )
} }
else if (isUsbConnected == 0) { else if (isUsbConnected == 0) {
printf("USB is now configured\n\r"); printf("USB is now configured\n\r");
LED_Set(LED_NUM_GREEN);
LED_Clear(LED_NUM_RED);
isUsbConnected = 1; isUsbConnected = 1;
// TC_Start(TC0, 0); // TC_Start(TC0, 0);