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

View File

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

View File

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