I am using a freescale hc12 with codewarrior and trying to use a #define to refer to a memory register but continue to receive an error. The error I get is
C2450: Expected ~ (IDENT auto const extern register static typedef volatile__interrupt friend inline operator virtual) . I realize that these definitions are already in the header files....But for educational purposes I am trying to define my own references to the memory registers. Any help or suggestions would be much appreciated.
#include <hidef.h> /* common defines and macros */
#include <mc9s12dt256.h> /* derivative information */
#pragma LINK_INFO DERIVATIVE "mc9s12dt256b"
#define EPCNT 0x000000AC
EPCNT = 0;
Thanks
Erik