This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Syntax Errors using *(volatile ioport Uint16*)(0x1B0A)

Guru 15580 points

I am using some old demo code from Spectrum Digital that lets me have direct (bare metal) access to registers (in the C55xx). The code defines pointers to registers:

#define UART_LSR           *(volatile ioport Uint16*)(0x1B0A)

...and then accesses the register by using the following syntax (just one example):

while((UART_LSR & 0x20) == 0);

But when I compile this code I get a syntax error for this line. The code runs fine. What is causing the syntax error?