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?