Browse Source

HAL_ChibiOS: default off serial protocols in AP_Periph

this allows for a GPS on high numbered ports
c415-sdk
Andrew Tridgell 4 years ago
parent
commit
23c0f257b6
  1. 5
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

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

@ -2161,6 +2161,11 @@ def add_apperiph_defaults(f): @@ -2161,6 +2161,11 @@ def add_apperiph_defaults(f):
#ifndef HAL_LOGGING_ENABLED
#define HAL_LOGGING_ENABLED 0
#endif
// default to no protocols, AP_Periph enables with params
#define HAL_SERIAL1_PROTOCOL -1
#define HAL_SERIAL2_PROTOCOL -1
#define HAL_SERIAL3_PROTOCOL -1
#define HAL_SERIAL4_PROTOCOL -1
''')

Loading…
Cancel
Save