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.

[参考译文] RM44L520:将 RM48LX SD 卡项目移植到我的项目中。

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1158315/rm44l520-issue-porting-rm48lx-sd-card-project-to-my-project

器件型号:RM44L520

您好!  

我正在尝试通过 RM48LX SD 卡项目移植到我的项目中。 我一直遵循我喜欢的以下指南:

https://community.element14.com/members-area/personalblogs/b/blog/posts/ti-hercules-launchpad-using-an-sd-card-part-1

包括 MMC-Hercules 文件后、我收到编译错误#20、指示未定义某些 typedef (字节、DWORD、LBA_t、UINT、word 都标记为未定义)。 我已将所有添加的头文件位置添加到 include 路径、因此我不确定是什么导致了此问题。 我已附上以下压缩文件、如果需要更多信息来解决这些错误、请告知我。  

谢谢。

 e2e.ti.com/.../SDPort.zip

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

    尊敬的 Andrew:

    字节、字、DWORD、UINT 在 integer.h 中定义、该整数应包含在 diio.h、ff.h 和其他使用这些类型的文件中:

    #include "../../../demo/fatfs/src/integer.h

    LBA_t 未在演示项目中使用。

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

    谢谢你。 删除 ff.h 文件中的定义并链接到 interger.h 文件后、似乎编译正确。