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

Function rt_hw_interrupt_umask

bsp/loongson/ls2kdev/drivers/interrupt.c:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void rt_hw_interrupt_umask(int irq)
215{
216 if (irq < LIOINTC0_IRQBASE + 32)
217 {
218 HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_ENABLE) = (1 << irq);
219 }
220 else if (irq < LIOINTC1_IRQBASE + 32)
221 {
222 HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_ENABLE) = (1 << (irq - 32));
223 }
224}
225
226void rt_hw_interrupt_mask(int irq)
227{

Callers 9

loongson_pin_initFunction · 0.70
ls2k_uart_controlFunction · 0.70
eth_initFunction · 0.50
ls1c_bxcan_initFunction · 0.50
ls1c_pin_irq_enableFunction · 0.50
touch_initFunction · 0.50
ls1c_uart_controlFunction · 0.50
eth_initFunction · 0.50
ls1b_uart_controlFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected