ardupilot/libraries/AP_HAL_Empty/SPIDriver.cpp
Lucas De Marchi 2ffb08b9ca AP_HAL_Empty: remove prefix from classes
Like was done for AP_HAL_Linux in 2ac96b9 ("AP_HAL_Linux: remove prefix
from AP_HAL_Linux classes"), remove the "Empty" prefix from class names
since we are already inside the Empty namespace.
2015-12-08 11:12:14 +11:00

49 lines
712 B
C++

#include "SPIDriver.h"
using namespace Empty;
SPIDeviceDriver::SPIDeviceDriver()
{}
void SPIDeviceDriver::init()
{}
AP_HAL::Semaphore* SPIDeviceDriver::get_semaphore()
{
return &_semaphore;
}
bool SPIDeviceDriver::transaction(const uint8_t *tx, uint8_t *rx, uint16_t len)
{
return true;
}
void SPIDeviceDriver::cs_assert()
{}
void SPIDeviceDriver::cs_release()
{}
uint8_t SPIDeviceDriver::transfer (uint8_t data)
{
return 0;
}
void SPIDeviceDriver::transfer (const uint8_t *data, uint16_t len)
{
}
SPIDeviceManager::SPIDeviceManager()
{}
void SPIDeviceManager::init()
{}
AP_HAL::SPIDeviceDriver* SPIDeviceManager::device(enum AP_HAL::SPIDevice, uint8_t index)
{
return &_device;
}