Skip to content

Fix compilation of I2C code on static pinmap targets #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion connectivity/FEATURE_BLE/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ if(MBED_ENABLE_OS_INTERNAL_TESTS)
endif()

add_library(mbed-ble STATIC EXCLUDE_FROM_ALL)
add_library(mbed-ble-cordio_ll STATIC EXCLUDE_FROM_ALL)

add_subdirectory(libraries)
add_subdirectory(source)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-ble-cordio_ll STATIC EXCLUDE_FROM_ALL)

target_include_directories(mbed-ble-cordio_ll
PUBLIC
.
Expand Down
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