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

Function rt_pic_irq_disable

components/drivers/pic/pic.c:698–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698void rt_pic_irq_disable(int irq)
699{
700 struct rt_pic_irq *pirq = irq2pirq(irq);
701
702 RT_ASSERT(pirq != RT_NULL);
703
704 rt_hw_spin_lock(&pirq->rw_lock.lock);
705
706 if (pirq->pic->ops->irq_disable)
707 {
708 pirq->pic->ops->irq_disable(pirq);
709 }
710
711 rt_hw_spin_unlock(&pirq->rw_lock.lock);
712}
713
714void rt_pic_irq_ack(int irq)
715{

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