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

Function rt_hw_interrupt_init

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

* This function will initialize hardware interrupt */

Source from the content-addressed store, hash-verified

153 * This function will initialize hardware interrupt
154 */
155void rt_hw_interrupt_init(void)
156{
157 rt_uint32_t idx;
158
159 rt_memset(irq_handle_table, 0x00, sizeof(irq_handle_table));
160 for (idx = 0; idx < MAX_INTR; idx ++)
161 {
162 irq_handle_table[idx].handler = rt_hw_interrupt_handler;
163 }
164
165 liointc_init();
166}
167
168rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
169 void *param, const char *name)

Callers 3

rt_hw_board_initFunction · 0.70
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50

Calls 2

rt_memsetFunction · 0.85
liointc_initFunction · 0.85

Tested by

no test coverage detected