Hi,
I have MATLAB-generated .c and .h files included in my S32DS IDE application project.
In this project, I have separate application and library files for each timing interval: 1 ms, 10 ms, 50 ms, and 100 ms.
Each of these timing-based libraries (e.g., 1 ms, 10 ms, etc.) contains files like rte.c/.h and rtd_init.c/.h. These files include a function with the same signature, for example:
void get(uint8_t a);
So, in:
1 ms: rte.c/.h and rtd_init.c/.h → contains void get(uint8_t a);
10 ms: rte.c/.h and rtd_init.c/.h → also contains void get(uint8_t a);
50 ms: same structure and function
100 ms: same structure and function
The problem is, while building the project, I get multiple definition errors, since the same function (get) with the same name exists in multiple libraries.
What I want is:
If I’m calling a 1 ms function, it should use only the 1 ms version of rte.c/.h and rtd_init.c/.h
If calling a 10 ms function, it should use only the 10 ms version of those files
But right now, I cannot include them conditionally like this.
Is there any configuration setting, build setup, or recommended method in S32DS to manage this kind of situation where multiple libraries contain same-named files and functions?
thanks and Regards,
Karmegan C.