File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
set (CORE_SRCS
2
+ cores/esp32/dummySerial.cpp
2
3
cores/esp32/Print.cpp
3
4
cores/esp32/stdlib_noniso.c
4
5
cores/esp32/Stream.cpp
Original file line number Diff line number Diff line change 48
48
#include " esp_timer.h"
49
49
50
50
#define millis () (esp_timer_get_time() / 1000ULL )
51
+ #define micros64 () (esp_timer_get_time())
51
52
52
53
#define PI 3.1415926535897932384626433832795
53
54
#define HALF_PI 1.5707963267948966192313216916398
@@ -146,6 +147,15 @@ typedef unsigned int word;
146
147
void setup (void );
147
148
void loop (void );
148
149
150
+ class dummySerial {
151
+ public:
152
+ virtual void println (const char *);
153
+ };
154
+
155
+ extern dummySerial dSerial;
156
+
157
+ #define Serial dSerial
158
+
149
159
// The default is using Real Hardware random number generator
150
160
// But when randomSeed() is called, it turns to Psedo random
151
161
// generator, exactly as done in Arduino mainstream
Original file line number Diff line number Diff line change
1
+ // Dummy class to disable Arnduino Serial.println
2
+ // Add other Serial. members if needed
3
+
4
+
5
+ #include < Arduino.h>
6
+
7
+ void dummySerial::println (const char * c) {}
8
+
9
+ dummySerial dSerial;
You can’t perform that action at this time.
0 commit comments