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

Function rt_pic_irq_mask

components/drivers/pic/pic.c:730–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730void rt_pic_irq_mask(int irq)
731{
732 struct rt_pic_irq *pirq = irq2pirq(irq);
733
734 RT_ASSERT(pirq != RT_NULL);
735
736 rt_hw_spin_lock(&pirq->rw_lock.lock);
737
738 if (pirq->pic->ops->irq_mask)
739 {
740 pirq->pic->ops->irq_mask(pirq);
741 }
742
743 rt_hw_spin_unlock(&pirq->rw_lock.lock);
744}
745
746void rt_pic_irq_unmask(int irq)
747{

Callers 4

rt_hw_interrupt_maskFunction · 0.85
serial8250_removeFunction · 0.85
serial8250_uart_controlFunction · 0.85

Calls 3

irq2pirqFunction · 0.85
rt_hw_spin_lockFunction · 0.50
rt_hw_spin_unlockFunction · 0.50

Tested by

no test coverage detected