able to get connect status change interrupt occured

This commit is contained in:
hathach
2013-12-13 12:26:37 +07:00
parent 51b6c6ff41
commit 30c8f68930
7 changed files with 133 additions and 22 deletions
@@ -50,6 +50,7 @@ void board_init(void)
// Leds Init
GPIO_SetDir(CFG_LED_PORT, BIT_(CFG_LED_PIN), 1);
#if MODE_DEVICE_SUPPORTED
//------------- USB Device -------------//
// VBUS sense is wrongly connected to P0_5 (instead of P1_30). So we need to always pull P1_30 to high
// so that USB device block can work. However, Device Controller (thus tinyusb) cannot able to determine
@@ -58,6 +59,9 @@ void board_init(void)
.Portnum = 1, .Pinnum = 30,
.Funcnum = 2, .Pinmode = PINSEL_PINMODE_PULLUP} );
//P0_21 instead of P2_9 as USB connect
#endif
#if CFG_UART_ENABLE
//------------- UART init -------------//