Content originally posted in LPCWare by Tom Barrett on Fri Sep 12 10:28:25 MST 2014
Thanks, TheFallGuy, for the reply. I know they are macros and are defined in "core_cmFunc.h". But if I include that header file in main(), things get even worse with an error such as:
C:\Users\Tom\Documents\LPCXpresso_7.3.0_186\New_Workspace\CMSIS_CORE_LPC12xx\inc/core_cmFunc.h:340:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void)
Those errors appear for every one of the macro definitions on "core_cmFunc.h" whether or not the function is referenced in my source code.
I have also included the header file "system_LPC122x.h" but the error remains.
Any other tips? I do appreciate the help..