mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-24 00:33:56 -04:00
AP_UAVCAN: allow multithreaded register/unregistering handlers
This commit is contained in:
parent
56068e65c6
commit
3a38c2f1eb
@ -10,7 +10,10 @@ extern const AP_HAL::HAL& hal;
|
|||||||
#define DEBUG_PKTS 0
|
#define DEBUG_PKTS 0
|
||||||
|
|
||||||
DEFINE_HANDLER_LIST_HEADS();
|
DEFINE_HANDLER_LIST_HEADS();
|
||||||
|
DEFINE_HANDLER_LIST_SEMAPHORES();
|
||||||
|
|
||||||
DEFINE_TRANSFER_OBJECT_HEADS();
|
DEFINE_TRANSFER_OBJECT_HEADS();
|
||||||
|
DEFINE_TRANSFER_OBJECT_SEMAPHORES();
|
||||||
|
|
||||||
#if AP_TEST_DRONECAN_DRIVERS
|
#if AP_TEST_DRONECAN_DRIVERS
|
||||||
CanardInterface* CanardInterface::canard_ifaces[] = {nullptr, nullptr, nullptr};
|
CanardInterface* CanardInterface::canard_ifaces[] = {nullptr, nullptr, nullptr};
|
||||||
|
5
libraries/AP_UAVCAN/canard/canard_helpers_user.h
Normal file
5
libraries/AP_UAVCAN/canard/canard_helpers_user.h
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#include <AP_HAL/AP_HAL.h> // to include SEMAPHORE
|
||||||
|
|
||||||
|
namespace Canard {
|
||||||
|
typedef ::HAL_Semaphore Semaphore;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user