Otpvondoiats opened a new pull request, #22035:
URL: https://github.com/apache/nuttx/pull/22035

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   * sensor / sensor_rpmsg fixes:
     * unregister the rpmsg lower half before using `lower->priv`, which
       crashed `sensor_unregister()` with `CONFIG_SENSORS_RPMSG`;
     * do not sync an unread `struct sensor_state_s` to the remote core when
       an existing proxy is reused;
     * zero-initialize proxies and stubs (`stub->wakeup` was uninitialized);
     * refuse to unregister a topic that still has users (`-EBUSY`), and
       return an error code from `sensor_unregister()` /
       `sensor_custom_unregister()`;
     * use a flexible array for the rpmsg ioctl argument, which tripped the
       FORTIFY_SOURCE field-spanning write check; the message layout does
       not change.
   * Add `sensor_lowerhalf_s::notify_interval()` so a driver can report the
     interval it actually uses.
   * Add `SENSOR_TYPE_LIGHT_UNCALIBRATED` after the existing types; existing
     type values do not change.
   * fakesensor: add light, light uncalibrated, PPGQ and uncalibrated
     accelerometer / gyroscope / magnetometer readers, and
     `CONFIG_FAKESENSOR_SCHED_PRIORITY`.
   
   ## Impact
   
   * API: `sensor_unregister()` and `sensor_custom_unregister()` return
     `int` instead of `void`; existing callers that ignore the result still
     build.
   * New `notify_interval` member in `struct sensor_lowerhalf_s`, set by the
     upper half.
   * New sensor type `SENSOR_TYPE_LIGHT_UNCALIBRATED` (67),
     `SENSOR_TYPE_COUNT` becomes 68.
   
   ## Testing
   
   Host: Ubuntu 22.04 x86_64, gcc 13.4.0, arm-none-eabi-gcc 10.3.1,
   xtensa-esp32s3-elf-gcc 12.2.0, aarch64-none-elf-gcc
   
   * `./tools/checkpatch.sh -c -m`: all checks pass.
   * Every commit built on sim:rpserver with `CONFIG_UORB_TESTS`,
     `CONFIG_UORB_GENERATOR`, `CONFIG_USENSOR`, `CONFIG_SENSORS_FAKESENSOR`,
     `CONFIG_EVENT_FD`, `CONFIG_UORB_LOOP_MAX_EVENTS=16`, `CONFIG_DEBUG_UORB`:
     PASS, no warnings.
   * All 14 `CONFIG_UORB=y` defconfigs: PASS
     (`nrf9160-dk:modem_ns` with CMake as in CI).
   * sim:rpserver, `uorb_unit_test`:
   
         uORB note: PASS single-topic test
         uORB note: PASS orb 10-instances
         uORB note: PASS multi-topic test
         uORB note: PASS multi-topic reversed
         uORB note: PASS multi-topic 2 test (queue simulation)
         uORB note: PASS orb queuing
         TEST PASS
   


-- 
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]

Reply via email to