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

Function irq2pirq

components/drivers/pic/pic.c:50–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48static rt_list_t _traps_nodes = RT_LIST_OBJECT_INIT(_traps_nodes);
49
50static struct rt_pic_irq *irq2pirq(int irq)
51{
52 struct rt_pic_irq *pirq = RT_NULL;
53
54 if ((irq >= 0) && (irq < MAX_HANDLERS))
55 {
56 pirq = &_pirq_hash[irq];
57
58 if (pirq->irq < 0)
59 {
60 pirq = RT_NULL;
61 }
62 }
63
64 if (!pirq)
65 {
66 LOG_E("irq = %d is invalid", irq);
67 }
68
69 return pirq;
70}
71
72static void append_pic(struct rt_pic *pic)
73{

Callers 15

rt_pic_cascadeFunction · 0.85
rt_pic_attach_irqFunction · 0.85
rt_pic_detach_irqFunction · 0.85
rt_pic_irq_enableFunction · 0.85
rt_pic_irq_disableFunction · 0.85
rt_pic_irq_ackFunction · 0.85
rt_pic_irq_maskFunction · 0.85
rt_pic_irq_unmaskFunction · 0.85
rt_pic_irq_eoiFunction · 0.85
rt_pic_irq_set_priorityFunction · 0.85
rt_pic_irq_get_priorityFunction · 0.85
rt_pic_irq_set_affinityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected