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.

[参考译文] RTOS/TMDXICE110:驱动程序初始化

Guru**** 2979400 points

Other Parts Discussed in Thread: SYSBIOS

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/677626/rtos-tmdxice110-driver-initialization

器件型号:TMDXICE110
Thread 中讨论的其他器件:SYSBIOS

工具/软件:TI-RTOS

你好。

在 TI 示例的 xxx.cfg 文件中、有几行驱动程序初始化和 MNU。 例如:

/*========================= 驱动程序配置=================== *

/*加载 OSAL 封装*/
var osType ="tirtos";
VAR OSAL = XDC.loadPackage ('ti.osal');
OSAL.Settings.osType = osType;

/*使用 CSL 封装*/
VAR socType ="AM335x";
VAR_l = XDC.loadPackage ('ti.CSL');
Csl.Settings.deviceType = socType;

/*加载 UART 软件包*/
VAR UART = XDC.loadPackage ('ti.drv.UART');
UART.Settings.socType = socType;

/*加载 SPI 包*/
VAR socType ="AM335x";
var I2C = xdc.loadPackage ('ti.drv.i2c');
I2C.Settings.socType = socType;

/*加载电路板封装*/
VAR 板= XDC.loadPackage ('ti.board');
board.Settings.boardName ="iceAMIC110";


/*========================= 高速缓存和 MMU 配置=================== *

VAR Cache = xdc.useModule('ti.sysbios.family.arm.a8.Cache');
cache.enableCache = true;

VAR MMU = xdc.useModule('ti.sysbios.family.arm.a8.Mmu');
MM4.enableMMU = true;

/*强制外设部分为不可高速缓存的严格排序存储器*/
VAR 外设 Attrs ={
键入:MMU.FirstLevelDesc_section,//段描述符
TEX:0、
可缓冲:false,//可缓冲
可高速缓存:false,//可高速缓存
可共享:false,//可共享
NoExecute:true,//不可执行
};

我尝试找到文档、其中描述了如何为其他模块正确执行该操作、但找不到该文档。 如果不理解示例中的所有代码、这是错误的。 您可以向我指出文档、其中描述了文档、我自己找不到它。