remove dead linux i2c code
haldean
4 years ago
133 | 133 | rc_disable_servo_power_rail(); |
134 | 134 | rc_cleanup(); |
135 | 135 | return 0; |
136 | ||
137 | /* | |
138 | i2c = open("/dev/i2c-0", O_RDWR); | |
139 | if (i2c < 0) | |
140 | { | |
141 | perror("couldn't open I2C interface"); | |
142 | return 1; | |
143 | } | |
144 | ||
145 | if (ioctl(i2c, I2C_SLAVE, addr) < 0) | |
146 | { | |
147 | perror("couldnt set I2C address"); | |
148 | return 1; | |
149 | } | |
150 | ||
151 | bzero(buf, sizeof(buf)); | |
152 | buf[0] = SIG_COUNT_VAL;; | |
153 | buf[1] = 0xFF; | |
154 | if (!register_write(i2c, buf, 2)) | |
155 | return 1; | |
156 | ||
157 | bzero(buf, sizeof(buf)); | |
158 | buf[0] = CONFIG; | |
159 | buf[1] = CONFIG_REF_FILTER | CONFIG_QUICK_TERM; | |
160 | if (!register_write(i2c, buf, 2)) | |
161 | return 1; | |
162 | */ | |
163 | 136 | } |