Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
firmware
Commits
4427d8ac
Verified
Commit
4427d8ac
authored
Jul 21, 2019
by
Rahix
Browse files
fix(epicardium): Fix sphinx-doc errors
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
c2876eb8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Documentation/conf.py
View file @
4427d8ac
...
...
@@ -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"
:
...
...
epicardium/epicardium.h
View file @
4427d8ac
#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
...
...
epicardium/modules/stream.h
View file @
4427d8ac
#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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment