3 Replies Latest reply on Feb 3, 2020 3:10 AM by RakshithM_16

    Use stdbool for CYBIT?

    JoBr_1593366

      Would it make sense to change cytypes.h to use stdbool.h's bool type for CYBIT variables?

       

      Currently, for non-PSoC3, it defines:

       

      #define CYBIT      uint8
      

       

      But this means when you hover over a CYBIT variable, it shows "uint8" as the type, so it's not obvious if it's meant to be boolean or integer.  If this were changed to bool type, it would show that when hovering over it, to clarify that the variable is meant to be true or false, not an integer.

      #define CYBIT      bool