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:
parent
86c466b6bc
commit
e2cdb7ef34
2 changed files with 21 additions and 0 deletions
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue