- 59 -
4.1.15
Interrupt Management Function
The interrupt management function provides a function to process requested external interrupts in real time.
The interrupt management service calls provided by the MR100 kernel include the following:
•
Returns from interrupt handler (ret_int)
The ret_int service call activates the scheduler to switch over tasks as necessary when returning from the interrupt
handler.
When using the C language,
, this function is automatically called at completion of the handler function. In this
case, therefore, there is no need to invoke this service call.
Figure 4.25 shows an interrupt processing flow. Processing a series of operations from task selection to register restoration
is called a "scheduler.".
Interrupt
TaskA
Save Registers
Handler Processing
iwup_tsk
ret_int
Task Selection
Restore Registers
TaskB
#pragma INTHANDLER Declare
(C language)
Figure 4.25 Interrupt process flow
31
In the case that the interruput handler is specified by "#pragma INTHANDLER".
Содержание Emulator System M3T-MR100
Страница 3: ...M3T MR100 4 V 1 00 User s Manual User s Manual Rev 1 00 2007 09 Real time OS for R32C 100 Series...
Страница 6: ......
Страница 14: ......
Страница 16: ...xii...
Страница 18: ......
Страница 78: ......
Страница 242: ......
Страница 269: ...253 235 entry_address alm2 236 name ID_alm2 237 exinf 0x12345678 238 239 240 241 242 End of Configuration 243...
Страница 279: ...263...
Страница 290: ......
Страница 294: ......
Страница 304: ...288...
Страница 306: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M3T MR100 4 V 1 00 REJ10J1523 0100 User s Manual...