altos/lpc: HAS_USB_CONNECT has been changed to mean a custom pin
[fw/altos] / src / lpc / ao_usb_lpc.c
index d02ccdd6a5cbe06ab4ab74f951765b9e66dd0f73..12f5d8e6973013c5c5113bbe9d50a97d509d9fd3 100644 (file)
@@ -109,7 +109,7 @@ static uint8_t      ao_usb_in_pending;
  * but not pulled to the shadow buffer.
  */
 static uint8_t ao_usb_out_avail;
-static uint8_t ao_usb_running;
+uint8_t                ao_usb_running;
 static uint8_t ao_usb_configuration;
 
 #define AO_USB_EP0_GOT_RESET   1
@@ -875,7 +875,7 @@ ao_usb_enable(void)
        int     t;
 
        /* Enable USB pins */
-#if HAS_USB_CONNECT
+#if HAS_LPC_USB_CONNECT
        lpc_ioconf.pio0_6 = ((LPC_IOCONF_FUNC_USB_CONNECT << LPC_IOCONF_FUNC) |
                             (LPC_IOCONF_MODE_INACTIVE << LPC_IOCONF_MODE) |
                             (0 << LPC_IOCONF_HYS) |