• A51: mixing C-preprocessor and MPL
    Hi, I'm having difficulties using MPL (macros) and the C-style preprocessor in A51 (6.12). Whenever I use #define (C-style prepro) to declare something and activate MPL (cmdline opt: MPL; uV2: Project...
  • Preprocessor #define acting strange.
    I have several pins relabeled using the #define directive in a header file called "gpio.h". Several files reference this file. In main.c I reference this file with the fallowing command: #include "gpio...
  • Asm/C preprocessor does not like Long Constants.
    Hi, I have a problem with the way your preprocessor works. This problem occurs in both assembly and in C. The reason we started trying to do this in C was that the assembler had a problem and while...
  • define a constant to an absolute address
    How to define the following constant to an absolute address at 0x1000? unsigned char code index[] = { 0x3, 0x5, 0x6 } ; //a constant mem in a file Thanks for any help!
  • preprocessor bug?
    #define SYSYEM LINUX #if SYSTEM == LINUX #define HDR "linux.h" #elif SYSTEM == WINDOWS #define HDR "windows.h" #elif SYSTEM == C51 #define HDR "c51.h" #else #define HDR "default...