This function is now internal to driver.
authorNathael Pajani <nathael.pajani@ed3l.fr>
Thu, 24 Apr 2014 22:15:37 +0000 (00:15 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
drivers/i2c.c
include/drivers/i2c.h

index 02ba98b..41a2e71 100644 (file)
@@ -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 */
index 17e809e..1782298 100644 (file)
@@ -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 */