michallenc opened a new pull request, #15912: URL: https://github.com/apache/nuttx/pull/15912
## Summary This ioctl clears the active fault inputs. Some faults can be latched (still active even if the source is not active anymore), so they have to be cleared from the software. The argument is a pointer to unsigned long bitmask variable. This bitmask specifies which faults are to be cleared. The ioctl also can fetch the faults active prior to the clear. These faults are saved to the argument specifying which faults are to be cleared. Therefore passing zero bitmask means the driver will only return active faults and clear none. Passing NULL pointer means the driver will clear all active and return none. The other commit implements the ioctl to samv7 PWM driver. ## Impact None to current implementations as this is a new ioctl call. Documentation updated with a proper description. Drivers not implementing the ioctl will returns -ENOTTY as usual. ## Testing Tested on SAMv7 custom board. The ioctl successfully reads currently active faults and the value is changed if the fault becomes active (and remains active if the fault is latched). All cases (passing `NULL` to clear all, `0` to read only and specific bitmask to clear some) tested. The PWM becomes active again once the faults are cleared. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org