Make it non-fatal to perform SPI transfers from interrupt context.

This commit is contained in:
px4dev
2012-08-25 13:15:23 -07:00
parent 380d136483
commit e5e2d7216c
2 changed files with 18 additions and 2 deletions
+6
View File
@@ -81,6 +81,12 @@ protected:
/**
* Perform a SPI transfer.
*
* If called from interrupt context, this interface does not lock
* the bus and may interfere with non-interrupt-context callers.
*
* Clients in a mixed interrupt/non-interrupt configuration must
* ensure appropriate interlocking.
*
* At least one of send or recv must be non-null.
*
* @param send Bytes to send to the device, or nullptr if