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
Lucas De Marchi
0341af4858
aerofc: add some fixes to adc driver
...
- Other channels are irrelevant since they aren't physically
connected. Avoid the I2C transaction to get invalid data
- Port the driver to use only one address, as it should be
- Minor changes here and there
- Add test() method to read the latest value - helpful during
debugging.
2016-12-26 16:11:33 +01:00
José Roberto de Souza
53f2c1eb19
aerofc: Implement ADC
...
Measure the battery voltage of Aero RTF kit will be done by FPGA
and read by AeroFC using I2C bus.
The protocol is a little bit odd, it have different I2C slave
address for each "register", in future the FPGA RTL will
have a protocol more similar to other I2C sensors.
Also Aero RTF don't have a ADC line to measure current consumption.
2016-12-26 16:11:33 +01:00
Beat Küng
8d1f35bff6
board cmake: remove board_name.c from all boards
...
leftover after rebase
2016-12-21 11:35:10 +01:00
Beat Küng
c662113527
board_name.c: remove the file and HW_ARCH macro, use px4_board_name() instead
...
boards define BOARD_NAME, so board_name() is not necessary. HW_ARCH was
just a wrapper around board_name().
This patch simplifies to having only one common method px4_board_name().
2016-12-21 11:35:10 +01:00
Lorenz Meier
f9ed66fe8b
Board config for FMUv5: I2C bus naming consistency
2016-12-21 08:34:22 +01:00
Lorenz Meier
3bbf5da85a
FMUv5: Set default GPS port
2016-12-21 08:34:22 +01:00
David Sidrane
93996a6d6e
TAP uses BOARD_HAS_SHARED_PWM_TIMERS
...
Fixes https://github.com/PX4/Firmware/issues/5710
2016-12-21 08:34:22 +01:00
David Sidrane
4712ed1889
Complete px4fmu-v5 Led configuration
2016-12-21 08:34:22 +01:00
David Sidrane
3f64bf81f3
RGB LED cleanup
...
Removed dead code and magic numbers
Defined the RGB LED to support 2 timers
2016-12-21 08:34:22 +01:00
David Sidrane
a81aceea58
Add SD_CARD_POWER_CTRL as logical interface for SD Power Control
...
Set inital State to ON
Add interface macro.
2016-12-21 08:34:22 +01:00
David Sidrane
8610eced57
Changes to sim for upstream Nuttx
2016-12-21 08:34:21 +01:00
David Sidrane
b7cc04e0d2
Changes to tap_v1 for upstream Nuttx and hardfault logging
2016-12-21 08:34:21 +01:00
David Sidrane
402251819d
Changes to mindpx-v2 for upstream Nuttx and hardfault logging
2016-12-21 08:34:21 +01:00
David Sidrane
f149adac54
Changes to px4-stm32f4discovery for upstream Nuttx
2016-12-21 08:34:21 +01:00
David Sidrane
feda3e8c5c
Changes to px4io-v2 for upstream Nuttx
2016-12-21 08:34:21 +01:00
David Sidrane
63f04c1236
Changes to px4io-v1 for upstream Nuttx
2016-12-21 08:34:21 +01:00
David Sidrane
17633c0714
Changes to px4fmu-v4 for upstream Nuttx and hardfault logging
2016-12-21 08:34:21 +01:00
David Sidrane
d9575964a4
Changes to px4fmu-v2 for upstream Nuttx and hardfault logging
2016-12-21 08:34:21 +01:00
David Sidrane
82cb9353d1
Changes to px4fmu-v1 for upstream Nuttx
2016-12-21 08:34:21 +01:00
David Sidrane
64c00e6c95
Changes to crazyflie for upstream Nuttx and hardfault logging
2016-12-21 08:34:21 +01:00
David Sidrane
3ddeb07b25
Changes to auav-x21 for upstream Nuttx and hardfault logging
2016-12-21 08:34:21 +01:00
David Sidrane
a2adf94d13
Changes to aerofc-v1 for upstream Nuttx and hardfault logging
2016-12-21 08:34:21 +01:00
David Sidrane
2e235b9013
Changes to aerocore for upstream Nuttx
2016-12-21 08:34:21 +01:00
David Sidrane
1b17bc74b2
Adding zubaxgnss-v1 bootloader
2016-12-21 08:34:21 +01:00
David Sidrane
276bf47865
Adding s2740vc-v1 board and bootloader
2016-12-21 08:34:21 +01:00
David Sidrane
6ce7ade2c6
Adding px4nucleoF767ZI-v1
2016-12-21 08:34:21 +01:00
David Sidrane
bca8767981
Adding px4fmu-v5
2016-12-21 08:34:21 +01:00
David Sidrane
925102464b
Adding px4fmu-v4pro
2016-12-21 08:34:21 +01:00
David Sidrane
f14a0ba107
Adding px4flow-v2 bootloader
2016-12-21 08:34:21 +01:00
David Sidrane
24e8c213ee
Adding px4esc-v1 board and bootloader
2016-12-21 08:34:21 +01:00
David Sidrane
bba8371b0f
Adding px4cannode-v1 board and bootloader
2016-12-21 08:34:21 +01:00