Hi, I'm using KDS 3.2.0, PE Micro, and FRDM-K22F.
I'm not clear when stdint.h is used or stdbool.h should be used. I'm assuming Processor Expert added the stdint.h file to my program, but I was thinking stdbool.h would have been used. stdint.h works, I have not problem, but I wondering when is the appropriate time when stdbool.h should be used.
The Processor Expert types are in PE_Types.h. There you can see that it includes <stdint.h>.
It does not include <stdbool.h> there which can lead to problems with conflicting bool types.
The thing is that 'bool' needs to be included before PE_Types.h, otherwise you get conflicts.
What I usually do is to include stdbool.h before each compilation unit. In KDS I'm using the -include compiler option:
I hope this helps,