I have to migrate some C++ functions into a µVision project and usually you use uint8_t instead of char and bool. Is there any downside to using bool? I mean including the bool.h will not make the code significantly larger.
you use uint8_t instead of char
only for an unsigned 8-bit number; if you actually want a printable character, then use char.
I can also print the uint8_t without problems. But that means there is no good reason to use these datatypes?
it's not about printing - it's about the intended use of the variable:
View all questions in Arm Compilers forum