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

Function rt_pic_irq_eoi

components/drivers/pic/pic.c:762–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762void rt_pic_irq_eoi(int irq)
763{
764 struct rt_pic_irq *pirq = irq2pirq(irq);
765
766 RT_ASSERT(pirq != RT_NULL);
767
768 rt_hw_spin_lock(&pirq->rw_lock.lock);
769
770 if (pirq->pic->ops->irq_eoi)
771 {
772 pirq->pic->ops->irq_eoi(pirq);
773 }
774
775 rt_hw_spin_unlock(&pirq->rw_lock.lock);
776}
777
778rt_err_t rt_pic_irq_set_priority(int irq, rt_uint32_t priority)
779{

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