TI 工程师您好:
现在我做的工程中需要将裸板的工程移植到sys/bios工程中,关于中断向量表的设置,参考了论坛中的贴子,但有个问题仍不解:
即: 在初始化hwiParams时, hwiParams.arg 和hwiParams.evenId应该怎么设置? 我的工程中涉及有hpyerlink, doorbell.
Nancy Wang:
hwiParams.arg是你需要传递的参数,不需要也可以使用默认的。
hwiParams.evenId是对应的触发中断的事件号。
需要查看手册P167页的表格。
www.ti.com/…/tms320c6678.pdf
以下链接有hpyerlink和doorbell的例子可以作为参考。
With this example, we try to leverage what we have learned so far to setup an interrupt for Hyperlink on TI's 6678 multicore device.
Here we put together our learning from this section and walk through a SYS/BIOS example.
processors.wiki.ti.com/…/Configuring_Interrupts_on_Keystone_Devices
user6307690:
回复 Nancy Wang:
wiki上的文档中提及了using csl apis & using sys/bios.是硬中断的设置可以用这两种方法进行初始化吗?编写代码时,只要用一种即可。如果是这样,请问一般这两种方法在什么情况下使用,两者有什么区别呢? 谢谢!
TI中文支持网