mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 22:18:29 -04:00
AP_HAL: added clock_pulse() method to SPIDevice
this is used by SPI SDCard interface for HAL_ChibiOS
This commit is contained in:
parent
52c8d3ed9f
commit
d28283e302
@ -45,6 +45,12 @@ public:
|
|||||||
virtual bool transfer_fullduplex(const uint8_t *send, uint8_t *recv,
|
virtual bool transfer_fullduplex(const uint8_t *send, uint8_t *recv,
|
||||||
uint32_t len) = 0;
|
uint32_t len) = 0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* send N bytes of clock pulses without taking CS. This is used
|
||||||
|
* when initialising microSD interfaces over SPI
|
||||||
|
*/
|
||||||
|
virtual bool clock_pulse(uint32_t len) { return false; }
|
||||||
|
|
||||||
/* See Device::get_semaphore() */
|
/* See Device::get_semaphore() */
|
||||||
virtual Semaphore *get_semaphore() override = 0;
|
virtual Semaphore *get_semaphore() override = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user