mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Empty: rename QSPIDevice to WSPIDevice
This commit is contained in:
parent
f8dd6a1b2a
commit
eadee1ab8d
|
@ -16,8 +16,8 @@ namespace Empty {
|
|||
class SPIDevice;
|
||||
class SPIDeviceDriver;
|
||||
class SPIDeviceManager;
|
||||
class QSPIDevice;
|
||||
class QSPIDeviceManager;
|
||||
class WSPIDevice;
|
||||
class WSPIDeviceManager;
|
||||
class Storage;
|
||||
class UARTDriver;
|
||||
class Util;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "Scheduler.h"
|
||||
#include "Semaphores.h"
|
||||
#include "SPIDevice.h"
|
||||
#include "QSPIDevice.h"
|
||||
#include "WSPIDevice.h"
|
||||
#include "Storage.h"
|
||||
#include "UARTDriver.h"
|
||||
#include "Util.h"
|
||||
|
|
|
@ -17,21 +17,21 @@
|
|||
#pragma once
|
||||
|
||||
#include <AP_HAL/HAL.h>
|
||||
#include <AP_HAL/QSPIDevice.h>
|
||||
#include <AP_HAL/WSPIDevice.h>
|
||||
#include <AP_HAL/utility/OwnPtr.h>
|
||||
|
||||
#ifndef HAL_USE_QSPI_DEFAULT_CFG
|
||||
#define HAL_USE_QSPI_DEFAULT_CFG 1
|
||||
#ifndef HAL_USE_WSPI_DEFAULT_CFG
|
||||
#define HAL_USE_WSPI_DEFAULT_CFG 1
|
||||
#endif
|
||||
|
||||
namespace Empty
|
||||
{
|
||||
|
||||
class QSPIDevice : public AP_HAL::QSPIDevice
|
||||
class WSPIDevice : public AP_HAL::WSPIDevice
|
||||
{
|
||||
public:
|
||||
|
||||
QSPIDevice() { }
|
||||
WSPIDevice() { }
|
||||
|
||||
/* See AP_HAL::Device::transfer() */
|
||||
bool transfer(const uint8_t *send, uint32_t send_len,
|
||||
|
@ -52,7 +52,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class QSPIDeviceManager : public AP_HAL::QSPIDeviceManager
|
||||
class WSPIDeviceManager : public AP_HAL::WSPIDeviceManager
|
||||
{
|
||||
};
|
||||
|
Loading…
Reference in New Issue