mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Empty: add spi driver transaction
This commit is contained in:
parent
4fe889c9c5
commit
5c1e7abf0e
|
@ -14,6 +14,10 @@ AP_HAL::Semaphore* EmptySPIDeviceDriver::get_semaphore()
|
|||
return &_semaphore;
|
||||
}
|
||||
|
||||
void EmptySPIDeviceDriver::transaction(const uint8_t *tx, uint8_t *rx, uint16_t len)
|
||||
{}
|
||||
|
||||
|
||||
void EmptySPIDeviceDriver::cs_assert()
|
||||
{}
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ public:
|
|||
EmptySPIDeviceDriver();
|
||||
void init();
|
||||
AP_HAL::Semaphore* get_semaphore();
|
||||
void transaction(const uint8_t *tx, uint8_t *rx, uint16_t len);
|
||||
|
||||
void cs_assert();
|
||||
void cs_release();
|
||||
uint8_t transfer (uint8_t data);
|
||||
|
|
Loading…
Reference in New Issue