From either the ./_OpenKitchenEquipment_OKE/ports/windows or ./_OpenKitchenEquipment_OKE/ports/linux directory copy the following files: cwport.c, cwport.h, cwmsgsel.h, and optionally strlcpy.c if your platform does not natively support strlcpy().
Embedded platforms will start their port using either the Windows or Linux port as a baseline.
Carefully read the instructions contained in cwport.c and cwport.h and modify either the Windows or Linux specific implementation to work on your controller.
When not using a Windows or Linux toolchain, it is expected that some or all the Windows or Linux specific header files in cwport.c and cwport.h must either be commented out or replaced by platform specific ones to get the CWL to compile.
For the initial port, it is recommended to set CW_PORT_INVALID_OKM_HARD_ERROR to 1 and CW_PORT_IS_FILE_SUPPORT_ENABLED to 0 in cwport.h. This will minimize the number of functions that must be implemented to get the first port working.
A successful port will only require changes to cwport.c and cwport.h.
It is strongly recommended that MJUnitTest() is run to verify that the JSON library is working correctly on the target platform.
If you have previously ported the CWL successfully and are updating to the newer version of the CWL then merge your existing cwport.c and cwport.h files with the newer versions of those files. For cwport.c if the function signatures match it is generally safe to bring over your existing code without modification, however care should be taken to follow any new porting guidelines for those functions. For cwport.h make sure to bring over your port configuration settings and configure any new settings as appropriate for your system.