arch: arm: fix "template with C linkage" in cmsis.h

The error manifests itself when including cmsis.h from C++ code

Signed-off-by: Anton Gerasimov <agerasimov@twilio.com>
This commit is contained in:
Anton Gerasimov 2019-05-20 14:23:02 +02:00 committed by Anas Nashif
parent 46da745ed8
commit ac4eb32293

View File

@ -14,12 +14,12 @@
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_CMSIS_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_CMSIS_H_
#include <soc.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <soc.h>
/* CP10 Access Bits */
#define CPACR_CP10_Pos 20U
#define CPACR_CP10_Msk (3UL << CPACR_CP10_Pos)