mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Networking: added evtimer wrapper
This commit is contained in:
parent
cc8c671cb7
commit
f5bee94cba
10
libraries/AP_Networking/lwip_hal/arch/evtimer.c
Normal file
10
libraries/AP_Networking/lwip_hal/arch/evtimer.c
Normal 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
|
||||||
|
|
@ -25,6 +25,10 @@ def configure(cfg):
|
|||||||
]
|
]
|
||||||
|
|
||||||
extra_src.extend(['libraries/AP_Networking/lwip_hal/arch/*cpp'])
|
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',
|
extra_src_inc.extend(['libraries/AP_Networking/config',
|
||||||
'libraries/AP_Networking/lwip_hal/include'])
|
'libraries/AP_Networking/lwip_hal/include'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user