Commit Graph
335 Commits
Author SHA1 Message Date
David Sidrane e31dfba4d0 Include up_internal.h to pickup extern _sdata definition
Fixes CI error
2017-01-23 22:10:38 +01:00
David Sidrane 59ec0e8aef Make board_crashdump.c arch agnostic and move to common 2017-01-23 22:10:38 +01:00
José Roberto de Souza 24f9a53f60 drivers: common: stm32: Do not call stm32_bbsram_savepanic() if not implemented 2017-01-23 22:10:38 +01:00
José Roberto de Souza 163bcc4bbc drivers: boards: Share board_crashdump() implementation 2017-01-23 22:10:38 +01:00
José Roberto de Souza 0b3fa7bfbb aerofc: Remove call to board_dma_alloc_init()
This commit will only remove the error message from serial console as
this board don't define BOARD_DMA_ALLOC_POOL_SIZE.
2017-01-23 22:10:38 +01:00
David Sidrane 27abc4fe6b Moved BOARD_EEPROM_WP_CTRL further down in file (from rebase) 2017-01-21 11:45:36 +01:00
David Sidrane daba952ba9 Use the BOARD_USES_PX4IO_VERSION to set an overridable FW search path
1) Key the exsitance of the PX4IO HW based on BOARD_USES_PX4IO_VERSION
   2) Set default PX4IO_FW_SEARCH_PATHS based on verions of the PXPIO HW
   3) allow PX4IO_FW_SEARCH_PATHS to be overwritten if a board provides
      BOARD_PX4IO_FW_SEARCH_PATHS
2017-01-21 11:45:36 +01:00
David Sidrane 7b4f048ca3 px4fmu-v4pro Add PX4IO HW version 2017-01-21 11:45:36 +01:00
David Sidrane edd0b46887 px4fmu-v2 Add PX4IO HW version 2017-01-21 11:45:36 +01:00
David Sidrane d4097a0e29 px4fmu-v1 Add PX4IO HW version 2017-01-21 11:45:36 +01:00
David Sidrane eb25358aac auav-x21 Add PX4IO HW version 2017-01-21 11:45:36 +01:00
David Sidrane df1ed22cf9 Distribute sitl and board based assets for posix targets
This adds a src/board/<bebop|eagle|excelsior|rpi|sitl>/board_config.h
   to configure the build as is done with the Nuttx targets

   src/platforms/posix/include/board_config.h has been renamed to
   src/platforms/posix/include/system_config.h to allow the common
   posix defines to be included with the board specific defines.
2017-01-21 11:45:36 +01:00
David Sidrane df6b46d0ba FMUV1 Moved magic numbers for battery V div and A per V to board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane 894b41e313 AEROCORE Moved magic numbers for battery V div and A per V to board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane f86a8c0e5e MINDPX_V2 Moved magic numbers for battery V div and A per V to board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane e0fa53f444 FMUV2 Moved magic numbers for battery V div and A per V to board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane 0baefec09f FMUV4 Moved magic numbers for battery V div and A per V to board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane e9ca626e19 TAP_V1 Moved magic numbers for battery V div and A per V to board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane fd25f0a594 AEROFC_V1 Moved magic numbers for battery V div and A per V to board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane a8b9c906f6 Board_config.h will provide the BOARD_BATTERYx_V_DIV
Prep to distrubte the magic numbers assgined in parameters.cpp
  to the board_config.h

  common/board_common.h will define:
  1) BOARD_BATTERY[1|2]_V_DIV as 0.0f if not defined to ensure
      the missing default trips a low voltage lockdown

  2) BOARD_BATTERY[1|2]_A_PER_V as 0.0f if not defined to ensure
     the default leads to an unrealistic current value.
2017-01-21 11:45:36 +01:00
David Sidrane 0fe915bdfd aerofc-v1 Removed empty GPIO table
aerofc-v1 does not used any user GPIO via the FMU Driver
2017-01-21 11:45:36 +01:00
David Sidrane cf893b6e89 TAP_V1 removed unused GPIO defines
Removed GPIO pins defines that were never user GPIO.
  Removed the camera_trigger driver as it depends on
  GPIO that are not on the TAP V1 HW
