diff options
| author | Bright Pan <[email protected]> | 2015-03-10 18:07:33 +0800 |
|---|---|---|
| committer | Bright Pan <[email protected]> | 2015-03-10 18:24:17 +0800 |
| commit | a61d228b764baa422ad39dc14f91e80f225369df (patch) | |
| tree | 2799cb8e13517f6c65acea34f71dfef8519defb1 /examples/nanopb/SConscript | |
| parent | 0b5958d7006faf711fcf7fe33a4992bfb588aeee (diff) | |
Nanopb is a plain-C implementation of Google's Protocol Buffers data
format. It is targeted at 32 bit microcontrollers, but is also fit for
other embedded systems with tight (2-10 kB ROM, <1 kB RAM) memory
constraints.(http://koti.kapsi.fi/jpa/nanopb/)
How to use the example:
1. move examples/nanopb to bsp/xxxx/
2. enable macro RT_USING_NANOPB in rtconfig.h
3. regenerate the project file (scons --target=xxxx)
4. rebuild the project
Diffstat (limited to 'examples/nanopb/SConscript')
| -rw-r--r-- | examples/nanopb/SConscript | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/nanopb/SConscript b/examples/nanopb/SConscript new file mode 100644 index 0000000000..7c8bce9f26 --- /dev/null +++ b/examples/nanopb/SConscript @@ -0,0 +1,13 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +src = Split(''' +simple.c +simple.pb.c +''') +CPPPATH = [RTT_ROOT + '/examples/nanopb'] + +group = DefineGroup('Nanopb_test', src, depend = ['RT_USING_NANOPB'], CPPPATH = CPPPATH) + +Return('group')
\ No newline at end of file |
