Hi everyone ,
I want to be able to put a bitfield over my different register on my c5505 but i can't seem to find the information I am looking. First of all, on the C5505, in a bit field, does it has to be the LSB first or de the MSB first i.e
struct Example {
unsigned int BIT0 : 1;
unsigned int BIT1_3 : 3;
...
};
or
struct Example {
unsigned int BIT1_3 : 3;
unsigned int BIT 0 :1;
};
Secondly, how do I put my structure over my module register (right now i am trying to do the SPI part)
I've seen litterature about other DSP/uC from TI but i can't find the information I want from the PDF available (at least, for the many i read) but if it's like the other uC/DSP, I would assume that first, I need to define my bitfield/structure and make a volatile instance of it ( i.e volatile struct Example myexample) and then , with pragma code , assign the address I want to the structure in the memory map . Am I right or am I way out ?
Thanks