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.

MSPM0G3507: Difference of delay lib

Part Number: MSPM0G3507

Hi, Gentleman

I want to wait for some period on the program, and I found dely_cycle(), and DL_Commmon_DelayCycles().

What is the difference of these two lib?

Kind regards

  • Hi Shotaro,

    There is no difference. In MSPM0 delay_cycles() is an alias for DL_Common_delayCycles (see below from dl_core.h).

    __delay_cycles() is an intrinsic call that was/is supported in other embedded devices and compiler. In MSPM0, the delay_cycles alias without the underscores provides the same functionality with similar syntax. You could call DL_Common_delayCycles directly though and it would be the same. 

    Best Regards,
    Brandon Fisher