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

defining sbit for LPC3180

Hello

How i can define a bit variable for LPC3180?
As we can do it by writing sbit for C51 architectures.

  • You can't. The ARM doesn't have bit-addressable memory, so Keil has not had any reason for extending the language with any bit data type.

    You can still access individual bits in an integer using the standard bit operations (| & ~ ^) available in the C/C++ langauges.