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

Function rt_pic_irq_get_priority

components/drivers/pic/pic.c:807–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807rt_uint32_t rt_pic_irq_get_priority(int irq)
808{
809 rt_uint32_t priority = RT_UINT32_MAX;
810 struct rt_pic_irq *pirq = irq2pirq(irq);
811
812 if (pirq)
813 {
814 rt_hw_spin_lock(&pirq->rw_lock.lock);
815
816 priority = pirq->priority;
817
818 rt_hw_spin_unlock(&pirq->rw_lock.lock);
819 }
820
821 return priority;
822}
823
824rt_err_t rt_pic_irq_set_affinity(int irq, rt_bitmap_t *affinity)
825{

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