Trying to upgrade to Codewarrior 7.2 for my previous issue. But now, Localtime() is in time.h which I eanble these:
#define _EWL_OS_TIME_SUPPORT 1
#define _EWL_CLOCK_T_AVAILABLE 1
#define _EWL_TIME_T_AVAILABLE 1
But, the linker is not finding it. Is this gone now?
Hello
If you intend to use localtime() function within your Coldfire bare board application you need to provide functions to provide MSL with low level information from the hardware.
Extract from MSL_C_Reference.pdf, chapter "Configuring MSL C" section "Configuring Time and Clock"
MSL comes configured by default to support a platform having the ability to determine the time of day and also the ability to return an internal clock tick. The support does not come for free. Each platform must define four simple functions to provide MSL with low-level information from the platform hardware or operating system. Time and clock stub functions are in the time_xxx.c platform file, where xxx is the platform, such as Mac or Win
If you are running a real time kernel (RTK) or an OS the OS or RTK might provide you with the necessary low level functions.
CrasyCat