lpcware

Access U1IIR register

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by dhill on Mon May 21 16:51:42 MST 2012
I am compiling code for a LPC2368 processor with Red Suite 4. I need a variable that will access the processor's U1IIR register. I tried:

volatile __attribute__ ((io (0xE0010008))) __uartiir_bits U1IIR_bit;

But the compiler didn't seem to understand the io attribute.

Does anyone know the correct way of doing this?

Outcomes