Sorry to bug this forum, but I have no one else to ask..
In one program sample file there is this definition
#ifndef MCB2130 #include <lpc21xx.h> #else #include <lpc213x.h> #define ADCR AD0CR #define ADDR AD0DR #endif
In Components,environments and books - Project Targets. The supplied project titles are Simulator, MCB2100 and MCB2130. I was expecting that using Title MCB2130 would cause <lpc213x.h> to be used and the other two to use <lpc21xx.h>. But in fact which ever Project target name is used <lpc21xx.h> is always used. If the Project name Title isn't what causes the selection what is? I can't find anything else.
In the compiler options, there must be a field where you can specify predefined preprocessor symbols.
Hi This is embarassing. I have now found out that the question that I asked earlier is reduntant because it now works. Dont ask me why it just does. the project target headers now affect the defines as I hoped they should.
Thanks! have a good weekend.