mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-05 13:15:54 +02:00
fix compile for ESP8266
This commit is contained in:
parent
468d7a6db7
commit
bf5fe900da
5 changed files with 9 additions and 3 deletions
|
@ -18,7 +18,6 @@ void app::setup() {
|
||||||
while (!Serial)
|
while (!Serial)
|
||||||
yield();
|
yield();
|
||||||
|
|
||||||
|
|
||||||
resetSystem();
|
resetSystem();
|
||||||
|
|
||||||
mSettings.setup();
|
mSettings.setup();
|
||||||
|
|
|
@ -14,7 +14,9 @@
|
||||||
#include "appInterface.h"
|
#include "appInterface.h"
|
||||||
#include "hm/hmSystem.h"
|
#include "hm/hmSystem.h"
|
||||||
#include "hm/hmRadio.h"
|
#include "hm/hmRadio.h"
|
||||||
|
#if defined(ESP32)
|
||||||
#include "hms/hmsRadio.h"
|
#include "hms/hmsRadio.h"
|
||||||
|
#endif
|
||||||
#include "publisher/pubMqtt.h"
|
#include "publisher/pubMqtt.h"
|
||||||
#include "publisher/pubSerial.h"
|
#include "publisher/pubSerial.h"
|
||||||
#include "utils/crc.h"
|
#include "utils/crc.h"
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include <RF24.h>
|
#include <RF24.h>
|
||||||
#include "SPI.h"
|
#include "SPI.h"
|
||||||
#include "radio.h"
|
#include "radio.h"
|
||||||
|
#include "../config/config.h"
|
||||||
#if defined(CONFIG_IDF_TARGET_ESP32S3)
|
#if defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
#include "nrfHal.h"
|
#include "nrfHal.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// Creative Commons - http://creativecommons.org/licenses/by-nc-sa/3.0/de/
|
// Creative Commons - http://creativecommons.org/licenses/by-nc-sa/3.0/de/
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if defined(ESP32)
|
||||||
#include "spiPatcher.h"
|
#include "spiPatcher.h"
|
||||||
|
|
||||||
SpiPatcher *SpiPatcher::mInstance = nullptr;
|
SpiPatcher *SpiPatcher::mInstance = nullptr;
|
||||||
|
#endif
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
#define __SPI_PATCHER_H__
|
#define __SPI_PATCHER_H__
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#if defined(ESP32)
|
||||||
|
|
||||||
#include "spiPatcherHandle.h"
|
#include "spiPatcherHandle.h"
|
||||||
|
|
||||||
#include <driver/spi_master.h>
|
#include <driver/spi_master.h>
|
||||||
|
@ -81,4 +83,6 @@ class SpiPatcher {
|
||||||
StaticSemaphore_t mutex_buffer;
|
StaticSemaphore_t mutex_buffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /*ESP32*/
|
||||||
|
|
||||||
#endif /*__SPI_PATCHER_H__*/
|
#endif /*__SPI_PATCHER_H__*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue