2016-03-09 05:13:02 +08:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*
|
|
|
|
* @brief NMI routines for ARM Cortex M series
|
|
|
|
*/
|
|
|
|
|
2016-01-21 13:10:59 +08:00
|
|
|
/*
|
2016-03-09 05:13:02 +08:00
|
|
|
* Copyright (c) 2015 Intel Corporation
|
2016-01-21 13:10:59 +08:00
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-01-21 13:10:59 +08:00
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_NMI_H_
|
|
|
|
#define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_NMI_H_
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2016-11-23 00:38:46 +08:00
|
|
|
#ifndef _ASMLANGUAGE
|
2016-03-09 05:13:02 +08:00
|
|
|
#ifdef CONFIG_RUNTIME_NMI
|
2019-10-01 03:31:07 +08:00
|
|
|
extern void z_arm_nmi_init(void);
|
|
|
|
#define NMI_INIT() z_arm_nmi_init()
|
2016-03-09 05:13:02 +08:00
|
|
|
#else
|
|
|
|
#define NMI_INIT()
|
|
|
|
#endif
|
2016-11-23 00:38:46 +08:00
|
|
|
#endif
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_NMI_H_ */
|