good day, I tried to make unions to the management of peripheral registers for TMS320C5535 using the CCS 5.2.1 NEXT shape.
typedef union{
unsigned int word;
struct{
unsigned char :9;
unsigned char ANAREGCG:1;
unsigned char DMA3CG:1;
unsigned char DMA2CG:1;
unsigned char DMA1CG:1;
unsigned char USBCG:1;
unsigned char SARCG:1;
unsigned char LCDCG:1;
}bits;
}PCGCR2UNION;
typedef volatile ioport PCGCR2UNION *PCGCR2PTR;
#define PCGCR2 ((PCGCR2PTR) 0x1c03)
pero el compilador marca un error de sintaxis cuando se utiliza "ioport" con typedef Unión, y no se les permite ver la estructura del registro al escribir código.
to use the declaration form.
#define IODIR1 *(volatile ioport unsigned int *)(0x1c06)
also he points out the syntax error.
would help any comment to it.
Regards