From d6c74af535484b03372aefcfa87e5c5c16f5d101 Mon Sep 17 00:00:00 2001 From: tyx <462747508@qq.com> Date: Sun, 17 Apr 2022 21:16:37 +0800 Subject: [PATCH] [libcpu][arm] Fix compilation warning --- libcpu/arm/cortex-a/gic.c | 6 +++--- libcpu/arm/cortex-a/gic.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libcpu/arm/cortex-a/gic.c b/libcpu/arm/cortex-a/gic.c index 60e924d405..5dda22530d 100644 --- a/libcpu/arm/cortex-a/gic.c +++ b/libcpu/arm/cortex-a/gic.c @@ -179,7 +179,7 @@ void arm_gic_clear_pending_irq(rt_uint32_t index, int irq) } } -void arm_gic_set_configuration(rt_uint32_t index, int irq, uint32_t config) +void arm_gic_set_configuration(rt_uint32_t index, int irq, rt_uint32_t config) { rt_uint32_t icfgr; rt_uint32_t shift; @@ -340,8 +340,8 @@ rt_uint32_t arm_gic_get_interface_id(rt_uint32_t index) void arm_gic_set_group(rt_uint32_t index, int irq, rt_uint32_t group) { - uint32_t igroupr; - uint32_t shift; + rt_uint32_t igroupr; + rt_uint32_t shift; RT_ASSERT(index < ARM_GIC_MAX_NR); RT_ASSERT(group <= 1U); diff --git a/libcpu/arm/cortex-a/gic.h b/libcpu/arm/cortex-a/gic.h index e74b760f45..0171122ac9 100644 --- a/libcpu/arm/cortex-a/gic.h +++ b/libcpu/arm/cortex-a/gic.h @@ -24,7 +24,7 @@ rt_uint32_t arm_gic_get_pending_irq(rt_uint32_t index, int irq); void arm_gic_set_pending_irq(rt_uint32_t index, int irq); void arm_gic_clear_pending_irq(rt_uint32_t index, int irq); -void arm_gic_set_configuration(rt_uint32_t index, int irq, uint32_t config); +void arm_gic_set_configuration(rt_uint32_t index, int irq, rt_uint32_t config); rt_uint32_t arm_gic_get_configuration(rt_uint32_t index, int irq); void arm_gic_clear_active(rt_uint32_t index, int irq);