| 78 | } |
| 79 | |
| 80 | void rt_hw_interrupt_init(void) |
| 81 | { |
| 82 | extern rt_uint32_t rt_interrupt_from_thread; |
| 83 | extern rt_uint32_t rt_interrupt_to_thread; |
| 84 | extern rt_uint32_t rt_thread_switch_interrupt_flag; |
| 85 | extern rt_uint8_t rt_interrupt_nest; |
| 86 | extern void interrupt_thread_switch(void); |
| 87 | |
| 88 | register_handler(ik_ivg14,interrupt_thread_switch); //context_vdsp.S |
| 89 | |
| 90 | /* init interrupt nest, and context in thread sp */ |
| 91 | rt_interrupt_nest = 0; |
| 92 | rt_interrupt_from_thread = 0; |
| 93 | rt_interrupt_to_thread = 0; |
| 94 | rt_thread_switch_interrupt_flag = 0; |
| 95 | } |
| 96 | |
| 97 | static void rt_hw_pll_init(void) |
| 98 | { |
no outgoing calls
no test coverage detected