lpc176x: Pass gpio id to gpio_peripheral()
Pass the gpio id instead of the bank/pin to gpio_peripheral(). This is in keeping with other ARM ports. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user