Tobias Müller před 8 měsíci
rodič
revize
0d948b6629
3 změnil soubory, kde provedl 29 přidání a 0 odebrání
  1. 7 0
      inc/header.h
  2. 18 0
      libs/foo/inc/foo.h
  3. 4 0
      src/main.cpp

+ 7 - 0
inc/header.h

@@ -10,16 +10,23 @@ Main header file.
 #define HEADER_H
 
 //////////////////////////////               Libraries                //////////////////////////////
+
 #include <stdio.h>
 #include "pico/stdlib.h"
 #include "foo.h"
 
 //////////////////////////////                Symbols                //////////////////////////////
+
 #ifndef SLEEP_TIME_MS
 #define SLEEP_TIME_MS 500
 #endif
 
 //////////////////////////////               Functions               //////////////////////////////
+
+/**
+ * @brief Test function
+ * 
+ */
 void bar(void);
 
 #endif

+ 18 - 0
libs/foo/inc/foo.h

@@ -17,6 +17,10 @@ Main header file.
 
 //////////////////////////////                 Class                 //////////////////////////////
 
+/**
+ * @brief Test class
+ * 
+ */
 class foo {
 
     public:
@@ -25,13 +29,27 @@ class foo {
 
 
     //////////////////////////               Constructor             //////////////////////////
+
+    /**
+     * @brief Construct a new foo object
+     * 
+     */
     foo();
 
     //////////////////////////              Deconstructor            //////////////////////////
+
+    /**
+     * @brief Destroy the foo object
+     * 
+     */
     ~foo();
 
     //////////////////////////                Methods                //////////////////////////
 
+    /**
+     * @brief Test method
+     * 
+     */
     void bar(void);
     
 };

+ 4 - 0
src/main.cpp

@@ -7,12 +7,15 @@ Main file.
 */
 
 //////////////////////////////               Libraries               //////////////////////////////
+
 #include "header.h"
 
 //////////////////////////////            Global Variable            //////////////////////////////
+
 foo baz = foo();
 
 //////////////////////////////                 Main                  //////////////////////////////
+
 int main(void) {
 
     //////////////////////////                 Setup                 //////////////////////////
@@ -46,6 +49,7 @@ int main(void) {
 }
 
 //////////////////////////////               Functions               //////////////////////////////
+
 void bar(void) {
 
      //////////////////////////                 Code                  //////////////////////////