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.

CCS/TM4C123GH6PGE: Difference between MAP_SysCtlPeripheralEnable and SysCtl Peripheral Enable

Part Number: TM4C123GH6PGE

Tool/software: Code Composer Studio

Hi All,

My platform is TM4C123GH6PGE

CCS version 6.2,

I have one Query ,

    What is the difference between MAP_SysCtlPeripheralEnable and SysCtl Peripheral Enable ?

 

Thank you! 

  • Hi Satya,

    APIs provided by rom.h, a set of MAP_Function() APIs are provided. If the function is available in ROM, MAP_Function() simply calls ROM_Function(); otherwise it calls Function().

    Let's take GPIODirModeSet() as an example. The GPIODirModeSet() is an API function but there is also the same function ROM_GPIODirModeSet() that is stored in the device's internal ROM. The API executed out of the ROM is faster and more optimized. If you call MAP_GPIODirModeSet() then it will look for the rom_map.h to find out if the corresponding ROM_GPIODirModeSet() is valid and up to date. If yes, it will use the ROM library ROM_GPIODirModeSet() function. Sometimes, the ROM version of the API is not up to date due to bugs and in this case and hence deprecated, the rom_map.h will map the function to GPIODirModeSet() instead.
  • Thanks Charles!!!!!!!!!