px4-firmware/cmake
Ville Juven 6cb2c176d5 events: Move implementation of events::send() to lib/events
Events have a global, system-wide sequence number, which must be handled
atomically, (fetching and incrementing the sequence AND sending the event
to uORB must be atomic). Currently in FLAT mode, only one instance of this
sequence number exists, so it is OK to have it in px4_platform.

However, in PROTECTED mode px4_platform is instantiated both in kernel-
and user spaces, which makes two instances of this sequence number, which
causes problems in the mavlink event handling logic.

When mavlink receives and handles events, it expects that:
- The sequence numbers arrive in order (seq n is followed by n+1 etc)
- It increments by 1
- There is only one instance of the sequence number

In PROTECTED mode this is violated, as the kernel and user sequence
numbers run freely on their own. This patch fixes the issue by moving
the event backend to the kernel and by providing user access to it via
ioctl.
2023-09-25 09:54:11 +02:00
..
gtest events: Move implementation of events::send() to lib/events 2023-09-25 09:54:11 +02:00
bloaty.cmake cmake: fix and update packaging 2023-01-18 22:51:12 -05:00
ccache.cmake NuttX cmake improvements 2019-11-16 15:42:19 -05:00
coverage.cmake Coverage: Fix build for Mac OS 2020-01-28 08:59:25 +01:00
cygwin_cygpath.cmake Cygwin: use absolute path with cygpath conversion to the linker script again 2018-01-05 14:47:33 -05:00
doxygen.cmake CMakeLists.txt extract top level helpers (ccache, doxygen, metadata, etc) 2019-09-15 14:36:38 -04:00
kconfig.cmake cmake/kconfig.cmake: Don't populate config_kernel_list in nuttx flat builds 2023-09-13 21:00:07 +12:00
metadata.cmake metadata.cmake: enable ethernet parameters 2022-04-04 09:54:47 +02:00
package.cmake cmake: fix and update packaging 2023-01-18 22:51:12 -05:00
px4_add_common_flags.cmake initial minimal PX4_ROS2 platform and px4_ros2_default build (#20689) 2022-12-08 23:03:44 -05:00
px4_add_library.cmake Qurt lightweight parameter implementation (#20735) 2022-12-09 09:55:49 -08:00
px4_add_module.cmake events: Move implementation of events::send() to lib/events 2023-09-25 09:54:11 +02:00
px4_config.cmake initial minimal PX4_ROS2 platform and px4_ros2_default build (#20689) 2022-12-08 23:03:44 -05:00
px4_git.cmake cmake add a few include guards 2019-11-16 16:27:36 -05:00
px4_list_make_absolute.cmake Whitespace cleanup. 2021-10-19 13:29:26 -04:00
px4_metadata.cmake boards organization 2018-11-26 14:40:14 -08:00
px4_parse_function_args.cmake cmake: px4_parse_function_args re-enable failure on unparsed (invalid) arguments 2022-09-24 13:48:51 -04:00
sanitizers.cmake Add clusterfuzzlite to fuzz in CI 2022-01-07 10:17:12 -05:00