Skip to content
Permalink
Browse files

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>
  • Loading branch information...
OYTIS authored and nashif committed May 20, 2019
1 parent 46da745 commit ac4eb322931bb341f11fdff1bfc1c07c9cee445b
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/arch/arm/cortex_m/cmsis.h
@@ -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)

0 comments on commit ac4eb32

Please sign in to comment.
You can’t perform that action at this time.