Skip to content

Commit

Permalink
uORB/callbacks: Increase amount of callbacks to 32 in kernel mode
Browse files Browse the repository at this point in the history
In kernel mode there might be quite a lot of waiters, so increase the
callback list size substantially. Leave the other modes unaffected.
  • Loading branch information
pussuw committed Sep 21, 2023
1 parent 2af6ce3 commit 565c686
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platforms/common/uORB/uORBDeviceNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ typedef void *uorb_cb_handle_t;
#define UORB_INVALID_CB_HANDLE nullptr
#define uorb_cb_handle_valid(x) ((x) != nullptr)
#else
#if defined(CONFIG_BUILD_KERNEL)
#define MAX_EVENT_WAITERS 32
#else
#define MAX_EVENT_WAITERS 5
#endif
#define UORB_INVALID_CB_HANDLE -1
typedef int8_t uorb_cb_handle_t;
#define uorb_cb_handle_valid(x) ((x) >= 0)
Expand Down

0 comments on commit 565c686

Please sign in to comment.