Skip to content
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 <>
  • 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 @@

#include <soc.h>

#ifdef __cplusplus
extern "C" {

#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.