Search the web
Sign In
New User? Sign Up
AT91SAM
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 3315 - 3344 of 4113   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
3315
Ralph, ... All reads and writes to volatiles should be in execution order (guaranteed complete at sequence points, to be exact). Non-volatiles do not have...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 1, 2008
9:00 am
3316
Hi, I'd like to set the Brownout Reset for the SAM7S256. Is it possible to program it directly with Amontoc or Samba? So far I tried to program it through...
thomasschulte
Offline Send Email
Feb 1, 2008
10:44 am
3317
... Hi Paul! You can probably guess what project this is for based on previous correspondence we've had. Here's the code from the ATMEL USB Framework Core 1.02...
Ralph Hempel
ralphhempel
Offline Send Email
Feb 1, 2008
2:13 pm
3318
Hi Ralph, ... Sure. :-) ... [ snip ] ... Ok, here we need to be very precise and choose words carefully. In another life I reckon I would enjoy being a...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 1, 2008
2:47 pm
3319
... Ralph I'm jumping back in here. I assume from looking at the code that pEndpoint and what it points to are not marked as volatile. If that is the case,...
Bill Knight
wmk6341
Offline Send Email
Feb 1, 2008
2:49 pm
3320
Bill, ... There are two things here, perhaps being mixed together. 1. Tell the compiler to do things in order. 2. Tell the hardware to do things in order. (1)...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 1, 2008
3:13 pm
3321
... Bill, The pEndpoint->State is marked volatile. It is possible that the interrupt enable happens after the state is set but before the rest of the struct is...
Ralph Hempel
ralphhempel
Offline Send Email
Feb 1, 2008
3:27 pm
3322
Ralph, ... Not enough! Just means that that member is volatile, nothing else. ... Sure is. ... Make pEndpoint a pointer to volatile: volatile WhateverStruct *...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 1, 2008
3:33 pm
3323
... I could also move the state assignment to after the struct init, but I like your suggestion of declating pEndpoint volatile... ... And I've argued that...
Ralph Hempel
ralphhempel
Offline Send Email
Feb 1, 2008
3:36 pm
3324
... And then he needs to feed back the results to Atmel since he's using their code... Cheers, Ralph...
Ralph Hempel
ralphhempel
Offline Send Email
Feb 1, 2008
3:38 pm
3325
... And if you find yourself getting confused about whether you are declaring a pointer to volatile or a volatile pointer get a copy of cdecl. It'll help ...
Robert Adsett
robertadsett
Offline Send Email
Feb 1, 2008
3:42 pm
3326
Ralph, ... I don't believe that will work in the general case -- well, at least I don't think it will. All it will do is guarantee that the state is assigned ...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 1, 2008
3:42 pm
3327
Hi Robert, ... It'll ... Biggest ever mistake in C, and the designers regret the decision to make decls look like uses. Again, Wirth had it right in Pascal...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 1, 2008
3:45 pm
3328
... Because this is read as: pEndpoint is a pointer to WhateverStruct which is volatile. ... Because this is read as: pEndpoint is a volatile pointer to...
Ralph Hempel
ralphhempel
Offline Send Email
Feb 1, 2008
3:59 pm
3329
... "decls look like uses" ? How so? How else would you declare something?...
Russell Shaw
rj2000_au
Offline Send Email
Feb 2, 2008
1:01 am
3330
... When you've written optimizing compilers that do all kinds of intermediate transformations on the intermediate code, preserving the order of statements is...
Russell Shaw
rj2000_au
Offline Send Email
Feb 2, 2008
1:06 am
3331
Hi, ... This is where I vehemently disagree with every bone in my being. I will agree that when lowing representation an inferior compiler might decide to...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 2, 2008
8:57 am
3332
Hi, ... Yes, declarations of variables look like their uses. declare x as pointer to int: int *x; fetch the int pointed to by x: *x; declare x as a...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 2, 2008
9:08 am
3333
... The compiler gives an error if you declare the same thing twice or forget to declare it at all (unless you use nested {} scopes which isn't common). ... I...
Russell Shaw
rj2000_au
Offline Send Email
Feb 2, 2008
9:33 am
3334
... The compiler gives an error if you declare the same thing twice or forget to declare it at all (unless you use nested {} scopes which isn't common). ... I...
Russell Shaw
rj2000_au
Offline Send Email
Feb 2, 2008
9:36 am
3335
Hi, ... That is not what I said. I said if mismatch the definition and use, the compiler will not generate an error. void foo(void) { int (*x)[3]; int u =...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 2, 2008
11:42 am
3336
... It accepts it only because x has been declared. That code is perfectly reasonable to me, except that x is uninitialized. Better to have: int (*x)[3] =...
Russell Shaw
rj2000_au
Offline Send Email
Feb 2, 2008
1:43 pm
3337
Hi, ... It accepts it because it knows no better. Putting initialization of x to one side, EVERY ASSIGNMENT violates the C standard in one way or another. So...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 2, 2008
6:10 pm
3338
... How do those assignments violate the C standard? I didn't know that initializing a local declaration wasn't standard. I'd rather use gcc that allows that...
Russell Shaw
rj2000_au
Offline Send Email
Feb 3, 2008
1:09 am
3339
Hi, Russel: You are missing the point, and: exactly the situation that you are missing the point is the prove, that you don't know the (possible) advantages of...
rako1966
Offline Send Email
Feb 3, 2008
9:44 am
3340
... I was thinking of what that vague question meant for quite a while. ... Oh, is that all. That's just a matter of remembering zero-based counting which i...
Russell Shaw
rj2000_au
Offline Send Email
Feb 3, 2008
10:12 am
3341
Russel, ... int u = (*x)[3]; This indexes one beyond the array pointed to by x. int v = *(x[3]); This indexes into the non-existent array x; x is a pointer,...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 3, 2008
11:00 am
3342
... When i say the code looked ok, it was from the context of the C standard and those individual lines rather than that obvious overrun error in the code as a...
Russell Shaw
rj2000_au
Offline Send Email
Feb 3, 2008
11:12 am
3343
Hi, ... No. As I pointed out, you have obviously demonstrated *exactly* why programmers have problems because not only have you missed the fact that I'm ...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 3, 2008
11:13 am
3344
Hi, ... in ... There are two classes of error in there; the C compiler and many programmers cannot diagnose them. If you write in a strictly-typed and...
Paul Curtis
paul_l_curtis
Offline Send Email
Feb 3, 2008
11:18 am
Messages 3315 - 3344 of 4113   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help