• Nesting of pre-processor #if/#endif
    Hello. Using C51, is nesting of pre-processor #if/#endif statements allowed?
  • 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...
  • 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 ...
  • 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?
  • C51: Invalid int expression in pre-processor
    I have hit a wall. In the following fragment: int a; void main(void) { a = 1; #if ((defined(TEST_1) && (TEST_1 == 27)) || (defined(TEST_2) && (TEST_2 == 27)) ) a = 2; #endif } the conditional...