This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

xdais

Other Parts Discussed in Thread: SYSBIOS

what is /packages/ti/xdais ? these header files are included in the example project but how do i include them in my project (project created by me)?

  • Depending on how your example project is written (does it #include <ialg.h> or [preferred!] #include <ti/xdais/ialg.h>?), you'll have to add "some" XDAIS directory to your compiler's include path.

    How to add this include path can vary depending on how you're building your example project (CCSv3?  CCSv4?  Linux cmd line?).  Will need more details if you need further guidance.

    -----------------

    And because I like to use forum posts to help teach, here's much more background than you were asking for, but perhaps it will fill in the blanks for others...

    XDAIS, like BIOS, XDC, IPC and many other SW products TI produces, provides its headers using a product-specific directory path.  That is, you'll find the XDAIS headers in "ti/xdais/*", BIOS 5 headers in "ti/bios/*" and BIOS 6 headers in "ti/sysbios/*", Framework Components headers in "ti/sdo/fc/*", etc.  Using this approach avoids file name collisions and enables installing all the [still full-directory-qualified!] headers into the same root directory.  (This is the same approach Java uses with their packages, if you're familiar with that language).

    It is recommended that C code that #include's these headers use a fully qualified path to the file - to avoid file name ambiguities and conflicts, but also to minimize the number of include paths you need to manage.  For example, to include the "ialg.h" header in the ti/xdais directory, we recommend $XDAIS_INSTALL_DIR/packages be placed on your compiler's include path and C source code be written like this:

    #include <ti/xdais/ialg.h>

    Further, these headers (and libraries) are typically rooted in a directory named "packages".  Because this "packages" directory is special, and is a root directory that should be added to your compiler's include path, it also has a more 'promoted' name than directory - it's sometimes also called a 'repository'.  Gory details on this convention are available here - http://rtsc.eclipse.org/docs-tip/Integrating_RTSC_Modules

    All that background explains why you're seeing XDAIS headers in packages/ti/xdais.  ".../packages" is the repository and "ti/xdais/*" are where the XDAIS headers are found.

    Chris

  • thanks for an elaborate desription on xdais. I am using ccsv4 microcontroller edition. I imported some example projects which includes 'packages/ti/xdais'. I want to know how to include them in the projects that i create.