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.
我现在阅读提供的demo device_srio_loopback.c 文件,函数 SrioDevice_init中代码,手册中寄存器是只读属性,为什么可以写入,手册中寄存器只有11个选项,但是代码为什么有14个输入,有的选项我没有找到
我现在阅读提供的demo device_srio_loopback.c 文件,函数 SrioDevice_init中代码,手册中寄存器是只读属性,为什么可以写入,
Those registers are read only. Those values in the code are reset-values.
For example:
#define CSL_SRIO_RIO_PE_FEAT_BRDG_RESETVAL (0x00000000u)
CSL_FINS (value, SRIO_RIO_PE_FEAT_BRDG, ptrPEFeatures->isBridge);
Please read section , page no: 53 :- https://www.ti.com/lit/ug/sprugw1c/sprugw1c.pdf
2.3.2.7 Reset and Powerdown
Upon reset, the load/store module puts all the register fields in their default values and waits for a write by the CPU.
第二个问题还在等待回复。
手册中寄存器只有11个选项,但是代码为什么有14个输入,
代码对于 C667x、K2e、k2h、k2g、AMX 等系列设备是通用的,您可以根据自己的需求修改,详细请参考英文论坛的回复。