diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-01-04 11:07:22 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-04 11:07:22 -0500 |
commit | 277a8185e1550b55f634c40923db155771736063 (patch) | |
tree | 686ae298cb37118bcf0e72e611bf262943b8e9d6 /src/lpc176x/i2c.c | |
parent | a40df4b6f7913271be3dcfac79ba05e5bb13ec27 (diff) | |
download | kutter-277a8185e1550b55f634c40923db155771736063.tar.gz kutter-277a8185e1550b55f634c40923db155771736063.tar.xz kutter-277a8185e1550b55f634c40923db155771736063.zip |
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>
Diffstat (limited to 'src/lpc176x/i2c.c')
-rw-r--r-- | src/lpc176x/i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpc176x/i2c.c b/src/lpc176x/i2c.c index cc45ad14..bc367ba7 100644 --- a/src/lpc176x/i2c.c +++ b/src/lpc176x/i2c.c @@ -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); |