AP_HAL_Empty: add spi driver transaction

This commit is contained in:
Pat Hickey 2012-12-17 17:12:15 -08:00 committed by Andrew Tridgell
parent 4fe889c9c5
commit 5c1e7abf0e
2 changed files with 6 additions and 0 deletions

View File

@ -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()
{}

View File

@ -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);