[realtek-ambz2] Disable SoftwareSerial and Wire

This commit is contained in:
Kuba Szczodrzyński
2023-05-30 18:15:44 +02:00
parent 41985e5743
commit 9c6e9d1525
3 changed files with 12 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
/* Copyright (c) Kuba Szczodrzyński 2022-07-03. */
#if LT_RTL8710B
#include <SoftwareSerial.h>
#include <sdk_private.h>
@@ -94,3 +96,5 @@ void SoftwareSerial::startTx() {
void SoftwareSerial::endTx() {
gtimer_stop(OBJ);
}
#endif

View File

@@ -1,5 +1,7 @@
/* Copyright (c) Kuba Szczodrzyński 2022-05-08. */
#if LT_RTL8710B
#include "Wire.h"
#include <sdk_private.h>
@@ -191,3 +193,5 @@ int TwoWire::peek() {
}
void TwoWire::flush() {}
#endif

View File

@@ -2,7 +2,9 @@
#error "Don't include this file directly"
#define LT_ARD_HAS_SERIAL 1
#define LT_ARD_HAS_WIFI 1
#define LT_ARD_HAS_SERIAL 1
#define LT_ARD_HAS_WIFI 1
#define LT_ARD_HAS_SOFTSERIAL 0
#define LT_ARD_HAS_WIRE 0
#define LT_ARD_MD5_MBEDTLS 1