Skip to content
Snippets Groups Projects
Verified Commit 4427d8ac authored by rahix's avatar rahix
Browse files

fix(epicardium): Fix sphinx-doc errors


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent c2876eb8
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,7 @@ try:
extensions.append("hawkmoth")
cautodoc_root = os.path.abspath("..")
cautodoc_clang = "-D__SPHINX_DOC"
has_hawkmoth = True
except ImportError as e:
if e.name == "clang":
......
#ifndef _EPICARDIUM_H
#define _EPICARDIUM_H
#include <stdint.h>
#include <stddef.h>
#include <errno.h>
#ifndef __SPHINX_DOC
/* stddef.h is not recognized by hawkmoth for some odd reason */
#include <stddef.h>
#else
typedef unsigned int size_t;
#endif /* __SPHINX_DOC */
/* clang-format off */
#define API_INT_CTRL_C 1
#define API_INT_BHI160 2
#define API_INT_MAX API_INT_BHI160
/*
* These definitions are required for the code-generator. Please don't touch!
*/
#ifndef API
#define API(id, def) def
#endif
......
#ifndef STREAM_H
#define STREAM_H
#include <stddef.h>
#include <stdint.h>
#ifndef __SPHINX_DOC
/* stddef.h is not recognized by hawkmoth for some odd reason */
#include <stddef.h>
#else
typedef unsigned int size_t;
#endif /* __SPHINX_DOC */
#include "FreeRTOS.h"
#include "queue.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment