Hi Chris,
Do you know whether it’s possible to switch the netduino to big-endian? I’m doing a boatload of network I/O and it would save a lot of effort in the firmware if it were big-endian rather than little-endian. I know the ARM processors support switching this and the Micro Framework obviously supports both modes. I’m just not sure how to switch it on the Atmel microprocessor.
My only concern is that the Atmel’s memory controller may only support little-endian.
Cheers,
Kenny
Big-endian
Started by Kenny Kerr, Jan 02 2011 12:29 AM
2 replies to this topic
#1
Posted 02 January 2011 - 12:29 AM
#2
Posted 02 January 2011 - 12:39 AM
Hi Kenny,
The Atmel chip uses little-endian for all register access.
One could create a native code function that would swap around huge chunks of memory, though.
Can you share any details of your application?
Chris
#3
Posted 02 January 2011 - 02:18 AM
Hi Chris,
Most of the I/O is to support a niche industry UDP protocol so the packets are relatively small and the multi-byte values are not encoded with a fixed number of bytes. I don’t think it would be worth it in this case. It’s not a big deal – just hoping to simplify my encoding and decoding – performance is not a problem. Thanks for the input!
Cheers,
Kenny
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users