terry0012 opened a new pull request, #21606:
URL: https://github.com/apache/nuttx/pull/21606
## Summary
Add an optional mouse lower-half write callback and a virtual mouse device,
`/dev/umouse`, for injecting `struct mouse_report_s` reports. Support report
forwarding through the existing uinput RPMsg infrastructure.
## Impact
Disabled by default. Enable with `CONFIG_UINPUT_MOUSE`; the per-open buffer
capacity defaults to 8 reports. Existing mouse drivers can omit the write
callback.
Known limitations: RPMsg receive-side length validation and buffer-count
range validation are not yet implemented.
## Testing
- Built `sim:nsh` with umouse enabled using CMake/Ninja and GCC 13.4.0.
- Passed 18 simulator checks covering read/write, poll, multiple readers,
report data, and error handling.
- Host boundary tests reproduced short-RPMsg-payload over-read and
buffer-count truncation for values above 255.
- No physical hardware or real inter-core RPMsg testing performed.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]