Skip to content

Commit c362d0b

Browse files
committed
complete doxygen pass through
1 parent 560d707 commit c362d0b

File tree

8 files changed

+57
-21
lines changed

8 files changed

+57
-21
lines changed

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ MARKDOWN_ID_STYLE = DOXYGEN
380380
# globally by setting AUTOLINK_SUPPORT to NO.
381381
# The default value is: YES.
382382

383-
AUTOLINK_SUPPORT = YES
383+
AUTOLINK_SUPPORT = NO
384384

385385
# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
386386
# to include (a tag file for) the STL sources as input, then you should set this

src/Wippersnapper_V2.h

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,51 @@
99
* please support Adafruit and open-source hardware by purchasing
1010
* products from Adafruit!
1111
*
12-
* Copyright (c) Brent Rubell 2020-2024 for Adafruit Industries.
12+
* @copyright Copyright (c) Brent Rubell 2020-2024 for Adafruit Industries.
1313
*
1414
* BSD license, all text here must be included in any redistribution.
15-
*
1615
*/
1716

1817
#ifndef WIPPERSNAPPER_V2_H
1918
#define WIPPERSNAPPER_V2_H
2019

2120
// Debug Flags
2221
// #DEBUG_PROFILE 1 ///< Enable debug output for function profiling
23-
24-
#define WS_DEBUG ///< Define to enable debugging to serial terminal
25-
#define WS_PRINTER Serial ///< Where debug messages will be printed
22+
// Debug Flags
23+
#define WS_DEBUG /**< Define to enable debugging to serial terminal */
24+
#define WS_PRINTER Serial /**< Where debug messages will be printed */
2625

2726
/**************************************************************************/
2827
/*!
29-
@brief Debug print macros
28+
@brief Debug print macros for WipperSnapper debugging output
29+
@details These macros provide debug output functionality when WS_DEBUG is
30+
defined
3031
*/
3132
/**************************************************************************/
3233
#ifdef WS_DEBUG
3334
#define WS_DEBUG_PRINT(...) \
34-
{ WS_PRINTER.print(__VA_ARGS__); } ///< Prints debug output.
35+
{ WS_PRINTER.print(__VA_ARGS__); } /**< Print debug message to serial */
3536
#define WS_DEBUG_PRINTLN(...) \
36-
{ WS_PRINTER.println(__VA_ARGS__); } ///< Prints line from debug output.
37+
{ WS_PRINTER.println(__VA_ARGS__); } /**< Print debug message with newline \
38+
*/
3739
#define WS_DEBUG_PRINTHEX(...) \
38-
{ WS_PRINTER.print(__VA_ARGS__, HEX); } ///< Prints debug output.
40+
{ \
41+
WS_PRINTER.print(__VA_ARGS__, HEX); \
42+
} /**< Print debug message in hexadecimal */
3943
#else
4044
#define WS_DEBUG_PRINT(...) \
41-
{} ///< Prints debug output
45+
{} /**< Debug print */
4246
#define WS_DEBUG_PRINTLN(...) \
43-
{} ///< Prints line from debug output.
47+
{} /**< Debug println */
4448
#endif
4549

50+
/**************************************************************************/
51+
/*!
52+
@brief delay() function for use with a watchdog timer
53+
@param timeout
54+
Delay duration in milliseconds
55+
*/
56+
/**************************************************************************/
4657
#define WS_DELAY_WITH_WDT(timeout) \
4758
{ \
4859
unsigned long start = millis(); \
@@ -51,10 +62,10 @@
5162
yield(); \
5263
feedWDT(); \
5364
if (millis() < start) { \
54-
start = millis(); /* if rollover */ \
65+
start = millis(); \
5566
} \
5667
} \
57-
} ///< Delay function
68+
}
5869

5970
// Cpp STD
6071
#include <functional>

src/Wippersnapper_demo.ino.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# 1 "/var/folders/ff/dmzflvf52tq9kzvt6g8jglxw0000gn/T/tmpgufeaxcd"
2+
#include <Arduino.h>
3+
# 1 "/Users/brentrubell/Documents/Arduino/libraries/Adafruit_Wippersnapper_Arduino/src/Wippersnapper_demo.ino"
4+
# 11 "/Users/brentrubell/Documents/Arduino/libraries/Adafruit_Wippersnapper_Arduino/src/Wippersnapper_demo.ino"
5+
#include "ws_adapters.h"
6+
7+
ws_adapter_offline wipper;
8+
9+
#define WS_DEBUG
10+
void setup();
11+
void loop();
12+
#line 17 "/Users/brentrubell/Documents/Arduino/libraries/Adafruit_Wippersnapper_Arduino/src/Wippersnapper_demo.ino"
13+
void setup() {
14+
Serial.begin(115200);
15+
while (!Serial) delay(10);
16+
wipper.provision();
17+
wipper.connect();
18+
}
19+
20+
void loop() {
21+
wipper.run();
22+
}

src/adapters/wifi/ws_wifi_airlift.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
#define SPIWIFI SPI /*!< Instance of SPI interface used by an AirLift. */
3636

37-
extern Wippersnapper WS;
37+
extern Wippersnapper WS; ///< Global Wippersnapper instance
3838
/****************************************************************************/
3939
/*!
4040
@brief Class for using the AirLift Co-Processor network iface.

src/adapters/wifi/ws_wifi_esp32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* please support Adafruit and open-source hardware by purchasing
99
* products from Adafruit!
1010
*
11-
* Copyright (c) Brent Rubell 2020-2024 for Adafruit Industries.
11+
* Copyright (c) Brent Rubell 2020-2025 for Adafruit Industries.
1212
*
1313
* MIT license, all text here must be included in any redistribution.
1414
*
@@ -27,7 +27,7 @@
2727
#include "WiFiMulti.h"
2828
#include <NetworkClient.h>
2929
#include <NetworkClientSecure.h>
30-
extern Wippersnapper_V2 WsV2;
30+
extern Wippersnapper_V2 WsV2; ///< Wippersnapper client instance
3131

3232
/****************************************************************************/
3333
/*!

src/adapters/wifi/ws_wifi_ninafw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define SPIWIFI \
2828
SPI /*!< Instance of SPI interface used by an external uBlox module. */
2929

30-
extern Wippersnapper WS;
30+
extern Wippersnapper WS; ///< Global Wippersnapper instance
3131
/****************************************************************************/
3232
/*!
3333
@brief Class for using the AirLift Co-Processor network iface.

src/components/i2c/drivers/drvDps310.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,11 @@ class drvDps310 : public drvBase {
152152
}
153153

154154
protected:
155-
sensors_event_t _temp_event, _pressure_event;
156-
ulong _last_read;
155+
sensors_event_t _temp_event = {
156+
0}; ///< DPS310 sensor event for temperature readings
157+
sensors_event_t
158+
_pressure_event; ///< DPS310 sensor event for pressure readings
159+
ulong _last_read; ///< Last time the sensor was read
157160
Adafruit_DPS310 *_dps310; ///< DPS310 driver object
158161
Adafruit_Sensor *_dps_temp =
159162
NULL; ///< Holds data for the DPS310's temperature sensor

src/display/ws_display_driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ class ws_display_driver {
5151
uint8_t
5252
_displayRotationMode; ///< Display rotation (mode, not number in degrees)
5353
};
54-
extern Wippersnapper WS;
54+
extern Wippersnapper WS; ///< Global Wippersnapper instance
5555

5656
#endif // WIPPERSNAPPER_DISPLAY_H

0 commit comments

Comments
 (0)