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:MAP_SysCtlPeripheralEnable 和 SYSCTL 外设启用之间的差异

Guru**** 2481465 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/702007/ccs-tm4c123gh6pge-difference-between-map_sysctlperipheralenable-and-sysctl-peripheral-enable

器件型号:TM4C123GH6PGE

工具/软件:Code Composer Studio

大家好、

我的平台是 TM4C123GH6PGE

CCS 版本6.2、

我有一个查询,

  MAP_SysCtlPeripheralEnable SYSCTL 外设使能之间有何区别?

 

谢谢!  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好 Satya、

    由 rom.h 提供的 API,提供了一组 map_function() API。 如果该函数在 ROM 中可用,map_function()只需调用 ROM_function();否则它会调用 function()。

    我们以 GPIODirModeSet()为例。 GPIODirModeSet()是一个 API 函数,但也有与存储在器件内部 ROM 中的函数 ROM_GPIODirModeSet()相同的函数。 从 ROM 中执行的 API 更快、更优化。 如果调用 MAP_GPIODirModeSet(),它将查找 rom_map.h,以确定相应的 ROM_GPIODirModeSet()是否有效且最新。 如果是、它将使用 ROM 库 ROM_GPIODirModeSet()函数。 有时,由于错误,API 的 ROM 版本不是最新的,在这种情况下,rom_map.h 将把该函数映射到 GPIODirModeSet()。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    谢谢查尔斯!!!!!!!!