lpcware

Faulty extern C declaration in lpcopen_2_05_lpcxpresso_nxp_lpcxpresso_1347

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by R2D2 on Fri May 16 18:25:00 MST 2014
Extern C declaration in cmsis.h of lpc_chip_13xx in lpcopen_2_05_lpcxpresso_nxp_lpcxpresso_1347 is faulty:

#ifndef __CMSIS_H_
#define __CMSIS_H_

#include "lpc_types.h"
#include "sys_config.h"

[color=#f00]//This part is missing:
#ifdef __cplusplus
extern "C" {
#endif
[/color]
/* Select correct CMSIS include file based on CHIP_* definition */
#if defined(CHIP_LPC1343)
#include "cmsis_1343.h"
typedef LPC1343_IRQn_Type IRQn_Type;
#elif defined(CHIP_LPC1347)
#include "cmsis_1347.h"
typedef LPC1347_IRQn_Type IRQn_Type;
#else
#error "No CHIP_* definition is defined"
#endif

/* Cortex-M3 processor and core peripherals */
#include "core_cm3.h"

#ifdef __cplusplus
}
#endif

#endif /* __CMSIS_H_ */

Outcomes