Pheetuz
Full Member level 3
Hi Folks,
I have a module on my course that covers powerPC programming but it covers the module in assembly language, I however would prefer to do the project in C, the tutor has said that this is fine but he has limited knowledge of programming the powerPC in C.
He suggested that in order to access specific registers in the IMMR(Internal memory map register) I should set up pointers to each individual register and then I can use these to access the registers which I agree is one way to do it.
What I was hoping for was that someone would be able to point me in the direction of a header file that I could use that would allow me to access the registers using struct, union or bit field names, like you can in a PIC, for example:
It would be greatly appreciated if anyone could shed any light on the matter.
Cheers,
Pete.
I have a module on my course that covers powerPC programming but it covers the module in assembly language, I however would prefer to do the project in C, the tutor has said that this is fine but he has limited knowledge of programming the powerPC in C.
He suggested that in order to access specific registers in the IMMR(Internal memory map register) I should set up pointers to each individual register and then I can use these to access the registers which I agree is one way to do it.
What I was hoping for was that someone would be able to point me in the direction of a header file that I could use that would allow me to access the registers using struct, union or bit field names, like you can in a PIC, for example:
Code:
PORTCbits.RC3 = 0x1;
It would be greatly appreciated if anyone could shed any light on the matter.
Cheers,
Pete.