This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F2800157: Possible to define/typedef uint8_t?

Part Number: TMS320F2800157

I'm attempting to port many libraries that all use uint8_t datatypes that are obviously not supported by the c2000. Is there a  way to define or typedef uint8_t and int8_t to their 16-bit counterparts globally somewhere in the stdint header or elsewhere to prevent me from needing to go into each file to manually redefine the datatype? 

I understand that this is a somewhat dangerous practice, but it would be temporary and would help me make faster progress initially while I'm evaluating the MCU

  • Hi Dan,

    we are already having the defines in hw_types.h file.

    You can refer the file in inc folder.

    Thanks

    Aswin

  • This doesn't seem to have defines for INT8_MIN, INT8_MAX, etc. Is that expected?

  • HI Dan,

    uint16_t and int16_t is defined in C:\ti\ccs1240\ccs\tools\compiler\ti-cgt-c2000_22.6.0.LTS\include\sys\_stdint.h.

    This doesn't seem to have defines for INT8_MIN, INT8_MAX, etc. Is that expected?

    INT8_MIN is not defined in hw_types.h.

    We have intmax_t defined in _stdint.h file.

    #ifndef _INTMAX_T_DECLARED
    typedef __intmax_t intmax_t;
    #define _INTMAX_T_DECLARED
    #endif
    #ifndef _UINTMAX_T_DECLARED
    typedef __uintmax_t uintmax_t;
    #define _UINTMAX_T_DECLARED
    #endif

    Thanks

    Aswin