The OTA OS Functional Interface definition.
The OTA OS Functional interface is a set of APIs that must be implemented for the device using the OTA library. The function implementations for this interface are provided to the OTA library in the user application. The OTA library calls the function implementations to perform functionalities that are typically provided by an operating system. This includes managing events, timers, and memory allocation. While these are typically provided by operating systems, an operating system is not required. Any implementation of these functionalities that meet the requirements of the interface will work.
The OTA OS Functional Interface is defined in ota_os_interface.h.
The functions that must be implemented are:
An example implementation for the OTA OS Functional Interface for FreeRTOS can be found in the files ota_os_freertos.c and ota_os_freertos.h.
An example implementation for the OTA OS Functional Interface for POSIX can be found in the files ota_os_posix.c and ota_os_posix.h.