waf: add support for multithreaded register/unregister of DroneCAN handlers

This commit is contained in:
bugobliterator 2023-02-05 14:38:49 +11:00 committed by Andrew Tridgell
parent 5f2dd4ab5c
commit 56068e65c6
3 changed files with 3 additions and 0 deletions

View File

@ -448,6 +448,7 @@ class Board:
UAVCAN_NO_ASSERTIONS = 1,
UAVCAN_NULLPTR = 'nullptr',
DRONECAN_CXX_WRAPPERS = 1,
USE_USER_HELPERS = 1,
CANARD_ENABLE_DEADLINE = 1,
)

View File

@ -458,6 +458,7 @@ def setup_canmgr_build(cfg):
if not env.AP_PERIPH:
env.DEFINES += [
'DRONECAN_CXX_WRAPPERS=1',
'USE_USER_HELPERS=1',
'CANARD_ENABLE_DEADLINE=1',
'CANARD_MULTI_IFACE=1'
]

View File

@ -695,6 +695,7 @@ def _build_dynamic_sources(bld):
export_includes=[
bld.bldnode.make_node('modules/DroneCAN/libcanard/dsdlc_generated/include').abspath(),
bld.srcnode.find_dir('modules/DroneCAN/libcanard/').abspath(),
bld.srcnode.find_dir('libraries/AP_UAVCAN/canard/').abspath(),
]
)
elif bld.env.AP_PERIPH: