Skip to content

Commit

Permalink
created basic docs structure
Browse files Browse the repository at this point in the history
  • Loading branch information
glencoe committed Jun 10, 2019
1 parent 715ee65 commit bf92a38
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Util/Atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "Util/Callback.h"

/**
* \file Util/Atomic.h
*
* This function has to be implemented
* by the user of the library.
* The function provided as parameter
Expand All @@ -22,15 +24,16 @@
* #include <util/atomic.h>
*
* void
* executeAtomically(CommunicationModule_Callback callback)
* executeAtomically(GenericCallback callback)
* {
* ATOMIC_BLOCK(ATOMIC_STATERESTORE)
* {
* callback.function(callback.argument);
* }
* }
*
* ```
*/

void
executeAtomically(GenericCallback callback);

Expand Down
2 changes: 2 additions & 0 deletions Util/Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <stdint.h>

/**
* \file Debug.h
*
* Implement print functions and compile with -DDEBUG=1
* to have debug messages printed.
*/
Expand Down
1 change: 1 addition & 0 deletions Util/PeriodicScheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "CException.h"

/**
* \file Util/PeriodicScheduler.h
* Overall idea here is simple.
* Have a timer interrupt set up, like so
*
Expand Down
7 changes: 6 additions & 1 deletion docs/Debug.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ The listed function declarations
have to be implemented by the
user.

.. doxygenfile:: Debug.h
Util/Debug.h
------------

**#include "Util/Debug.h"**

.. doxygenfile:: Util/Debug.h
15 changes: 15 additions & 0 deletions docs/MultiReaderBuffer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-----------------
MultiReaderBuffer
-----------------

Util/MultiReaderBuffer.h
~~~~~~~~~~~~~~~~~~~~~~~~

|includeMultiReaderBuffer|_


.. |includeMultiReaderBuffer| replace:: **#include "Util/MultiReaderBuffer.h"**
.. _includeMultiReaderBuffer: https://github.com/es-ude/EmbeddedUtil/blob/master/Util/MultiReaderBuffer.h


.. doxygenfile:: Util/MultiReaderBuffer.h
40 changes: 40 additions & 0 deletions docs/Mutex.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
------
Mutex
------


Util/Mutex.h
~~~~~~~~~~~~

|includeMutex|_


.. |includeMutex| replace:: **#include "Util/Mutex.h"**
.. _includeMutex: https://github.com/es-ude/EmbeddedUtil/blob/master/Util/Mutex.h


.. doxygenfile:: Util/Mutex.h

File
++++

.. literalinclude:: ../Util/Mutex.h
:language: c

Util/Atomic.h
~~~~~~~~~~~~~

|includeAtomic|_


.. |includeAtomic| replace:: **#include "Util/Atomic.h"**
.. _includeAtomic: https://github.com/es-ude/EmbeddedUtil/blob/master/Util/Atomic.h


.. doxygenfile:: Util/Atomic.h

File
++++

.. literalinclude:: ../Util/Atomic.h
:language: c
22 changes: 22 additions & 0 deletions docs/PeriodicScheduler.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----------------
PeriodicScheduler
-----------------


Util/PeriodicScheduler.h
~~~~~~~~~~~~~~~~~~~~~~~~

|includePeriodicScheduler|_


.. |includePeriodicScheduler| replace:: **#include "Util/PeriodicScheduler.h"**
.. _includePeriodicScheduler: https://github.com/es-ude/EmbeddedUtil/blob/master/Util/PeriodicScheduler.h


.. doxygenfile:: Util/PeriodicScheduler.h

File
~~~~

.. literalinclude:: ../Util/PeriodicScheduler.h
:language: c
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ embedded systems.
:maxdepth: 2
:caption: For Users

PeriodicScheduler
Debug
MultiReaderBuffer
Mutex

0 comments on commit bf92a38

Please sign in to comment.