We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
"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?
"How write it properly?"
That depends on what you mean by "properly"! How about explaining what you want it to do??
"Why it doesn't work, it should right?"
No.
Expand those macros by hand and you'll discover that their definitions should not end with semicolons.
Thank you for help :). You're right, without semicolons.