Verified Commit 4427d8ac authored by Rahix's avatar Rahix
Browse files

fix(epicardium): Fix sphinx-doc errors



Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent c2876eb8
......@@ -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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment