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:
@@ -27,8 +27,8 @@ serial_init(void)
|
||||
LPC_UART0->FCR = 0x01;
|
||||
|
||||
// Setup pins
|
||||
gpio_peripheral(0, 2, 1, 0);
|
||||
gpio_peripheral(0, 3, 1, 0);
|
||||
gpio_peripheral(GPIO(0, 2), 1, 0);
|
||||
gpio_peripheral(GPIO(0, 3), 1, 0);
|
||||
|
||||
// Enable receive irq
|
||||
NVIC_SetPriority(UART0_IRQn, 0);
|
||||
|
||||
Reference in New Issue
Block a user