I have a sample code for a microcontroller.
There is a structure typedefd as shown below.
typedef struct _AT91S_SYS {
AT91_REG AIC_SMR[32]; // Source Mode Register
AT91_REG AIC_SVR[32]; // Source Vector Register
AT91_REG AIC_IVR; // IRQ Vector Register
...
} AT91S_SYS, *AT91PS_SYS;
I have used typedef with structs like } AT91S_SYS;.
What does this additional part does? *AT91PS_SYS; in } AT91S_SYS, *AT91PS_SYS;
Is it a pointer to the struct _AT91S_SYS type?
AT91_REG is a typedef of volatile unsigned int
Yes, you are right, the syntax is equivalent to this:
So
AT91PS_SYSis a pointer type ofAT91S_SYS.