提交 2f27f28a 编写于 作者: L LiteOS2021

fix(kernel): 修改内核文档中的中断使用描述

修改内核文档中的中断使用描述
Signed-off-by: NLiteOS2021 <dinglu@huawei.com>
上级 f29de027
...@@ -101,10 +101,12 @@ static UINT32 Example_Interrupt(VOID) ...@@ -101,10 +101,12 @@ static UINT32 Example_Interrupt(VOID)
UINT32 ret; UINT32 ret;
HWI_PRIOR_T hwiPrio = 3; HWI_PRIOR_T hwiPrio = 3;
HWI_MODE_T mode = 0; HWI_MODE_T mode = 0;
HWI_ARG_T arg = 0; HwiIrqParam irqParam;
(void)memset_s(&irqParam, sizeof(HwiIrqParam), 0, sizeof(HwiIrqParam));
irqParam.pDevId = 0;
/*创建中断*/ /*创建中断*/
ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiUsrIrq, arg); ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiUsrIrq, &irqParam);
if(ret == LOS_OK){ if(ret == LOS_OK){
printf("Hwi create success!\n"); printf("Hwi create success!\n");
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册