主题中讨论的其他器件:C2000WARE
部分
C:\ti\c2000\C2000Ware_4_01_00_00\driverlib\f2838x\driverlib\flash.h
某些函数在文件开头具有链接 pragma:
#ifndef _cplusplus
#pragma code_section (Flash_setBankPowerMode、".TI.ramfunc");
#pragma code_section (Flash_setPumpPowerMode、".TI.ramfunc");
...
或像这样在函数处:
#ifdef _cplusplus
#pragma code_section (".TI.ramfunc");
#endif
静态内联空
FLASH_setBankPowerMode (uint32_t ctrlBase、Flash_BankNumber 组、
FLASH_BankPowerMode 电源模式)
一些内联函数不具有链接器 pragma、例如:
//*****
静态内联空
Flash_ClaimPumpSemaphore (Flash_PumpOwnership 包装程序)
为什么会这样? 我需要 Flash_ClaimPumpSemaphore 才能应用此 pragma。
是否有将这样的错误文件复制到我的项目空间并修改我自己的本地副本的解决方案?
此外、为什么函数定义放在头文件中? 它肯定让我跳了起来。
谢谢。
John