Skip to content

Commit 3406ae8

Browse files
committed
Issue #3 "Doxygen warning message"
Fix all warning. Doxyfile has changed to ignore the cpp files. by modifying FILE_PATTERNS configuration.
1 parent 7ebaf39 commit 3406ae8

6 files changed

Lines changed: 19 additions & 11 deletions

File tree

Doxyfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -983,12 +983,7 @@ INPUT_FILE_ENCODING =
983983
# provided as doxygen C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
984984
# *.f18, *.f, *.for, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
985985

986-
FILE_PATTERNS = *.c \
987-
*.cc \
988-
*.cxx \
989-
*.cpp \
990-
*.c++ \
991-
*.java \
986+
FILE_PATTERNS = *.java \
992987
*.ii \
993988
*.ixx \
994989
*.ipp \

src/codec/adau1361lower.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ class Adau1361Lower {
223223
virtual void SetHpOutputGain(float left_gain, float right_gain, bool mute);
224224

225225
protected:
226+
/// @brief Internal variable to hold the I2C controller variable.
226227
::rpp_driver::I2cMasterInterface& i2c_;
228+
/// @brief Internal variable to hold the I2C device address.
227229
const unsigned int device_addr_;
228230
};
229231

src/gpio/gpiobasic.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,16 @@ class GpioBasic {
3434
public:
3535
/**
3636
* @brief Initialize the given GPIO pin and setup the pins.
37+
* @param sdk Sdk wrapper to inject the dependency.
3738
* @param pin GPIO pin number.
3839
* @details
3940
* Receive the GPIO pin.
40-
* And then, init it by ::rpp_driver::gpio_init().
41+
* And then, init it by SdkWrapper::gpio_init().
4142
*/
4243
GpioBasic(SdkWrapper &sdk, uint pin);
4344
GpioBasic() = delete;
4445
/**
45-
* @brief deinit the GPIO by ::rpp_driver::gpio_deinit();
46+
* @brief deinit the GPIO by SdkWrapper::gpio_deinit();
4647
*/
4748
virtual ~GpioBasic();
4849
/**

src/i2c/i2cmaster.hpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
#if __has_include(<hardware/i2c.h>)
1717
#include "hardware/i2c.h"
1818
#else
19-
// Alternate definition for unit test.
19+
/// Alternate definition for unit test.
2020
typedef int i2c_inst_t;
21+
/// Alternate definition of the return value on error for Google Test build.
2122
#define PICO_ERROR_GENERIC -1
23+
/// Alternate definition of the return value on error for I2C function number
24+
/// for GPIO.
2225
#define GPIO_FUNC_I2C 11
2326
#endif // __has_include(<hardware/i2c.h>)
2427

@@ -51,14 +54,14 @@ class I2cMaster : public I2cMasterInterface {
5154
* @param sda_pin GPIO pin #
5255
* @details
5356
* Receive the uninitialized I2C hardware by parameter i2c, and initialize
54-
* it by ::rpp_driver::i2c_init().
57+
* it by SdkWrapper::i2c_init().
5558
* And then, set given pins to I2C function, and pull them up.
5659
*/
5760
I2cMaster(SdkWrapper &sdk, i2c_inst_t &i2c, uint clock_freq, uint scl_pin,
5861
uint sda_pin);
5962
I2cMaster() = delete;
6063
/**
61-
* @brief deinit the I2C by ::rpp_driver::i2c_deinit();
64+
* @brief deinit the I2C by SdkWrapper::i2c_deinit();
6265
*/
6366
virtual ~I2cMaster();
6467
/**

src/i2c/i2cmasterinterface.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <stdlib.h>
1717

1818
#if !__has_include(<hardware/i2c.h>)
19+
/// @brief Alternate definition of the uint for Google Test build.
1920
typedef unsigned uint;
2021
#endif
2122

src/sdk/sdkwrapper.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@
2020
// Alternative include and definition for Unix/Win32
2121
#include <stdint.h>
2222
#include <stdlib.h>
23+
/// @brief Alternate definition for Google Test build.
2324
typedef int i2c_inst_t;
25+
/// @brief Alternate definition for Google Test build.
2426
typedef int gpio_function_t;
27+
/// @brief Alternate definition for Google Test build.
2528
typedef unsigned int PIO;
29+
/// @brief Alternate definition for Google Test build.
2630
typedef unsigned int pio_sm_config;
31+
/// @brief Alternate definition for Google Test build.
2732
typedef unsigned int clock_handle_t;
33+
/// @brief Alternate definition for Google Test build.
2834
typedef unsigned int pio_program_t;
2935
#ifdef _MSC_VER
3036
typedef unsigned int uint;

0 commit comments

Comments
 (0)