Skip to content

Commit d59c34b

Browse files
Fix compile error on static pinmap targets
1 parent 0c2ee4f commit d59c34b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

targets/TARGET_STM/stm_i2c_api.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ struct i2c_s {
8282
/// Specifies which events (the I2C_EVENT_xxx defines) can be passed up to the application from the IRQ handler
8383
uint8_t available_events;
8484
#endif
85+
86+
#if STATIC_PINMAP_READY
87+
int sda_func;
88+
int scl_func;
89+
#endif
8590
};
8691

8792
#endif

0 commit comments

Comments
 (0)