Andrew Tridgell
64681cb05c
HAL_ChibiOS: allocate threads from any heap
...
this fixes a failure on MatekF405-Wing where it fails to allocate the
SPI thread for the IMU
6 years ago
Andrew Tridgell
a3e69e715d
HAL_ChibiOS: avoid doing one-way SPI transfers
...
these transfers use dummy bytes in the hal driver, which may not be in
DMA safe memory, so best to avoid them
6 years ago
Hannes Verschore
fefde53d58
AP_HAL_ChibiOS: Fix comment in Device.cpp
...
This was decreased to 100 in b07c599bf2
. I assume it would be best to also update the comment.
7 years ago
Andrew Tridgell
d3af854949
HAL_ChibiOS: fixed bootloader build
7 years ago
Andrew Tridgell
f083b80700
HAL_ChibiOS: added preallocation of DMA bouncebuffers
...
we need 512 bytes for microSD
7 years ago
Andrew Tridgell
c12d14d7a4
HAL_ChibiOS: check for ChibiOS features
7 years ago
Andrew Tridgell
2493cdbcb6
HAL_ChibiOS: switch to new bouncebuffer system
...
this removes the dma_flush and dma_invalidate methods and uses a
common bouncebuffer system for all CPU types. This enables microSD
support on STM32F7
7 years ago
Alexander Malishev
6b15b2f44f
HAL_ChibiOS: Enable sdcard on spi bus
7 years ago
Andrew Tridgell
e4ce2f532b
HAL_ChibiOS: make smaller builds possible
...
this allows for much smaller builds when you disable a lot of
options. This is part of an effort to create a bootloader of less than
16k using ChibiOS
7 years ago
Andrew Tridgell
9e84c45035
HAL_ChibiOS: dynamically create name for bus threads
7 years ago
Andrew Tridgell
b07c599bf2
Hal_Chibios: allow for faster INS sample times
...
we need higher priority on SPI and faster device loops
7 years ago
bugobliterator
5feef04f5f
HAL_ChibiOS: add support for CCM memory
...
this uses DMA bounce buffers for bus transfers, and falls back to CCM
ram in allocations if the type is unspecified
7 years ago
Andrew Tridgell
8b6bab7b17
HAL_Chibios: added ChibiOS HAL
...
this is based on initial work by Sid, reset here for easier merging
7 years ago
Peter Barker
7ce353e652
AP_HAL_PX4: use HAL_SEMAPHORE_BLOCK_FOREVER macro
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
Andrew Tridgell
f039a37971
HAL_PX4: set names on all bus threads
8 years ago
Andrew Tridgell
1bb450c722
HAL_PX4: moved to common DeviceBus class for thread management in I2C and SPI
8 years ago