Hi all,
I have searched the forums high and low but still can't find a definitive answer. I'm hoping there are some gurus out there that can point me in the right direction.
My question is: How do I successfully include a 'c' header file in the STARTUP.A51 file? NB: My c header file only includes #defines etc
I was under the impression that the C preprocessor should be able to do this easily? Alas, I can't compile my code because the compiler doesn't recognize the symbols in my STARTUP.A51 (which are specified in my header file).
In case you were wondering, here's some background info:
Basically, I have had to edit the STARTUP.A51 file, in order to redirect some interrupts for my bootloader application.
The interrupts jump to a memory address that I have called (say) "APPLICATION_VECTOR_TABLE_ADDRESS"
This all works fine.
All I want to do is #define APPLICATION_VECTOR_TABLE_ADDRESS in my c header file - because this needs to be shared amongst several source files.
I am using the uVision4 IDE, and C51 compiler V9.01.
Look forward to some responses. Cheers