• Pre-Processor Location
    Hi, I have a very silly question and very strange as well. I just created a new project for stm32f407vg in Keilv5 MDK on HAL. Following is the simple code: This is HAL libraries FILE ...
  • Sub String in Pre-Processor?
    Does anyone know how to get the pre-processor to spit out a substring? In this case, I want to include only the year from the __DATE__ macro. Something like: #define YEAR=substr(8,4,__DATE__) const...
  • Nesting of pre-processor #if/#endif
    Hello. Using C51, is nesting of pre-processor #if/#endif statements allowed?
  • Using 'C' pre-processor with A51
    Common C51 & A51 headers are very useful. However, there seems to be no way to write code that is conditional upon command line defines that works for both the compiler and the assembler. For example...
  • Combining pre-processor and scatter files?
    Hello, The documentation of the RealView tool chain is a little vague on this: can I run the preprocessor on scatter files? How exactly is that does? Can you offer a simple example?