My keil version 4.0a Quick example:
#include<lpc23xx.h> #include <math.h>
#define RS 0x10000000; #define E 0x80000000;
int main(void) { IODIR1 = RS + E ;}
Why it doesn't work, it should right? How write it properly? I was trying everything and I have no idea how make it working. Thank you for help.
Thank you for help :). You're right, without semicolons.
"Why it doesn't work, it should right?"
No.
"How write it properly?"
Expand those macros by hand and you'll discover that their definitions should not end with semicolons.
"Why it doesn't work"
You have presented no evidence to suggest that it doesn't!
What does it do? Why don't you think that constitutes "working"?
"it should right?"
It will work in accordance with the ANSI 'C' standard - have you checked carefully what that says should happen?
That depends on what you mean by "properly"! How about explaining what you want it to do??
View all questions in Keil forum