|
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 | +## |
27 | 34 |
|
28 | 35 | # use "blobs/blob" so the headers can be included as "blob/foo.h", but |
29 | 36 | # we don't have to add $(BINDIR)/$(MODULE) to the include path. |
|
0 commit comments