* switch thread out the interrupt * * @author LXZ (2014/11/8) * * @param rt_uint32_t from * @param rt_uint32_t to */
| 163 | * @param rt_uint32_t to |
| 164 | */ |
| 165 | void rt_hw_context_switch_interrupt(rt_uint32_t from, rt_uint32_t to) |
| 166 | { |
| 167 | if (rt_thread_switch_interrupt_flag == 0) |
| 168 | { |
| 169 | rt_thread_switch_interrupt_flag = 1; |
| 170 | rt_interrupt_from_thread = from; |
| 171 | } |
| 172 | |
| 173 | rt_interrupt_to_thread = to; |
| 174 | ENTER_INTERRUPT(); |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * switch to the first thread,it just call one time |
no outgoing calls
no test coverage detected