|
|
Bottom half function. Registers a new bottom half. - Parameters:
-
| number | Number of the bottom half. Must be between 0 and NOS_MAX_BOTTOMHALFS - 1. |
| func | pointer to the bottom half function that shall be executed when the bottom half is triggered. |
| arg | optional argument passed to function func. |
- Returns:
- Zero on success. Nonzero values denote an error.
- Note:
- To unregister a bottom half function again, you may call this function with funcptr = NULL, or alternatively, you can use the macro nosBottomHalfUnregister.
NOSCFG_FEATURE_BOTTOMHALF must be defined to 1 to enable bottom half support.
Important! A bottom half function is not allowed to block, that means such a function must not call functions that may block (for example, this functions are nosTaskSleep, nosSemaGet, nosSemaWait, nosMutexLock).
- See also:
- nosBottomHalfUnregister, nosBottomHalfStart
|