Hi Mark, I did get around the error in VC by including the relative path
to mcf5223_adc.h in config.h, but I then get the following link errors :
application.obj : error LNK2019: unresolved external symbol _fnSendSNMPTrap referenced in function _fnApplication
application.obj : error LNK2019: unresolved external symbol _fnStartSNMP referenced in function _fnApplication
webInterface.obj : error LNK2001: unresolved external symbol _ADC_Chans
M5223X.obj : error LNK2019: unresolved external symbol _fnInit_adc referenced in function _fnInitHW
WinSim.obj : error LNK2001: unresolved external symbol _fnADC
WinSim.obj : error LNK2001: unresolved external symbol _fnSNMP
.\Debug/uTaskerV1-3.exe : fatal error LNK1120: 6 unresolved externals
I moved the include of mcf5223_adc.h to application.h like you suggested and get the same errors. I specify the following prototypes in mcf5223_adc.h so I'm not sure why the VC linker is complaining. config.h includes application.h which includes mcf5223_adc.h, so it should be included in all source files, right ?
fnADC is defined in TaskCOnfig.h and is the ADC task handler that gets called every 1 sec in the app.
mcf5223_adc.h snippet
.
.
////////////////////
// Prototypes
////////////////////
extern void fnInit_adc (void);
extern ADC_Chan ADC_Chans[];
void fnIniInputs(void);
Our ADC web page will display the values and programming for
8 input channels. We will have columns for dynamic values for
value, max, min etc and programmed values for Input type, Alram Hi and Low limits etc. I will use a drop down box where the user
can select 1 of maybe 15 values for each input types so I figured that
I would need something like
// System defined
£ - escape lead in
W - used for lead in type
// user defined
X - Input type
Y - Channel number (1..
Z - Type (TempC, TempF etc)
I'm assuming the first 2 chars are reserved for the system and the
last 2 are user definable.
Thanks,
John