Skip to content

Commit 6c71617

Browse files
committed
add extern "C" to hw_clock_hfxo_request and int hw_clock_hfxo_release definitions
1 parent 8f25513 commit 6c71617

File tree

1 file changed

+6
-1
lines changed
  • cores/nRF5/nordic/nrfx/mdk

1 file changed

+6
-1
lines changed

cores/nRF5/nordic/nrfx/mdk/nrf.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,16 @@ POSSIBILITY OF SUCH DAMAGE.
7373
#ifndef NRF52_SERIES
7474
#define NRF52_SERIES
7575
#endif
76+
#ifdef __cplusplus
77+
extern "C" {
78+
#endif
7679
#define nrf52_clock_hfxo_request hw_clock_hfxo_request
7780
#define nrf52_clock_hfxo_release hw_clock_hfxo_release
7881
int hw_clock_hfxo_request(void);
7982
int hw_clock_hfxo_release(void);
83+
#ifdef __cplusplus
84+
}
85+
#endif
8086
#endif
8187

8288
/* Define NRF53_SERIES for common use in nRF53 series devices. */
@@ -174,4 +180,3 @@ POSSIBILITY OF SUCH DAMAGE.
174180
#endif /* _WIN32 || __unix || __APPLE__ */
175181

176182
#endif /* NRF_H */
177-

0 commit comments

Comments
 (0)