MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_pic_irq_enable

Function rt_pic_irq_enable

components/drivers/pic/pic.c:682–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682void rt_pic_irq_enable(int irq)
683{
684 struct rt_pic_irq *pirq = irq2pirq(irq);
685
686 RT_ASSERT(pirq != RT_NULL);
687
688 rt_hw_spin_lock(&pirq->rw_lock.lock);
689
690 if (pirq->pic->ops->irq_enable)
691 {
692 pirq->pic->ops->irq_enable(pirq);
693 }
694
695 rt_hw_spin_unlock(&pirq->rw_lock.lock);
696}
697
698void rt_pic_irq_disable(int irq)
699{

Callers

nothing calls this directly

Calls 3

irq2pirqFunction · 0.85
rt_hw_spin_lockFunction · 0.50
rt_hw_spin_unlockFunction · 0.50

Tested by

no test coverage detected