aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpc176x/usbserial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpc176x/usbserial.c')
-rw-r--r--src/lpc176x/usbserial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lpc176x/usbserial.c b/src/lpc176x/usbserial.c
index 041c2da4..677aa013 100644
--- a/src/lpc176x/usbserial.c
+++ b/src/lpc176x/usbserial.c
@@ -257,9 +257,9 @@ usbserial_init(void)
while (LPC_USB->USBClkSt != 0x12)
;
// configure USBD+, USBD-, and USB Connect pins
- gpio_peripheral(0, 29, 1, 0);
- gpio_peripheral(0, 30, 1, 0);
- gpio_peripheral(2, 9, 1, 0);
+ gpio_peripheral(GPIO(0, 29), 1, 0);
+ gpio_peripheral(GPIO(0, 30), 1, 0);
+ gpio_peripheral(GPIO(2, 9), 1, 0);
// setup endpoints
realize_endpoint(EP0OUT, USB_CDC_EP0_SIZE);
realize_endpoint(EP0IN, USB_CDC_EP0_SIZE);