One of the things that has always confused (or frustrated )me using the F2812 and now the F28335 is that a char is not individually addressable (as far as I know). The smallest unit size for a variable is a 16-bit value. There are so many instances where I want to explicitly use a variable that is only 8-bits (256 values). For instance if I transfer a packed struct via serial port from a PC to the TI Chip and I want to cast that serial byte stream to a struct it doesn't work.
Also another example is say the serial stream has a 1 byte checksum that is also passed along and in the F28335 I re-compute the checksum by adding up the values received. Normally the 8-bit value would overflow above 256 and wrap, however it will not in the TI chip so a comparision at the end won't work unless aditional code is added.
What I am getting at is......Is there a compiler switch to be able to make it so a char is 1 byte? Or something else I am missing? Do people just deal with this?
Thanks,
Josh