2017-01-21 11:45:36 +01:00
David Sidrane d0f2d5e07f crazyflie removed unused GPIO defines 2017-01-21 11:45:36 +01:00
David Sidrane aaf1b9c617 mindpx-v2: moved GPIO defines to mindpx-v2/board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane acb0684a4e aerocore **corrected** and moved GPIO defines to aerocore/board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane 1d4d0656c6 PX4FMUV1: moved GPIO defines to px4fmu-v1/board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane fe0f3bc557 PX4FMUV4PRO: moved GPIO defines to px4fmu-v4pro/board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane 356911ab0d PX4FMUV4: moved GPIO defines to px4fmu-v4/board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane 58a5ac78d9 PX4NUCLEOF767ZI_V1 **corrected** and moved GPIO defines to px4nucleoF767ZI-v1/board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane 0b89088065 PX4FMUV5 **corrected** and moved GPIO defines to px4fmu-v5/board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane 62dee7d096 PX4FMUV2: moved GPIO defines to px4fmu-v2/board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane b74d049e89 AUAVX21 **corrected** and moved GPIO defines to auav-x21/board_config.h 2017-01-21 11:45:36 +01:00
David Sidrane 33486d5047 FMU gpio operations now conditional on BOARD_FMU_GPIO_TAB in board_config
return -EINVAL on any GPIO ioctl operation when there are
       no GPIO pins defined in the board config. I.E.
       BOARD_FMU_GPIO_TAB is not defined.

       BOARD_FMU_GPIO_TAB is now optional and if it is defined
       then the logical BOARD_HAS_FMU_GPIO is defined and
       will enable the px4fmu driver to perform the physical GPIO
       operations.
2017-01-21 11:45:36 +01:00
David Sidrane 216ec6513a Removed CONFIG_ARCH_BOARD_AEROFC_V1 from tap_esc
Changed the CONFIG_ARCH_BOARD_AEROFC_V1 in tap_esc.cpp to
   TAP_ESC_NO_VERIFY_CONFIG to maintian the commitment to not
   have CONFIG_ARCH_BOARD_xxxx ifdef litter in the PX4 code base.
   TAP_ESC_NO_VERIFY_CONFIG will be removed (see todo) in
   aerofc-v1/board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane a5ec920756 Provide overridable default ADC Full scale Voltage and Scaling factors
This add the ability to override the defaults ADC values by
   defining values in board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane 44cb1afa4d Provide an overidable nop default for BOARD_EEPROM_WP_CTRL
To simplify integration of an EEPROM device with a Write Protect
  control pin, we add an overidable BOARD_EEPROM_WP_CTRL macro
  the does nothing.

  A board that provids the GPIO for WP should define
  BOARD_EEPROM_WP_CTRL(_protected_true) that will set the WP GPIO
  to the Protected state when passed true.
2017-01-20 22:55:04 +01:00
David Sidrane 3ea5a24924 crazyflie BugFix:Prevent a value of 0 being passed to px4_arch_configgpio
This prevents the meta value of 0 => not used from being passed to
  px4_arch_configgpio. As this would map to PORTA|PIN0 and is not
  the intended use.
2017-01-19 22:18:04 +01:00
David Sidrane 569b20d184 FMUv5 Fixed hardfault log
F7 was missing in the CONFIG_xxx that controlled enableing the
  hardfault_log boot code that can save the fault log
2017-01-17 23:11:20 -08:00
David Sidrane c235b44a90 FMUv5 define ADC usage 2017-01-14 02:26:48 -08:00
Lorenz Meier ece8d85860 Add ICM20602 to Pixracer config 2016-12-29 11:55:57 +01:00
Lorenz Meier f153e9b024 Nucleo board config: Add px4_tasks header 2016-12-27 21:00:51 +01:00
Lorenz Meier 57fd8ffbed Update Crazyflie board driver to include task header 2016-12-27 21:00:51 +01:00
Lorenz Meier faf83aad6a Aero FC: Add missing headers 2016-12-27 21:00:51 +01:00
Lorenz Meier 8a53866553 AUAV 2.1: Add missing headers 2016-12-27 21:00:51 +01:00
Lorenz Meier 1f8fabd619 MindPX: Add missing headers 2016-12-27 21:00:51 +01:00
Lorenz Meier 4ba12f71a0 FMUv2: Add missing headers 2016-12-27 21:00:51 +01:00
Lorenz Meier 6bc70af7a0 FMUv2: Add missing headers 2016-12-27 21:00:51 +01:00
Lorenz Meier c5a167935e FMUv4PRO: Add missing headers 2016-12-27 21:00:51 +01:00
Lorenz Meier b3c3f92988 FMUv5: Add missing headers 2016-12-27 21:00:51 +01:00
Lorenz Meier 520b1dfe07 TAP: Add missing headers 2016-12-27 21:00:51 +01:00