Skip to content

Commit 30f36cc

Browse files
committed
Doxygen hade irrelevant methods
1 parent 40d4163 commit 30f36cc

File tree

5 files changed

+29
-237
lines changed

5 files changed

+29
-237
lines changed

Doxyfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,7 @@ PERLMOD_MAKEVAR_PREFIX =
21682168
# C-preprocessor directives found in the sources and include files.
21692169
# The default value is: YES.
21702170

2171-
ENABLE_PREPROCESSING = NO
2171+
ENABLE_PREPROCESSING = YES
21722172

21732173
# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
21742174
# in the source code. If set to NO, only conditional compilation will be
@@ -2177,7 +2177,7 @@ ENABLE_PREPROCESSING = NO
21772177
# The default value is: NO.
21782178
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
21792179

2180-
MACRO_EXPANSION = NO
2180+
MACRO_EXPANSION = YES
21812181

21822182
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
21832183
# the macro expansion is limited to the macros specified with the PREDEFINED and
@@ -2207,7 +2207,7 @@ INCLUDE_PATH =
22072207
# used.
22082208
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
22092209

2210-
INCLUDE_FILE_PATTERNS =
2210+
INCLUDE_FILE_PATTERNS =
22112211

22122212
# The PREDEFINED tag can be used to specify one or more macro names that are
22132213
# defined before the preprocessor is started (similar to the -D option of e.g.
@@ -2217,8 +2217,8 @@ INCLUDE_FILE_PATTERNS =
22172217
# recursively expanded use the := operator instead of the = operator.
22182218
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
22192219

2220-
PREDEFINED =
2221-
2220+
PREDEFINED = DOXYGEN IS_DESKTOP ESP32 ESP8266 ARDUINO_ARCH_MBED_RP2040 ARDUINO_ARCH_RP2040 __AVR__ STM32 ARDUINO_ARCH_SAMD
2221+
22222222
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
22232223
# tag can be used to specify a list of macro names that should be expanded. The
22242224
# macro definition that is found in the sources will be used. Use the PREDEFINED

docs/ext/Print.h

Lines changed: 0 additions & 93 deletions
This file was deleted.

docs/ext/Stream.h

Lines changed: 0 additions & 128 deletions
This file was deleted.

src/AudioLibs/NoArduino.h

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ namespace audio_tools {
3232

3333
class Print {
3434
public:
35+
#ifndef DOXYGEN
3536
virtual size_t write(uint8_t ch){
3637
// not implememnted: to be overritten
3738
return 0;
@@ -41,20 +42,10 @@ class Print {
4142
return write((const uint8_t *)str, strlen(str));
4243
}
4344

44-
virtual size_t write(const uint8_t *buffer, size_t size){
45-
if (buffer == nullptr) return 0;
46-
for (size_t j=0;j<size;j++){
47-
write(buffer[j]);
48-
}
49-
return size;
50-
}
51-
5245
virtual size_t write(const char *buffer, size_t size) {
5346
return write((const uint8_t *)buffer, size);
5447
}
5548

56-
virtual int availableForWrite() { return 1024; }
57-
5849
virtual int print(const char* msg){
5950
int result = strlen(msg);
6051
return write(msg, result);
@@ -85,16 +76,32 @@ class Print {
8576
return -1;
8677
}
8778

79+
#endif
80+
81+
virtual size_t write(const uint8_t *buffer, size_t size){
82+
if (buffer == nullptr) return 0;
83+
for (size_t j=0;j<size;j++){
84+
write(buffer[j]);
85+
}
86+
return size;
87+
}
88+
89+
90+
virtual int availableForWrite() { return 1024; }
91+
92+
8893
virtual void flush() { /* Empty implementation for backward compatibility */ }
8994
};
9095

9196
class Stream : public Print {
9297
public:
9398
virtual int available(){return 0;}
9499
virtual size_t readBytes(uint8_t* buffer, size_t len) {return 0;}
100+
#ifndef DOXYGEN
95101
virtual int read(){return -1;}
96102
virtual int peek(){return -1;}
97103
virtual void setTimeout(size_t t){}
104+
#endif
98105
operator bool(){
99106
return true;
100107
}

src/AudioTools/AudioStreams.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,19 @@ class AudioStream : public Stream, public AudioBaseInfoDependent, public AudioBa
5656
p_notify = &bi;
5757
}
5858

59+
#ifndef DOXYGEN
60+
5961
virtual size_t readBytes(char *buffer, size_t length) {
6062
return readBytes((uint8_t *)buffer, length);
6163
}
6264

65+
#endif
66+
6367
virtual size_t readBytes(uint8_t *buffer, size_t length) STREAM_WRITE_OVERRIDE = 0;
6468

6569
virtual size_t write(const uint8_t *buffer, size_t size) override = 0;
6670

71+
6772
operator bool() { return available() > 0; }
6873

6974
virtual AudioBaseInfo audioInfo() override {
@@ -110,8 +115,9 @@ class AudioStreamX : public AudioStream {
110115
AudioStreamX& operator=(AudioStreamX const&) = delete;
111116

112117
virtual size_t readBytes(uint8_t *buffer, size_t length) override { return not_supported(0); }
118+
#ifndef DOXYGEN
113119
virtual size_t write(const uint8_t *buffer, size_t size) override{ return not_supported(0); }
114-
virtual size_t write(uint8_t) override { return not_supported(0); }
120+
#endif
115121
virtual int available() override { return not_supported(0); };
116122

117123
virtual int read() override { return not_supported(-1); }

0 commit comments

Comments
 (0)