Functions | |
| POSEXTERN void POSCALL | posSoftInt (UVAR_t intno, UVAR_t param) |
| POSEXTERN VAR_t POSCALL | posSoftIntSetHandler (UVAR_t intno, POSINTFUNC_t inthandler) |
| POSEXTERN VAR_t POSCALL | posSoftIntDelHandler (UVAR_t intno) |
Software Interrupt Function. Rises a software interrupt. The software interrupt handler will be executed as soon as possible. See above for a detailed description.
| intno | number of the interrupt to rise. Must be in the range of 0 to POSCFG_SOFTINTERRUPTS - 1. | |
| param | optional parameter that will be passed to the software interrupt handler funtion. |
If a software interrupt is triggered from inside the pico]OS scope, usually from application level, it is recommended to do a call to posTaskYield after this function is called. This will immediately start the interrupt handler.
Software Interrupt Function. Deletes a software interrupt handler function, that was set with posSoftIntSetHandler before.
| intno | number of the interrupt to rise. Must be in the range of 0 to POSCFG_SOFTINTERRUPTS - 1. |
| POSEXTERN VAR_t POSCALL posSoftIntSetHandler | ( | UVAR_t | intno, | |
| POSINTFUNC_t | inthandler | |||
| ) |
Software Interrupt Function. Sets a software interrupt handler function. Before a software interrupt can be rised by a call to posSoftInt, this function must be called to tell pico]OS the handler function for the interrupt.
| intno | number of the interrupt to rise. Must be in the range of 0 to POSCFG_SOFTINTERRUPTS - 1. | |
| inthandler | pointer to the interrupt handler function. |
1.5.4