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

Function rt_hw_context_switch_interrupt

libcpu/rx/cpuport.c:165–175  ·  view source on GitHub ↗

* switch thread out the interrupt * * @author LXZ (2014/11/8) * * @param rt_uint32_t from * @param rt_uint32_t to */

Source from the content-addressed store, hash-verified

163 * @param rt_uint32_t to
164 */
165void 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

Callers 2

rt_scheduleFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected