mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-10 23:29:25 +00:00
ESP32-C3 is not supported for USBHOST
This commit is contained in:
parent
477fa85318
commit
5131e2b1e5
@ -3,6 +3,3 @@ extends = esp32_base
|
|||||||
|
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
monitor_filters = esp32_c3_exception_decoder
|
monitor_filters = esp32_c3_exception_decoder
|
||||||
|
|
||||||
lib_deps = ${esp32_base.lib_deps}
|
|
||||||
tanakamasayuki/EspUsbHost@^1.0.2
|
|
@ -1,7 +1,7 @@
|
|||||||
#include "kbUsbBase.h"
|
#include "kbUsbBase.h"
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32C3
|
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
KbUsbBase::KbUsbBase(const char *name) : concurrency::OSThread(name)
|
KbUsbBase::KbUsbBase(const char *name) : concurrency::OSThread(name)
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "InputBroker.h"
|
#include "InputBroker.h"
|
||||||
#include "concurrency/OSThread.h"
|
#include "concurrency/OSThread.h"
|
||||||
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32C3
|
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
#include "EspUsbHost.h"
|
#include "EspUsbHost.h"
|
||||||
|
|
||||||
class KbUsbBase : public Observable<const InputEvent *>, public concurrency::OSThread, public EspUsbHost
|
class KbUsbBase : public Observable<const InputEvent *>, public concurrency::OSThread, public EspUsbHost
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "kbUsbImpl.h"
|
#include "kbUsbImpl.h"
|
||||||
#include "InputBroker.h"
|
#include "InputBroker.h"
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32C3
|
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
KbUsbImpl *kbUsbImpl;
|
KbUsbImpl *kbUsbImpl;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "kbUsbBase.h"
|
#include "kbUsbBase.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32C3
|
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The idea behind this class to have static methods for the event handlers.
|
* @brief The idea behind this class to have static methods for the event handlers.
|
||||||
|
@ -127,7 +127,7 @@ void setupModules()
|
|||||||
kbMatrixImpl = new KbMatrixImpl();
|
kbMatrixImpl = new KbMatrixImpl();
|
||||||
kbMatrixImpl->init();
|
kbMatrixImpl->init();
|
||||||
#endif // INPUTBROKER_MATRIX_TYPE
|
#endif // INPUTBROKER_MATRIX_TYPE
|
||||||
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32C3
|
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
kbUsbImpl = new KbUsbImpl();
|
kbUsbImpl = new KbUsbImpl();
|
||||||
kbUsbImpl->init();
|
kbUsbImpl->init();
|
||||||
#endif // INPUTBROKER_MATRIX_TYPE
|
#endif // INPUTBROKER_MATRIX_TYPE
|
||||||
|
@ -3,7 +3,7 @@ extends = esp32c3_base
|
|||||||
board = esp32-c3-devkitm-1
|
board = esp32-c3-devkitm-1
|
||||||
board_level = extra
|
board_level = extra
|
||||||
build_flags =
|
build_flags =
|
||||||
${esp32_base.build_flags}
|
${esp32c3_base.build_flags}
|
||||||
-D HELTEC_HT62
|
-D HELTEC_HT62
|
||||||
-I variants/heltec_esp32c3
|
-I variants/heltec_esp32c3
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
|
Loading…
Reference in New Issue
Block a user