In RTI Connext Micro 2.3.x changes where made to how the system API is implemented. Because of these changes existing ports must be updated, and this section describes how to make a RTI Connext Micro 2.2.x port compatible with RTI Connext Micro 2.3.x.
If you have ported RTI Connext Micro 2.2.x the following steps will make it compatible with version 2.3.x:
-
Rename the following functions and make them private to your source code. For example, rename OSAPI_System_get_time to OSAPI_MyPortSystem_get_time etc.
-
Implement the following new methods.
-
Create a system structure for your port using the following template:
struct OSAPI_MyPortSystem
{
struct OSAPI_System _parent;
Your system variable
};
static struct OSAPI_MyPortSystem OSAPI_System_g;
struct OSAPI_System * OSAPI_System_gv_system = &OSAPI_System_g._parent;
-
Implement OSAPI_System_get_native_interface method and fill the OSAPI_SystemI structure with all the system methods.