waf: add support for semaphores around allocate blocks in libcanard

This commit is contained in:
bugobliterator 2023-06-07 21:04:17 +10:00 committed by Andrew Tridgell
parent 679356245c
commit 8ac9480e3d
2 changed files with 3 additions and 1 deletions

View File

@ -447,6 +447,7 @@ class Board:
DRONECAN_CXX_WRAPPERS = 1,
USE_USER_HELPERS = 1,
CANARD_ENABLE_DEADLINE = 1,
CANARD_ALLOCATE_SEM=1
)

View File

@ -457,7 +457,8 @@ def setup_canmgr_build(cfg):
'DRONECAN_CXX_WRAPPERS=1',
'USE_USER_HELPERS=1',
'CANARD_ENABLE_DEADLINE=1',
'CANARD_MULTI_IFACE=1'
'CANARD_MULTI_IFACE=1',
'CANARD_ALLOCATE_SEM=1'
]
if cfg.env.HAL_CANFD_SUPPORTED: