Skip to content

Commit

Permalink
add extern "C" to hw_clock_hfxo_request and int hw_clock_hfxo_release…
Browse files Browse the repository at this point in the history
… definitions
  • Loading branch information
positron96 authored and h2zero committed Nov 13, 2024
1 parent f49f87f commit ab9a4a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cores/nRF5/nordic/nrfx/mdk/nrf.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,16 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef NRF52_SERIES
#define NRF52_SERIES
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define nrf52_clock_hfxo_request hw_clock_hfxo_request
#define nrf52_clock_hfxo_release hw_clock_hfxo_release
int hw_clock_hfxo_request(void);
int hw_clock_hfxo_release(void);
#ifdef __cplusplus
}
#endif
#endif

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

#endif /* NRF_H */

0 comments on commit ab9a4a3

Please sign in to comment.