Reset the module to its initial state
static int reset( input_module_t *pModule );
This function resets the module to its initial state. It's called by the Input Runtime System at startup. The module has already been linked into an event bus line by the time this function is called.
If your module includes an interrupt handler, reset() should call devi_register_pulse() and store the pulse code it returns in the module's private data.
EOK
See any module.
Your code
Safety: | |
---|---|
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |