Hi,
I'm using the ST32F103G uC and Keli uVision 4.22 IDE.
Something that I don't understand is how to use single bits as variables or as a function return value. With other compilers I know 'bit' and 'bool' but somehow this doesn't seem to work with the armcc compiler. I searched the Internet but could not find anything in that direction.
Who can help me out?
Thanks in advance,
Henk
"Most processors don't support bit variables, so there are no C language extension to declare bit variables or have function return single bits."
I think you meant to say that the standard C language has no facilities to declare bit variables or have function return single bits?
There certainly are C implementations which provide language extensions to declare bit variables or have function return single bits - Keil C51 being a case in point.
However, this does rely entirely upon specific hardware support from the underlying target architecture.