Skip to content

Commit 12140ac

Browse files
moyamartinktaborowski
authored andcommitted
config: common: Add extern "C" to ble and subGHz config
In cpp projects, these headers cannot be found by the linker because of missing `extern "C" { }` guards. This commit addresses that by adding it to both config headers Signed-off-by: Martin Moya <[email protected]>
1 parent af6bb3b commit 12140ac

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

subsys/config/common/include/app_ble_config.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818

1919
#include <sid_ble_link_config_ifc.h>
2020

21+
#ifdef __cplusplus
22+
extern "C" {
23+
#endif
24+
2125
const sid_ble_link_config_t* app_get_ble_config(void);
2226

27+
#ifdef __cplusplus
28+
}
29+
#endif
30+
2331
#endif //APP_BLE_CONFIG_H

subsys/config/common/include/app_subGHz_config.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@
2020
#include <sid_pal_mfg_store_ifc.h>
2121
#include <sid_900_cfg.h>
2222

23+
#ifdef __cplusplus
24+
extern "C" {
25+
#endif
26+
2327
const radio_sx126x_device_config_t* get_radio_cfg(void);
2428
const sid_pal_mfg_store_region_t* get_mfg_cfg(void);
2529
struct sid_sub_ghz_links_config* app_get_sub_ghz_config(void);
30+
31+
#ifdef __cplusplus
32+
}
33+
#endif
34+
2635
#endif

0 commit comments

Comments
 (0)