Skip to content

Commit acc5f20

Browse files
Benjamin Gwinkartben
authored andcommitted
arch: arm: Allow NMI handlers to be registered from C++
This exports the API function with C-linkage so that it can be used in a C++ application. Signed-off-by: Benjamin Gwin <[email protected]>
1 parent c4fd9ea commit acc5f20

File tree

1 file changed

+8
-0
lines changed
  • include/zephyr/arch/arm

1 file changed

+8
-0
lines changed

include/zephyr/arch/arm/nmi.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@
1313
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_NMI_H_
1414
#define ZEPHYR_INCLUDE_ARCH_ARM_NMI_H_
1515

16+
#ifdef __cplusplus
17+
extern "C" {
18+
#endif
19+
1620
#if !defined(_ASMLANGUAGE) && defined(CONFIG_RUNTIME_NMI)
1721
extern void z_arm_nmi_set_handler(void (*pHandler)(void));
1822
#endif
1923

24+
#ifdef __cplusplus
25+
}
26+
#endif
27+
2028
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_NMI_H_ */

0 commit comments

Comments
 (0)