Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add extern "C" to hw_clock_hfxo_request and int hw_clock_hfxo_release #55

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 */