From f24cce0b88c4ccebd36f21bb36409efa8074f65f Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Mon, 7 Mar 2022 17:08:31 +0800 Subject: [PATCH] update docs Signed-off-by: annie_wangli --- en/device-dev/kernel/kernel-mini-basic-interrupt.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/en/device-dev/kernel/kernel-mini-basic-interrupt.md b/en/device-dev/kernel/kernel-mini-basic-interrupt.md index f1ac97b017..6429771d82 100644 --- a/en/device-dev/kernel/kernel-mini-basic-interrupt.md +++ b/en/device-dev/kernel/kernel-mini-basic-interrupt.md @@ -128,10 +128,12 @@ static UINT32 Example_Interrupt(VOID) UINT32 ret; HWI_PRIOR_T hwiPrio = 3; HWI_MODE_T mode = 0; - HWI_ARG_T arg = 0; + HwiIrqParam irqParam; + (void)memset_s(&irqParam, sizeof(HwiIrqParam), 0, sizeof(HwiIrqParam)); + irqParam.pDevId = 0; /* Create an interrupt. */ - ret = HalHwiCreate(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){ printf("Hwi create success!\n"); } else { -- GitLab