• Syntax error using macros
    Hi, I get a error C141: syntax error near ';' with the following code: struct process { struct process *next; const char *name; }; #define AMACRO(name, strname) \ struct process name...
  • i don't understand the syntax ((typedef *) address value)
    hi Everybody, i copy and paste a line of code bellow as an example: "#define USB (( USB_TypeDef *) USB_BASE)" ( suppose #define USB_BASE 0x0C000 ) i don't understand the "(( USB_TypeDef...
  • Predefined Macro __DATE2__
    Hello! Today I tried the predefined macros __DATE__ and __TIME__ with no problems. If I change __DATE__ to __DATE2__ the compiler (V6.09a) reports "undefined itentifier". Do you get the same result...
  • Use in Macro Definitions
    I need to define macros that contains inline assembly. I have used the solution explained in this link: http://www.keil.com/support/man/docs/c166/c166_le_extmacros.htm however, this doesn't...
  • MPL macros in C source
    Is it possible? To use (invoke) a MPL macro in C source. Something like: __asm { ....... %*DEFINE (PackMyData ()) LOCAL end1( MOV R2,[R4] JNB R2.3,%end1 BSET T4IC.7 %end1: MOV R2...