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 SPIDevice;
|
||||||
class SPIDeviceDriver;
|
class SPIDeviceDriver;
|
||||||
class SPIDeviceManager;
|
class SPIDeviceManager;
|
||||||
class QSPIDevice;
|
class WSPIDevice;
|
||||||
class QSPIDeviceManager;
|
class WSPIDeviceManager;
|
||||||
class Storage;
|
class Storage;
|
||||||
class UARTDriver;
|
class UARTDriver;
|
||||||
class Util;
|
class Util;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#include "Scheduler.h"
|
#include "Scheduler.h"
|
||||||
#include "Semaphores.h"
|
#include "Semaphores.h"
|
||||||
#include "SPIDevice.h"
|
#include "SPIDevice.h"
|
||||||
#include "QSPIDevice.h"
|
#include "WSPIDevice.h"
|
||||||
#include "Storage.h"
|
#include "Storage.h"
|
||||||
#include "UARTDriver.h"
|
#include "UARTDriver.h"
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
|
|
|
@ -17,21 +17,21 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_HAL/HAL.h>
|
#include <AP_HAL/HAL.h>
|
||||||
#include <AP_HAL/QSPIDevice.h>
|
#include <AP_HAL/WSPIDevice.h>
|
||||||
#include <AP_HAL/utility/OwnPtr.h>
|
#include <AP_HAL/utility/OwnPtr.h>
|
||||||
|
|
||||||
#ifndef HAL_USE_QSPI_DEFAULT_CFG
|
#ifndef HAL_USE_WSPI_DEFAULT_CFG
|
||||||
#define HAL_USE_QSPI_DEFAULT_CFG 1
|
#define HAL_USE_WSPI_DEFAULT_CFG 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace Empty
|
namespace Empty
|
||||||
{
|
{
|
||||||
|
|
||||||
class QSPIDevice : public AP_HAL::QSPIDevice
|
class WSPIDevice : public AP_HAL::WSPIDevice
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
QSPIDevice() { }
|
WSPIDevice() { }
|
||||||
|
|
||||||
/* See AP_HAL::Device::transfer() */
|
/* See AP_HAL::Device::transfer() */
|
||||||
bool transfer(const uint8_t *send, uint32_t send_len,
|
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