diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-01-04 10:58:50 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-04 11:00:09 -0500 |
commit | a40df4b6f7913271be3dcfac79ba05e5bb13ec27 (patch) | |
tree | 2fed875b3401ca9790282eff691194c9628ccf3c /src/lpc176x/i2c.c | |
parent | 8f7fc4e6a9ed6b5df39ede47c2accea000db86f9 (diff) | |
download | kutter-a40df4b6f7913271be3dcfac79ba05e5bb13ec27.tar.gz kutter-a40df4b6f7913271be3dcfac79ba05e5bb13ec27.tar.xz kutter-a40df4b6f7913271be3dcfac79ba05e5bb13ec27.zip |
lpc176x: Move enable_peripheral_clock to main.c
Move and rename function to enable_pclock() - 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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc176x/i2c.c b/src/lpc176x/i2c.c index 58761aba..cc45ad14 100644 --- a/src/lpc176x/i2c.c +++ b/src/lpc176x/i2c.c @@ -29,7 +29,7 @@ i2c_init(void) gpio_peripheral(0, 1, 3, 0); // Set 100Khz frequency - enable_peripheral_clock(PCLK_I2C1); + enable_pclock(PCLK_I2C1); uint32_t pclk = SystemCoreClock, pulse = pclk / (100000 * 2); LPC_I2C1->I2SCLL = pulse; LPC_I2C1->I2SCLH = pulse; |