Generate a pulse on the i2c clock pin. */
| 119 | #if 0 |
| 120 | /* Generate a pulse on the i2c clock pin. */ |
| 121 | static void generic_i2c_clock_pulse(unsigned int scl_pin) |
| 122 | { |
| 123 | rt_uint16_t i; |
| 124 | |
| 125 | if (scl_pin) { |
| 126 | /* Send high and low on the SCL line */ |
| 127 | for (i = 0; i < 9; i++) { |
| 128 | gpio_set_value(scl_pin, 0); |
| 129 | udelay(20); |
| 130 | gpio_set_value(scl_pin, 1); |
| 131 | udelay(20); |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | #endif |
| 136 | |
| 137 | /* This routine does i2c bus recovery as specified in the |
no test coverage detected