Xmos interpretation issue

Off topic discussions that do not fit into any of the above can go here. Please keep it clean and respectful.
User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm
Contact:

Xmos interpretation issue

Post by Folknology »

For some reason I cannot seem to get my head around this

Code: Select all

while(XS1=MCU) printf("This never happens\n");
Any ideas why?

regards
Al
;-)


User avatar
jonathan
Respected Member
Posts: 377
Joined: Thu Dec 10, 2009 6:07 pm
Contact:

Post by jonathan »

Al, can you create a ticket? If you want a prompt reply, the best place to ask this kind of question is the XMOS ticketing system.
Image
User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm
Contact:

Post by Folknology »

Actually according to Xmos, the latest is that this is all hunky dory, but I am wondering if others in the community may be experiencing the same problem?

regards
Al
badger
New User
Posts: 2
Joined: Tue Mar 15, 2011 4:08 pm

Post by badger »

assignment not comparison?
User avatar
octal
XCore Addict
Posts: 228
Joined: Thu Jan 27, 2011 3:30 pm
Location: Argenteuil - France
Contact:

Post by octal »

What's the pb there?
Does this not compile?
could you give the decl of XS1 and MCU vars/const ?

btw, don't know if you meant to do assignment, but comparison need "==" instead of "="
User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm
Contact:

Post by Folknology »

Badger : Definitely that's exactly what Xmos is doing I think

regards
Al
User avatar
jonathan
Respected Member
Posts: 377
Joined: Thu Dec 10, 2009 6:07 pm
Contact:

Post by jonathan »

Al - badger-baiting is illegal.
Image
User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm
Contact:

Post by Folknology »

Octal : It could be a type issue, the types are clearly not the same

regards
Al
User avatar
Berni
Respected Member
Posts: 363
Joined: Thu Dec 10, 2009 10:17 pm
Contact:

Post by Berni »

Actually that would not work cause you need to use a == for comparison.
User avatar
octal
XCore Addict
Posts: 228
Joined: Thu Jan 27, 2011 3:30 pm
Location: Argenteuil - France
Contact:

Post by octal »

btw Folknology,
where did you got this code from ? (could you post full code?)
Post Reply