forked from espressif/arduino-esp32
Cleanup arduino useless bullshit
This commit is contained in:
@ -153,7 +153,7 @@ const char* File::name() const
|
||||
}
|
||||
|
||||
//to implement
|
||||
boolean File::isDirectory(void)
|
||||
bool File::isDirectory(void)
|
||||
{
|
||||
if (!_p) {
|
||||
return false;
|
||||
|
@ -75,7 +75,7 @@ public:
|
||||
time_t getLastWrite();
|
||||
const char* name() const;
|
||||
|
||||
boolean isDirectory(void);
|
||||
bool isDirectory(void);
|
||||
File openNextFile(const char* mode = FILE_READ);
|
||||
void rewindDirectory(void);
|
||||
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
virtual void close() = 0;
|
||||
virtual time_t getLastWrite() = 0;
|
||||
virtual const char* name() const = 0;
|
||||
virtual boolean isDirectory(void) = 0;
|
||||
virtual bool isDirectory(void) = 0;
|
||||
virtual FileImplPtr openNextFile(const char* mode) = 0;
|
||||
virtual void rewindDirectory(void) = 0;
|
||||
virtual operator bool() = 0;
|
||||
|
@ -16,6 +16,8 @@
|
||||
|
||||
#include "esp32-hal-log.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
using namespace fs;
|
||||
|
||||
FileImplPtr VFSImpl::open(const char* path, const char* mode)
|
||||
@ -385,7 +387,7 @@ const char* VFSFileImpl::name() const
|
||||
}
|
||||
|
||||
//to implement
|
||||
boolean VFSFileImpl::isDirectory(void)
|
||||
bool VFSFileImpl::isDirectory(void)
|
||||
{
|
||||
return _isDirectory;
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
void close() override;
|
||||
const char* name() const override;
|
||||
time_t getLastWrite() override;
|
||||
boolean isDirectory(void) override;
|
||||
bool isDirectory(void) override;
|
||||
FileImplPtr openNextFile(const char* mode) override;
|
||||
void rewindDirectory(void) override;
|
||||
operator bool();
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
#include "SPI.h"
|
||||
|
||||
#include "pins_arduino.h"
|
||||
|
||||
SPIClass::SPIClass(uint8_t spi_bus)
|
||||
:_spi_num(spi_bus)
|
||||
,_spi(NULL)
|
||||
|
@ -22,7 +22,6 @@
|
||||
#define _SPI_H_INCLUDED
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "pins_arduino.h"
|
||||
#include "esp32-hal-spi.h"
|
||||
|
||||
#define SPI_HAS_TRANSACTION
|
||||
|
@ -25,6 +25,8 @@ extern "C" {
|
||||
|
||||
#include "esp32-hal-log.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
using namespace fs;
|
||||
|
||||
class SPIFFSImpl : public VFSImpl
|
||||
|
@ -35,7 +35,7 @@ extern "C" {
|
||||
#include "esp32-hal-i2c.h"
|
||||
#include "esp32-hal-log.h"
|
||||
#include "Wire.h"
|
||||
#include "Arduino.h"
|
||||
#include "pins_arduino.h"
|
||||
|
||||
std::string toString(i2c_err_t val)
|
||||
{
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/queue.h"
|
||||
#include <string>
|
||||
#include "esp32-hal-i2c.h"
|
||||
|
||||
#define STICKBREAKER 'V1.1.0'
|
||||
#define I2C_BUFFER_LENGTH 128
|
||||
|
Reference in New Issue
Block a user