Skip to content

Commit dd33247

Browse files
committed
test: fix os tick linkage
os_tick header file is C only, mangling would cause problems here
1 parent fcadf0b commit dd33247

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

TESTS/mbed_hal/common_tickers/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@
2121
#include "hal/us_ticker_api.h"
2222
#include "hal/lp_ticker_api.h"
2323

24+
#ifdef __cplusplus
25+
extern "C" {
26+
#endif
2427
#include "os_tick.h"
28+
#ifdef __cplusplus
29+
}
30+
#endif // __cplusplus
2531

2632
#if !DEVICE_USTICKER
2733
#error [NOT_SUPPORTED] test not supported

0 commit comments

Comments
 (0)