|
如何在AM3359+SYSBIOS下建立GPIO HWI
[复制链接]
硬體V1
查看详情
SYSBIOSSDK-IND-AM335X: v01.01.00.03
查看详情
想要新增一個GPIO 的Interrupt,在SYS/BIOS 下(HWI)
"Bios_User_Guide" ->Creating Hwi Objects:
=================
Hwi_Handle hwi0;
Hwi_Params hwiParams;
Error_Block eb;
Error_init(&eb);
Hwi_Params_init(&hwiParams);
hwiParams.arg = 5;
hwi0 = Hwi_create(id, hwiFunc, &hwiParams, &eb);
if (hwi0 == NULL) {
System_abort("Hwi create failed");
}
===================
但是不知道若使用GPIO 要帶哪些資料進去?
|
|