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.

What is the difference when ROM_TimerEnable is used instead of TimerEnable and vice versa

Hi,

I am trying to write a code for generating time interrupt in the code.

In all sample examples either ROM_TimerEnable or TimerEnable is used.

what is the difference between these two?

- Bhavesh

  • Hello Bhavesh

    If a function is available in ROM, then the code space for holding the function in Flash is saved. This allows larger application footprint in Flash

    Regards
    Amit
  • Amit,

    So this ROM_ functions will be used for particular board only right with in built flash programmed?

    If I use the same function for different board and if that board does not have ROM functions than at run time fault will occur. is this understanding correct?

    Thanks,

    Bhavesh

  • Hello Bhavesh

    It does not have anything to do with the board but only the device. That is why instead of using ROM_ functions we advise using MAP_ function. The use of MAP_ along with the the PART_TM4C12x??? define allows the linker to use the ROM functions if available and if not then have the function in Flash.

    Regards
    Amit