From e44ff7d49febffc2853d7c70d94337c6f45f9295 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 18 Sep 2022 17:25:05 +0800 Subject: [PATCH] arm/rtl8720c: Remove up_trigger_irq since it is implemented in arm_trigger_irq.c Signed-off-by: Xiang Xiao --- arch/arm/src/rtl8720c/ameba_nvic.c | 39 ------------------------------ 1 file changed, 39 deletions(-) diff --git a/arch/arm/src/rtl8720c/ameba_nvic.c b/arch/arm/src/rtl8720c/ameba_nvic.c index 8c504495e8..88cf34b38b 100644 --- a/arch/arm/src/rtl8720c/ameba_nvic.c +++ b/arch/arm/src/rtl8720c/ameba_nvic.c @@ -259,45 +259,6 @@ void up_enable_irq(int irq) } } -/**************************************************************************** - * Name: up_trigger_irq - * - * Description: - * Trigger an IRQ by software. - * - ****************************************************************************/ - -void up_trigger_irq(int irq) -{ - uint32_t pend_bit = 0; - DEBUGASSERT(irq >= NVIC_IRQ_NMI && irq < NR_IRQS); - if (irq >= NVIC_IRQ_FIRST) - { - putreg32(irq - NVIC_IRQ_FIRST, NVIC_STIR); - } - - else - { - switch (irq) - { - case NVIC_IRQ_PENDSV: - pend_bit = NVIC_INTCTRL_PENDSVSET; - break; - case NVIC_IRQ_NMI: - pend_bit = NVIC_INTCTRL_NMIPENDSET; - break; - case NVIC_IRQ_SYSTICK: - pend_bit = NVIC_INTCTRL_PENDSTSET; - break; - } - - if (pend_bit) - { - modifyreg32(NVIC_INTCTRL, 0, pend_bit); - } - } -} - /**************************************************************************** * Name: up_prioritize_irq *