Part Number: SK-AM62B-P1
Other Parts Discussed in Thread: SYSCONFIG
Hello,
I'm working on porting my project to build in CCS 20.4. There are two files in my project that include a time.h file. The first file should use <time.h>, which should be resolved to "compiler_path/include/c/time.h" as:
#include <time.h>
.....
struct tm loc_time;
The other file is using time.h from "kernel/freertos/FreeRTOS-POSIX/include/FreeRTOS_POSIX/time.h" as:
To fix compiler errors from the second file, I modifed CCS project include options to add:
${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-POSIX/include
${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-POSIX/include/FreeRTOS_POSIX
${MCU_PLUS_SDK_PATH}/source/kernel/freertos/FreeRTOS-POSIX/include/FreeRTOS_POSIX/sys
However, when I build the project both files are now using the time.h from FreeRTOS-POSIX and I get compile errors on the first file because "struct tm" isn't defined there. If I comment out those include options, then it is pointing to the compiler's time.h
So, how do I tell the build process to use the compiler/include/c for <time.h> and the FreeRTOS-POSIX for the "FreeRTOS-POSIX/include/time.h"
Thanks.
Ayman