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.

TMS320F28374S: C2000ware hw_types.h: add a check if float32_t / float64_t already exists

Part Number: TMS320F28374S

Tool/software:

Hi TI team,

we have a problem defining float32_t / float64_t in our standard including file. Unfortunately hw_types.h defines these two types.

We could include hw_types.h in all files - but from an architectural point of view, this is a disaster.

Is it possible to add an #ifdef in a future version? Just as it is already done with NULL?

// hw_types.h line 114 -> NULL is already checked
#ifndef NULL
#define NULL ((void *)0x0)
#endif

// hw_types.h line 123
#ifndef C2000_IEEE754_TYPES
#define C2000_IEEE754_TYPES
#ifdef __TI_EABI__
#ifndef float32_t  // --> add this line
typedef float         float32_t;
#endif             // --> add this line
#ifndef float64_t  // --> add this line
typedef double        float64_t;
#endif             // --> add this line
#else // TI COFF
...

Regards

Dieter