From 2566e386e56cb3bfaefdc7f1f94f5f34d05bcce7 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Fri, 25 Apr 2014 00:15:37 +0200 Subject: [PATCH] This function is now internal to driver. --- drivers/i2c.c | 3 ++- include/drivers/i2c.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c.c b/drivers/i2c.c index 02ba98b..41a2e71 100644 --- a/drivers/i2c.c +++ b/drivers/i2c.c @@ -453,9 +453,10 @@ static void i2c_clock_on(uint32_t i2c_clk_freq) i2c->clk_duty_low = (scl_clk - i2c->clk_duty_high); } +/* I2C Pins configuration */ extern struct pio i2c0_pins[]; -void set_i2c_pins(void) +static void set_i2c_pins(void) { int i = 0; /* Configure I2C pins */ diff --git a/include/drivers/i2c.h b/include/drivers/i2c.h index 17e809e..1782298 100644 --- a/include/drivers/i2c.h +++ b/include/drivers/i2c.h @@ -190,7 +190,6 @@ int i2c_write(const void *buf, size_t count, const void* ctrl_buf); /***************************************************************************** */ /* I2C Init */ /***************************************************************************** */ -void set_i2c_pins(void); void i2c_on(uint32_t i2c_clk_freq); void i2c_off(void); /* Allow system to propagate main clock */ -- 2.43.0