Browse Source

AP_Periph: choose node stats - build files

Added - AP_Stat library and AP_STATS_ENABLED build options
apm_2208
Pradeep 3 years ago committed by Andrew Tridgell
parent
commit
183352cdfe
  1. 1
      Tools/AP_Periph/wscript
  2. 4
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

1
Tools/AP_Periph/wscript

@ -62,6 +62,7 @@ def build(bld):
'AC_PID', 'AC_PID',
'AP_BLHeli', 'AP_BLHeli',
'AP_ESC_Telem', 'AP_ESC_Telem',
'AP_Stats'
] ]
bld.ap_stlib( bld.ap_stlib(
name= 'AP_Periph_libs', name= 'AP_Periph_libs',

4
libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

@ -2782,6 +2782,10 @@ def add_apperiph_defaults(f):
#define AP_ROBOTISSERVO_ENABLED 0 #define AP_ROBOTISSERVO_ENABLED 0
#endif #endif
#ifndef AP_STATS_ENABLED
#define AP_STATS_ENABLED 0
#endif
/* /*
* GPS Backends - we selectively turn backends on. * GPS Backends - we selectively turn backends on.
* Note also that f103-GPS explicitly disables some of these backends. * Note also that f103-GPS explicitly disables some of these backends.

Loading…
Cancel
Save