AP_UAVCAN: allow multithreaded register/unregistering handlers

This commit is contained in:
bugobliterator 2023-02-05 14:40:28 +11:00 committed by Andrew Tridgell
parent 56068e65c6
commit 3a38c2f1eb
2 changed files with 8 additions and 0 deletions

View File

@ -10,7 +10,10 @@ extern const AP_HAL::HAL& hal;
#define DEBUG_PKTS 0
DEFINE_HANDLER_LIST_HEADS();
DEFINE_HANDLER_LIST_SEMAPHORES();
DEFINE_TRANSFER_OBJECT_HEADS();
DEFINE_TRANSFER_OBJECT_SEMAPHORES();
#if AP_TEST_DRONECAN_DRIVERS
CanardInterface* CanardInterface::canard_ifaces[] = {nullptr, nullptr, nullptr};

View File

@ -0,0 +1,5 @@
#include <AP_HAL/AP_HAL.h> // to include SEMAPHORE
namespace Canard {
typedef ::HAL_Semaphore Semaphore;
}