Andrew Tridgell
4289190654
HAL_PX4: added LIS3MDL on FMUv4
7 years ago
Kevin Lopez Alvarez
16a96b0643
HAL_PX4: Adjust SPI params for ppro
...
Add SPI prescalers for 180 MHz and decrease LIS3MDL SPI speed
8 years ago
Kevin Lopez Alvarez
88958b2dbf
HAL_PX4: add ppro support
8 years ago
Lucas De Marchi
91dabbe418
AP_HAL_PX4: implement method to ajust periodic callback
...
Just setting up the periodic callback sampling time on initialization
may not work well for sensors that need to request for a sample with a
bus transaction, sleep and then read the new data. That's because the
function will be kept calling at a periodic rate, while the time in
which we can read the value is not really that sampling time, but rather
the time in which sensor was last read + the time spent in the function
before sending a new sample request.
Instead of creating a new type of thread to handle this case, just
implement the minimal and easy case of updating the period for this
callback, that can only be called from inside the callback function.
8 years ago
Lucas De Marchi
87846fe049
AP_InertialSensor: use MPU6500 on aerofc
8 years ago
Lucas De Marchi
e1eda3066c
AP_HAL_PX4: SPIDevice: add missing ifdefs
...
These sensors may always be present on px4fmu* boards, but they are not
always present for all boards supported by the PX4Firmware.
8 years ago
Andrew Tridgell
05d9455f87
Revert "HAL_PX4: Add input parameter check."
...
This reverts commit 5f41b09fde
.
This change is completely incorrect. It is quite common to do SPI
transfers with zero send bytes, and is required for many sensors and
other devices
8 years ago
murata
5f41b09fde
HAL_PX4: Add input parameter check.
8 years ago
Andrew Tridgell
f039a37971
HAL_PX4: set names on all bus threads
8 years ago
Andrew Tridgell
37a9a78725
HAL_PX4: avoid bounce buffers for SPI when possible
8 years ago
Andrew Tridgell
638e89bd1d
HAL_PX4: implement set_chip_select for SPI
8 years ago
Andrew Tridgell
60801314e0
HAL_PX4: added different modes for external SPI
...
and lower bus speed to 1MHz
8 years ago
Andrew Tridgell
bcb6663187
HAL_PX4: added table of actual bus speeds for SPI
8 years ago
Andrew Tridgell
0e793e1214
HAL_PX4: lower SPI bus speed on invensense devices
...
now we are using DMA we don't need such high bus speed, and this makes
SPI reliable with a wider range of devices.
8 years ago
Andrew Tridgell
29bbee421e
HAL_PX4: enable sharing of SPI bus with PX4 with DMA
8 years ago
Andrew Tridgell
7220dc15f9
HAL_PX4: adjusted bus speeds on invensense sensors
8 years ago
Andrew Tridgell
0502eca7fc
HAL_PX4: removed unused variable
8 years ago
Andrew Tridgell
8e61b15384
HAL_PX4: added ICM20608_EXT SPI device
8 years ago
Andrew Tridgell
96e42696b7
HAL_PX4: added icm20608-am SPI device
8 years ago
Andrew Tridgell
b34ab2956b
HAL_PX4: added access to external SPI connector on FMUv2
8 years ago
Andrew Tridgell
42f242a07b
HAL_PX4: fixed build on PX4-v1
8 years ago
Andrew Tridgell
20cd165476
HAL_PX4: allow for missing SPIDevice table entries
...
removed panic
8 years ago
Andrew Tridgell
e5a4dd4e56
HAL_PX4: added perf counter on SPI devices
8 years ago
Andrew Tridgell
18df213069
HAL_PX4: fixed initial SPI bus speed and report new SPI instances
8 years ago
Andrew Tridgell
4dc5dc87b5
HAL_PX4: added ICM20608 to SPI table
8 years ago
Andrew Tridgell
16489d2a13
HAL_PX4: implement device IDs for I2C and SPI
8 years ago
Andrew Tridgell
e08babb7df
HAL_PX4: added new SPI devices for PH2
8 years ago
Andrew Tridgell
4bc5b715bf
HAL_PX4: define 9250 and fix SPI bus speeds
8 years ago
Andrew Tridgell
1bb450c722
HAL_PX4: moved to common DeviceBus class for thread management in I2C and SPI
8 years ago
Andrew Tridgell
972f85c490
HAL_PX4: go direct to NuttX for SPI transfers
8 years ago
Andrew Tridgell
c7bef33ab7
HAL_PX4: fixed lsm303d SPI name
8 years ago
Andrew Tridgell
254b71468c
HAL_PX4: added ms5611_int SPI descriptor
8 years ago
Andrew Tridgell
3aa36185e4
HAL_PX4: drop mpu6000 speed to 11MHz
...
match previous driver
8 years ago
Andrew Tridgell
ed6df09d12
HAL_PX4: added lsm9ds0 entries to SPI table
8 years ago
Andrew Tridgell
c2c7284a94
HAL_PX4: implement SPIDevice code for PX4
...
with thread per bus
8 years ago