Commit Graph
16 Commits
Author SHA1 Message Date
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 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 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 5f9b23b475 same70 micro hal 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 0e55a9e868 micro hal:Kinetis I2C busses are numbered from 0 2017-09-29 10:13:51 -04:00
David Sidrane 1dbe8b8605 Adding Kinetis board common identity to micro hal 2017-09-29 10:13:51 -04:00
David Sidrane b2b6509ee0 Use micro hal fir px4_savepanic
To keep board_crashdump.c as common code we create a
  wrapper around the arch depandant call to
  stm32_bbsram_savepanic.
2017-09-29 10:13:51 -04:00
David Sidrane e93a5002a1 Updated Micro HAL for kinetis
Added px4_ abstraction macros
 Removed stm32.h reference
2017-09-29 10:13:51 -04:00
David Sidrane 9a21969189 px4_micro_hal:Define PX4_NUMBER_I2C_BUSES based on the arch/chip
PX4_NUMBER_I2C_BUSES number of busses that the HW can support
  not all of them my be usesd. I.E. The STM32F427 has 3 I2C
  busses but only I2C1 and I2C3 are used.
2017-08-08 21:45:01 +02:00
David Sidrane a2fa199a26 Define PX4_FLASH_BASE in micro HAL 2017-02-13 21:37:38 +01:00
David Sidrane bc8b117e85 common board idenity cleanup and add mfguid to api
Remove the notion of legacy from the api. The board level code
   will perform the traslation to lecacy format on the STM32.
   new targets will not need to do this as there is no case
   where the serial number were used by mfg for tracking.

   Extend board common api to get mfguid and mfguid formatted

   This adds an api that return the MFGUID as an array of bytes
   or a string.

   The data is returned with the MSD at index 0 and the LSD at
   index PX4_CPU_MFGUID_BYTE_LENGTH-1.

   Removed all reodering defines from the api and hal
2017-02-04 22:27:04 +01:00
David Sidrane bf0de997cb Adds a board common way of retriving the SoC' Unique identifier
This abstraction will support mcu's with longer ID's then the
   stm32 family.

   It provids a common interface for byte and 32 bit word access
   to the UUID data and a facility to reorder it.
2017-01-25 07:43:11 +01:00
David Sidrane 9db89ea4cf Added Micro Hal and configue for Upstream NuttX 2016-12-21 08:34:20 +01:00
Lorenz Meier 7398164fcc Updated PX4 use / API of low level GPIO and other hardware-centric system facilities 2016-05-28 14:56:17 +02:00