Skip to content

Commit

Permalink
Fix compile error on static pinmap targets
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Dec 4, 2022
1 parent 0c2ee4f commit d59c34b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions targets/TARGET_STM/stm_i2c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ struct i2c_s {
/// Specifies which events (the I2C_EVENT_xxx defines) can be passed up to the application from the IRQ handler
uint8_t available_events;
#endif

#if STATIC_PINMAP_READY
int sda_func;
int scl_func;
#endif
};

#endif
Expand Down

0 comments on commit d59c34b

Please sign in to comment.