Post Created date
Leap year algoritm
Oops... :oops: :D
Thursday, 31 May 2007 - 13:00
Leap year algoritm
How about... int isitleapyear(int year) { int leapyear = OFF ; if (year%4==0) { if (year%100!=0) { if (year%400==0) { leapyear=ON...
Thursday, 31 May 2007 - 12:28
variables overlapping
Quote:its just another function Well it can't be important then.
Wednesday, 30 May 2007 - 12:15
variables overlapping
And... TASK_SW(); ?
Wednesday, 30 May 2007 - 11:54
variables overlapping
What does your ISR code look like? What does UART_Receive(0, &x) look like?
Wednesday, 30 May 2007 - 11:33
variables overlapping
Note that this is a simplified version intended as an introductory “how it works”, before anybody says that variables often get passed to functions in registers. :) Typical...
Wednesday, 30 May 2007 - 11:23
variables overlapping
If it is within the same function and not declared static then it's an auto (i.e. stack-based) variable and will be lost as soon as the function exits.
Wednesday, 30 May 2007 - 11:01
variables overlapping
How exactly have you defined your buffer? I cannot understand how other variables are sharing the same address space. A
Wednesday, 30 May 2007 - 09:13
The Longest Possible Int
Yeah - long long is C99, but given that the Gnu stuff acts as a C++ compiler too... Like I said... "never 100% sure" :D
Tuesday, 29 May 2007 - 11:07
The Longest Possible Int
I didn't mention "long long" 'cos I'm never 100% sure of its "standard" status. :) Quote:This type is not supported by compilers that require C code to be C++ ISO compliant,...
Tuesday, 29 May 2007 - 10:47
variables overlapping
You have defined your buffer as "static" haven't you, rather than declaring is within your function? A.
Tuesday, 29 May 2007 - 09:27
The Longest Possible Int
You need "long" and "unsigned long". A long holds -2147483648 to +2147483647. An unsigned long holds 0 to 4294967295
Tuesday, 29 May 2007 - 09:20

Pages