mirror of https://github.com/ArduPilot/ardupilot
waf: add support for multithreaded register/unregister of DroneCAN handlers
This commit is contained in:
parent
5f2dd4ab5c
commit
56068e65c6
|
@ -448,6 +448,7 @@ class Board:
|
||||||
UAVCAN_NO_ASSERTIONS = 1,
|
UAVCAN_NO_ASSERTIONS = 1,
|
||||||
UAVCAN_NULLPTR = 'nullptr',
|
UAVCAN_NULLPTR = 'nullptr',
|
||||||
DRONECAN_CXX_WRAPPERS = 1,
|
DRONECAN_CXX_WRAPPERS = 1,
|
||||||
|
USE_USER_HELPERS = 1,
|
||||||
CANARD_ENABLE_DEADLINE = 1,
|
CANARD_ENABLE_DEADLINE = 1,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -458,6 +458,7 @@ def setup_canmgr_build(cfg):
|
||||||
if not env.AP_PERIPH:
|
if not env.AP_PERIPH:
|
||||||
env.DEFINES += [
|
env.DEFINES += [
|
||||||
'DRONECAN_CXX_WRAPPERS=1',
|
'DRONECAN_CXX_WRAPPERS=1',
|
||||||
|
'USE_USER_HELPERS=1',
|
||||||
'CANARD_ENABLE_DEADLINE=1',
|
'CANARD_ENABLE_DEADLINE=1',
|
||||||
'CANARD_MULTI_IFACE=1'
|
'CANARD_MULTI_IFACE=1'
|
||||||
]
|
]
|
||||||
|
|
1
wscript
1
wscript
|
@ -695,6 +695,7 @@ def _build_dynamic_sources(bld):
|
||||||
export_includes=[
|
export_includes=[
|
||||||
bld.bldnode.make_node('modules/DroneCAN/libcanard/dsdlc_generated/include').abspath(),
|
bld.bldnode.make_node('modules/DroneCAN/libcanard/dsdlc_generated/include').abspath(),
|
||||||
bld.srcnode.find_dir('modules/DroneCAN/libcanard/').abspath(),
|
bld.srcnode.find_dir('modules/DroneCAN/libcanard/').abspath(),
|
||||||
|
bld.srcnode.find_dir('libraries/AP_UAVCAN/canard/').abspath(),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
elif bld.env.AP_PERIPH:
|
elif bld.env.AP_PERIPH:
|
||||||
|
|
Loading…
Reference in New Issue