We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d668d48 commit 2b6e98bCopy full SHA for 2b6e98b
os/hal/ports/SN32/LLD/SN32F2xx/I2C/hal_i2c_lld.c
@@ -280,7 +280,7 @@ void i2c_lld_start(I2CDriver *i2cp) {
280
281
#if SN32_I2C_USE_I2C1 == TRUE
282
if (&I2CD1 == i2cp) {
283
- sys1EnableI2C0();
+ sys1EnableI2C1();
284
nvicClearPending(SN32_I2C1_GLOBAL_NUMBER);
285
nvicEnableVector(SN32_I2C1_GLOBAL_NUMBER, SN32_I2C_I2C1_IRQ_PRIORITY);
286
}
os/hal/ports/SN32/LLD/SN32F2xx/I2C/hal_i2c_lld.h
@@ -228,6 +228,10 @@ struct hal_i2c_driver {
228
extern I2CDriver I2CD0;
229
#endif
230
231
+#if (SN32_I2C_USE_I2C1 == TRUE) && !defined(__DOXYGEN__)
232
+extern I2CDriver I2CD1;
233
+#endif
234
+
235
#ifdef __cplusplus
236
extern "C" {
237
0 commit comments