Initialize the OSAL layer.
Initializes the OSAL layer and is expected to be called before using the OSAL layer.