15415 Commits

Author SHA1 Message Date
David Sidrane
8ac43c9988 nxphlite-v3:use px4_micro_hal PX4_BUS_NUMBER_{TO|FROM}_PX4 mapping 2017-09-29 10:13:51 -04:00
David Sidrane
64b9f687c0 px4_micro_hal:Provide PX4_BUS_NUMBER_{TO|FROM}_PX4 mapping
For historical reasons (NuttX STM32 numbering) PX4 bus numbering is
   1 based. All PX4 code, including, board code is written to assuming 1
   based numbering. In the PX4 I2C driver the 1 is subtracted from the
   buss number to address the freqency array.  These  macros are used to
   allow the board config to define the bus  numbers in terms of the NuttX
   driver numbering. 1,2,3 for one based numbering (STM32)  or 0,1,2
   for zero based (Kinetis)
2017-09-29 10:13:51 -04:00
David Sidrane
f5ed7586bf boards common:Fix formating 2017-09-29 10:13:51 -04:00
David Sidrane
c05429a70c samv7:Add PX4_NUMBER_I2C_BUSES 2017-09-29 10:13:51 -04:00
David Sidrane
01c1228b21 kinetis:Add define for PX4_NUMBER_I2C_BUSES 2017-09-29 10:13:51 -04:00
David Sidrane
c7823ffc58 spi:Print only device index (mask bus in _device
Print only the PX4_SPI_DEV_ID portion of the _device
2017-09-29 10:13:51 -04:00
David Sidrane
c264cb3224 erofc-v1:Updated to new NuttX IRQ API changes 2017-09-29 10:13:51 -04:00
David Sidrane
cb21aced5e PX4 System: Upstream NuttX defconfig changes
was:CONFIG_STM32_STM32F40XX is:CONFIG_STM32_STM32F4XXX
2017-09-29 10:13:51 -04:00
David Sidrane
58a6e57452 nxphlite-v3:Use ADC reading for VBUS
On this HW the VBUS detection is on the ADC. The ADC module
   reads the value and sets a global flag as well as publishing
   the value via uOrb.
2017-09-29 10:13:51 -04:00
David Sidrane
57892805e2 Sensors:add ID for fxos8700c mag and accel 2017-09-29 10:13:51 -04:00
David Sidrane
3b42d30623 fxos8700c:Inital commit mag and accel driver 2017-09-29 10:13:51 -04:00
David Sidrane
a7422dc9b6 nxphlite-v3:Define and use sensor reset pins
Define and use the Sensor reset pins. Added the cide to reset
   the nxphlite-v3 sensors.
2017-09-29 10:13:51 -04:00
David Sidrane
1682101cff mpl3115a2:Rework per data sheet
The driver appeared to not be finished and was a clone
   of another driver that did not work.
2017-09-29 10:13:51 -04:00
David Sidrane
526f07b527 gpio_led:Define GPIO_MAX_SERVO_PIN down to 4
Support boards with less than 6 (GPIO_SERVO_n) where
   n is now 16..4
2017-09-29 10:13:51 -04:00
David Sidrane
f4992e64f7 mtd:24xxxx_mtd add AT24C02 - AT24C16 2017-09-29 10:13:51 -04:00
David Sidrane
5f9b23b475 same70 micro hal 2017-09-29 10:13:51 -04:00
David Sidrane
7cb2319221 mavlink:Hardfaulting usage at 2552 - set to 2840 2017-09-29 10:13:51 -04:00
David Sidrane
ad5f166c75 nxphlite-v3:Removes spi stubs 2017-09-29 10:13:51 -04:00
David Sidrane
1af3ea322c BUGFIX:mtd hardfault in no SPI
NULL check needed to be done before SPI_XXXX calls
2017-09-29 10:13:51 -04:00
David Sidrane
01f520dfd2 Kinetis SPI is zero based 2017-09-29 10:13:51 -04:00
David Sidrane
72ea7ae8f6 px4cannode-v1:Updated board_button to match upstream NuttX
upstren widened board_buttons ti 32 bit
2017-09-29 10:13:51 -04:00
David Sidrane
7a0d6174e2 nxphlite-v1:Removed from PX4
Superceeded by nxphlite-v3 before released
2017-09-29 10:13:51 -04:00
David Sidrane
39632a67d9 nxphlite-v3:Removed usb init, there is none needed to be done by board 2017-09-29 10:13:51 -04:00
David Sidrane
1bc760c194 Kinetis:Added PX4 ADC Driver.
PX4 Driver for Kinetis uisng just ADC1.

   On V3 HW RC00 the USB_VBUS_VALID on pin 36 of the MCU
   ADC0_SE16/ADC1_SE22 is bridged to pin 29 ADC1_DP0 and read
   there. But because of missing schottky diodes on V3 HW RC00
   the signal is true (3.3V) when powered by the Power Module.
2017-09-29 10:13:51 -04:00
David Sidrane
eb9ebb26ea px4fmu-v4pro:Had wrong bus ID for SPI5, SPI6 2017-09-29 10:13:51 -04:00
David Sidrane
906d7e7acd Using Upstream NuttX up_cxxinitialize from app/platform/gnu
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
4fbcfae367 px4io firmware: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
143750d60c zubaxgnss-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
2a66de9452 tap-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
9156fa09e3 s2740vc-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
601ec364e8 px4nucleoF767ZI-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
06b21b60de px4io-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
1e25a61b37 px4fmu-v5: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
0bf10f02c9 px4fmu-v4pro: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
caaf2f8e6c px4fmu-v4: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
834ec95198 px4fmu-v2: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
db442ed26b px4flow-v2: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
dce72003fe px4esc-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
1bbab7b219 px4cannode-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
193a22288a px4-stm32f4discovery: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
2a266266c6 nxphlite-v3: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
8fa8835a6f nxphlite-v3: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
3e26c861a2 nxphlite-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
eca7e0aff7 mindpx-v2: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
ce3bcd0402 esc35-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
554fb822e6 crazyflie: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
6829855b1f auav-x21: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
0e6c7890c0 aerofc-v1: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
9bfee14be0 aerocore2: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00
David Sidrane
4b87fac11a aerocore: Upstream NuttX up_cxxinitialize moved
was:<nuttx/arch.h> is:platform/cxxinitialize.h
   Removed PX4 version:src/modules/systemlib/up_cxxinitialize.c
   in favor of nuttx platform/gnu/gnu_cxxinitialize.c
2017-09-29 10:13:51 -04:00