Skip to content

Commit 73f1f12

Browse files
author
Jamie Smith
authored
Fix compilation of I2C code on static pinmap targets (ARMmbed#110)
1 parent 5f30094 commit 73f1f12

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

connectivity/FEATURE_BLE/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ if(MBED_ENABLE_OS_INTERNAL_TESTS)
88
endif()
99

1010
add_library(mbed-ble STATIC EXCLUDE_FROM_ALL)
11-
add_library(mbed-ble-cordio_ll STATIC EXCLUDE_FROM_ALL)
1211

1312
add_subdirectory(libraries)
1413
add_subdirectory(source)

connectivity/FEATURE_BLE/libraries/TARGET_CORDIO_LL/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
add_library(mbed-ble-cordio_ll STATIC EXCLUDE_FROM_ALL)
5+
46
target_include_directories(mbed-ble-cordio_ll
57
PUBLIC
68
.

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)