This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC23xx gpio code

Hello,
Can someone explain what it means??

#define IOPIN0 (*(volatile unsigned long *)(GPIO_BASE_ADDR + 0x00))

The controller using is LPC23xx/24xx.

BR Chethan

Parents
  • Haven't you looked at the description of the volatile keyword?

    What is the difference between a normal memory variable and a register mapped to real hardware? When may a memory variable change content? When may a I/O register associated with processor pins change value? Would that matter to the compiler, when it generates the processor instructions?

Reply
  • Haven't you looked at the description of the volatile keyword?

    What is the difference between a normal memory variable and a register mapped to real hardware? When may a memory variable change content? When may a I/O register associated with processor pins change value? Would that matter to the compiler, when it generates the processor instructions?

Children