mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
arch/tricore: add up_trigger_irq
Add up_trigger_irq in arch/tricore/src/common/tricore_irq.c Select ARCH_HAVE_IRQTRIGGER in config ARCH_TC3XX
This commit is contained in:
@@ -25,6 +25,7 @@ endchoice # Tricore Toolchain Selection
|
|||||||
config ARCH_TC3XX
|
config ARCH_TC3XX
|
||||||
bool
|
bool
|
||||||
select ARCH_HAVE_TESTSET
|
select ARCH_HAVE_TESTSET
|
||||||
|
select ARCH_HAVE_IRQTRIGGER
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config ARCH_FAMILY
|
config ARCH_FAMILY
|
||||||
|
|||||||
@@ -95,6 +95,26 @@ void up_enable_irq(int irq)
|
|||||||
IfxSrc_enable(src);
|
IfxSrc_enable(src);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_HAVE_IRQTRIGGER
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: up_trigger_irq
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Trigger an IRQ by software.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
void up_trigger_irq(int irq, cpu_set_t cpuset)
|
||||||
|
{
|
||||||
|
(void) cpuset;
|
||||||
|
volatile Ifx_SRC_SRCR *src = &SRC_CPU_CPU0_SB + irq;
|
||||||
|
|
||||||
|
IfxSrc_setRequest(src);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: tricore_ack_irq
|
* Name: tricore_ack_irq
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user