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.

ATM module in SYS/BIOS

Hello,

I am trying to port a DSP/BIOS code to SYS/BIOS.  What is the equivalent of the ATM module in SYS/BIOS?

I checked the migration guide, but it says that there is no support for ATM in SYS/BIOS :-(

Please help.

Thanks.

Divya

  • Which device are you running on?    If you are running on one of the C6x devices, then you can still use ATM.

    Add the following to your .cfg file:

    xdc.loadPackage('ti.bios');

    And then use #include <ti/bios/include/atm.h> in your code before you use the ATM_inc(), etc.

     

    The ATM APIs were created to allow for simple inc/dec of variables.   The TI compiler now provides built-in interrupt disable, enable and restore instrinsics which can be used in your code in place of the ATM APIs.

    To increment a variable:

    key = _disable_interrupts();

    var++;

    _restore_interrupts(key);

     

    If you use ATM in a lot of your code, you might be able to write a MYATM module (.h file) some inline functions that use the above intrinsics.

    -Karl-

  • I will check this out.  Thanks again :)