AP_HAL_Empty: rename QSPIDevice to WSPIDevice

This commit is contained in:
Andy Piper 2022-08-17 15:16:15 +02:00 committed by Andrew Tridgell
parent f8dd6a1b2a
commit eadee1ab8d
3 changed files with 9 additions and 9 deletions

View File

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

View File

@ -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"

View File

@ -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
{
};