time.56800.h - How does this get included? Intrinsic? CW 8.3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

time.56800.h - How does this get included? Intrinsic? CW 8.3

613 Views
j___
Contributor IV

There is a file that is causing a warning in my project.

 

Warning : identifier 'time_t' redeclared

(included from:

ctime:35

timer.h:25

bootloader.c:20)

time.56800.h line 34     typedef long time_t;          /*- mm 000127 -*/ 

 

I can find how ctime, timer.h, & bootloader.c are included in my project.

 

However, I cannot find where time.56800.h is included.

 

Is this an intrinsic?

 

I have searched the web and downloaded a LOT of Freescale (NXP) pdf files and file searched (grep) across them. I can find no reference anywhere to time.56800.h.

 

C:\Program Files\Freescale\CodeWarrior for DSC56800E v8.3\M56800E Support\msl\MSL_C\DSP_56800E\inc\time.56800.h

 

Regards,

Jim

Labels (1)
0 Kudos
5 Replies

323 Views
TICS_Fiona
NXP Employee
NXP Employee

Hello Jim

Could you please upload an example project to reproduce the compiler warning? time.56800.h is not the intrinsic file. I need to investigate your project to know how it is included.  Thanks!

Best Regards

Fiona Kuang

Technical Information & Commercial Support

0 Kudos

323 Views
trytohelp
NXP Employee
NXP Employee

Hello Jim,

The project you've created is using MSL library which are located in the installation folder:

    \CodeWarrior for DSC56800E v8.3\M56800 Support\msl

The time_t is defined in the time.56800.h file:

#if _MSL_TIME_T_AVAILABLE  

    #ifndef _MSL_TIME_T_DEFINED

        typedef long time_t;                                        /*- mm 000127 -*/

        #define _MSL_TIME_T_DEFINED

      

        /* The following macro is old and will disappear in a future version of MSL */

        /* Switch to using _MSL_TIME_T_DEFINED instead */

        #define _TIME_T_DEFINED

    #endif

#endif

A lib config file is used to define the objects included in the library: ansi_prefix_dsp.h

Line 33:

    #define _MSL_TIME_T_AVAILABLE    1

You will find more information on lib in the \CodeWarrior for DSC56800E v8.3\Help\PDF\MSL_C_Reference.pdf manual.

Have a look to Configuring MSL chapter.

The lib project and all sources files are provided.

So you can rebuild the lib if you want/need.

Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

323 Views
j___
Contributor IV

Hi Pascal,

Thanks for the response. I knew about the ansi_prefix_dsp.h file already.

That was not my question.

I cannot find where time.56800.h is included. Is this an intrinsic?

In other words what file has the line:

#include <time.56800.h>

Jim

0 Kudos

323 Views
trytohelp
NXP Employee
NXP Employee

Hi Jim,

For me it's normal.

The library folder includes lof ot header and source files and all files are not listed in the doc.

This is a part of MSL libraries.

The #include <time.56800.h> is included in the \CodeWarrior for DSC56800E v8.3\M56800 Support\msl\MSL_C\MSL_Common\Include\ctime file

ctimer - line 35

#elif defined(__m56800__) || defined(__m56800E__)

    #include <time.56800.h>

#include <ctime> is defined in the:

     thread_local_data_pthreads.h

     time.h

     time_api.h

     wtime.h

     ...

If your application is using functions time function, the time.h should be defined and so the time_t will be defined as time.h includes ctime which includes time.56800.h.


Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

323 Views
j___
Contributor IV

I have grepped (across-file searched) the following PDF files for any instance of "time.56800". There is no reference.

56800EFPUG.pdf

56800EUG.pdf

56800Ex_GFLIB.pdf

56800Ex_MLIB.pdf

56800_Floating-Point_Library.pdf

DSP56800EQuickStartUsersManual.pdf

DSP56800ERM.pdf

MC56F8300UM.pdf

MC56F8345.pdf

MC56F8345E.pdf

MC56F83XXBLUM.pdf

MC56F83XXBLUM.pdf

56800E_Floating-Point_Library.pdf

56800x_Assembler.pdf

56800x_Build_Tools_Reference.pdf

56800x_Digital_Signal_Controllers_QS.pdf

56800_Floating-Point_Library.pdf

BeanWizard.pdf

COM_API_Reference.pdf

Flash_Programmer_Users_Guide.pdf

IDE_5.5_UG_Profiler.pdf

IDE_5.6_Automation_Guide.pdf

IDE_5.6_Users_Guide.pdf

MSL_C_Reference.pdf

Porting_Guide_56800_to_56800E.pdf

Porting_Guide_807_to_8300.pdf

ProcessorExpert.pdf

Targeting_56800.pdf

Targeting_56800E.pdf

USB_TAP_Users_Guide.pdf

56800E_Flash-Programming.pdf

56800E_Floating-Point_Library.pdf

56800x_Assembler.pdf

56800x_Build_Tools_Reference.pdf

56800_Floating-Point_Library.pdf

Anguilla_Black_Product_Brief.pdf

BeanWizard.pdf

COM_API_Reference.pdf

Ethernet_TAP_Users_Guide.pdf

IDEWin_5.9_Users_Guide.pdf

IDE_5.9_Automation_Guide.pdf

MSL_C_Reference.pdf

OSBDM-JM60_Users_Guide.pdf

Porting_Guide_56800_to_56800E.pdf

Porting_Guide_807_to_8300.pdf

ProcessorExpert.pdf

Targeting_56800cd.pdf

Targeting_56800E_cd.pdf

USB_TAP_Users_Guide.pdf

1853255.pdf

56800UG.pdf

AN3936.pdf

AN4586.pdf

MigratingSDKtoPE.pdf

PEXDRVSPEXUG.pdf

presentace_09_1005_2.pdf

SDK_30_RELEASE_NOTES.pdf

DSP56800ESDKPB.pdf

DSP56800SDKPB.pdf

Freescale SDK availability issue.pdf

SDK126.pdf

SDK127.pdf

SDK131.pdf

SDK_20E_RELEASE_NOTES.pdf

SDK_30_RELEASE_NOTES.pdf

0 Kudos