AP_Networking: added evtimer wrapper

This commit is contained in:
Andrew Tridgell 2023-12-29 08:14:13 +11:00
parent cc8c671cb7
commit f5bee94cba
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
/*
wrapper around evtimer.c so we only build when events are
enabled. This prevents a complex check in the ChibiOS mk layer
*/
#include <hal.h>
#if CH_CFG_USE_EVENTS
#include "../../modules/ChibiOS/os/various/evtimer.c"
#endif

View File

@ -25,6 +25,10 @@ def configure(cfg):
]
extra_src.extend(['libraries/AP_Networking/lwip_hal/arch/*cpp'])
if cfg.env.BOARD_CLASS == 'ChibiOS':
extra_src.extend(['libraries/AP_Networking/lwip_hal/arch/evtimer.c'])
extra_src_inc.extend(['libraries/AP_Networking/config',
'libraries/AP_Networking/lwip_hal/include'])