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:
@@ -19,9 +19,9 @@ spi_init(void)
|
||||
have_run_init = 1;
|
||||
|
||||
// Configure SCK0, MISO0, MOSI0 pins
|
||||
gpio_peripheral(0, 15, 2, 0);
|
||||
gpio_peripheral(0, 17, 2, 0);
|
||||
gpio_peripheral(0, 18, 2, 0);
|
||||
gpio_peripheral(GPIO(0, 15), 2, 0);
|
||||
gpio_peripheral(GPIO(0, 17), 2, 0);
|
||||
gpio_peripheral(GPIO(0, 18), 2, 0);
|
||||
|
||||
// Setup clock
|
||||
enable_pclock(PCLK_SSP0);
|
||||
|
||||
Reference in New Issue
Block a user