Skip to content

Commit 96e37a4

Browse files
committed
blobs: include documentation in doxygen
1 parent 719787b commit 96e37a4

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

doc/doxygen/riot.doxyfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,7 @@ INPUT = ../../doc.txt \
778778
src/changelog.md \
779779
../../LOSTANDFOUND.md \
780780
../../makefiles/pseudomodules.inc.mk \
781+
../../makefiles/blob.inc.mk \
781782
../../sys/net/gnrc/routing/ipv6_auto_subnets/gnrc_ipv6_auto_subnets.c
782783

783784
# This tag can be used to specify the character encoding of the source files

makefiles/blob.inc.mk

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
1-
#
2-
# makes any file in BLOBS available via '#include "blob/<filename>.h"
3-
#
4-
# # Usage:
5-
#
6-
# Add this to an application or module Makefile:
7-
#
8-
# BLOBS += foo.ext
9-
#
10-
# Then include in C file or header:
11-
#
12-
# #include "blob/foo.ext.h"
13-
#
14-
# The blob can then be accessed using the symbols "foo_ext" and "foo_ext_len".
15-
#
16-
# # Subfolders
17-
#
18-
# It is possible to add files from subfolders to BLOBS:
19-
#
20-
# BLOBS += subfolder/my_file.foo
21-
#
22-
# The subfolder will be part of the generated header's path, but *not* of the
23-
# generated symbols. E.g., above blob would be made available by including
24-
# "blobs/subfolder/my_file.ext.h", which would define the symbols "my_file_ext"
25-
# and "my_file_ext_len". Beware possible symbol name clashes.
26-
#
1+
## @defgroup utils_blob Blob file module
2+
## @ingroup utils
3+
## @brief Include any file content as binary data in a RIOT application
4+
##
5+
## makes any file in BLOBS available via an include directive in the C code.
6+
##
7+
## # Usage:
8+
##
9+
## Add this to an application or module Makefile:
10+
##
11+
## ```
12+
## BLOBS += foo.ext
13+
## ```
14+
##
15+
## Then include in C file or header:
16+
##
17+
## ```
18+
## #include "blob/foo.ext.h"
19+
## ```
20+
##
21+
## The blob can then be accessed using the symbols "foo_ext" and "foo_ext_len".
22+
##
23+
## # Subfolders
24+
##
25+
## It is possible to add files from subfolders to BLOBS:
26+
##
27+
## BLOBS += subfolder/my_file.foo
28+
##
29+
## The subfolder will be part of the generated header's path, but *not* of the
30+
## generated symbols. E.g., above blob would be made available by including
31+
## "blobs/subfolder/my_file.ext.h", which would define the symbols "my_file_ext"
32+
## and "my_file_ext_len". Beware possible symbol name clashes.
33+
##
2734

2835
# use "blobs/blob" so the headers can be included as "blob/foo.h", but
2936
# we don't have to add $(BINDIR)/$(MODULE) to the include path.

0 commit comments

Comments
 (0)