mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
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
This commit is contained in:
1 parent
dad1774330
commit
a3e69e715d
3 files changed
+12
-12
No files matched your search
@@ -161,10 +161,10 @@ bool DeviceBus::adjust_timer(AP_HAL::Device::PeriodicHandle h, uint32_t period_u
|
||||
void DeviceBus::bouncebuffer_setup(const uint8_t *&buf_tx, uint16_t tx_len,
|
||||
uint8_t *&buf_rx, uint16_t rx_len)
|
||||
{
|
||||
if (buf_rx) {
|
||||
if (rx_len != 0) {
|
||||
bouncebuffer_setup_read(bounce_buffer_rx, &buf_rx, rx_len);
|
||||
}
|
||||
if (buf_tx) {
|
||||
if (tx_len != 0) {
|
||||
bouncebuffer_setup_write(bounce_buffer_tx, &buf_tx, tx_len);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user