Skip to content

Commit

Permalink
fixup! AP_HAL_ChibiOS: create AP_PERIPH_GPS_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jan 23, 2025
1 parent 5269bda commit 4e12b4e
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,12 @@
#define AP_RELAY_ENABLED 0
#endif

/*
* MSP configuration
*/
#ifndef AP_PERIPH_MSP_ENABLED
#define AP_PERIPH_MSP_ENABLED 1
#ifdef HAL_PERIPH_ENABLE_GPS
#error "Change 'define HAL_PERIPH_ENABLE_GPS' to 'define AP_PERIPH_GPS_ENABLED 1'"
#endif

#ifndef AP_PERIPH_GPS_ENABLED
#define AP_PERIPH_GPS_ENABLED 0
#endif

#define AP_GPS_ENABLED AP_PERIPH_GPS_ENABLED
Expand Down Expand Up @@ -362,14 +363,6 @@
#define AP_INERTIALSENSOR_ALLOW_NO_SENSORS defined(HAL_PERIPH_ENABLE_IMU)
#define AP_INERTIALSENSOR_HARMONICNOTCH_ENABLED 0

#ifdef HAL_PERIPH_ENABLE_GPS
#error "Change 'define HAL_PERIPH_ENABLE_GPS' to 'define AP_PERIPH_GPS_ENABLED 1'"
#endif

#ifndef AP_PERIPH_GPS_ENABLED
#define AP_PERIPH_GPS_ENABLED 0
#endif

#ifndef AP_BOOTLOADER_ALWAYS_ERASE
#define AP_BOOTLOADER_ALWAYS_ERASE 1
#endif
Expand Down

0 comments on commit 4e12b4e

Please sign in to comment.