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:
@@ -25,8 +25,8 @@ i2c_init(void)
|
||||
have_run_init = 1;
|
||||
|
||||
// Init i2c bus 1 pins
|
||||
gpio_peripheral(0, 0, 3, 0);
|
||||
gpio_peripheral(0, 1, 3, 0);
|
||||
gpio_peripheral(GPIO(0, 0), 3, 0);
|
||||
gpio_peripheral(GPIO(0, 1), 3, 0);
|
||||
|
||||
// Set 100Khz frequency
|
||||
enable_pclock(PCLK_I2C1);
|
||||
|
||||
Reference in New Issue
Block a user