From Texas Instruments Wiki
Jump to: navigation, search

RTOS Software Developer Guide OSAL


User Interface




The OSAL library provides operating system abstraction layer API sample implementations that are required for processor SDK drivers. Scope of APIs supported in the module is limited to support OS services required for RTOS or bare metal drivers

  • Supported Operating Systems
    • TIRTOS
    • NONOS
  • Supported SOCs
    • Please refer to component release notes

Operating System Extension

Porting of OSAL component will enable extending PDK components to additional OS environment. Reference top level API header file  includes:

#include <ti/osal/osal.h>

Application Integration Details

Baremetal or No-OS Use case

Reference library path to be included in application build environment:


SysBIOS based application

Any RTSC application that needs to use osal library, should have below RTSC configuration lines before any other processor sdk components (e.g., board, gpio, uart etc).

 /* set the operating system type, 
  * supported types are "tirtos" and "nonos" 
 var osType           = "tirtos";

 /* set the soc type
  * (applicable only when osTYpe 
  *  is "nonos" only)
 var socType           = "am572x";

 /* Setup the OSAL Library */
 var Osal = xdc.loadPackage('ti.osal');
 Osal.Settings.osType  = osType;
 Osal.Settings.socType = socType;


Additional References

Operating System Abstraction Layer Library Summary
Component Type Library
Install Package PDK
Install Directory pdk_AMX_<version>\packages\ti\osal
Project Type Eclipse RTSC
Endian Support Little
Linker Path $(TI_PDK_INSTALL_DIR)\packages\ti\osal
Linker Sections .vecs , .switch, .args, .cio
Include Paths $(TI_PDK_INSTALL_DIR)\packages\ti\osal
Reference Guides $(TI_PDK_INSTALL_DIR)\packages\ti\osal\docs\doxygen\html\index.html
Release Notes $(TI_PDK_INSTALL_DIR)\packages\ti\osal\docs\ReleaseNotes_OSAL.pdf