mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
e8141ca5d8
This is a malloc-free implementation of the Concise Binary Object Representation (CBOR) data format for the RIOT-OS. This implementation mostly stand-alone, and it should be pretty easy to port to other platforms. We're only using the C STL and some custom network-related functionaliy which could be easily replaced by depending on arpa/inet.h. The CBOR API is straight-forward to use and provides encoding/decoding functionality for all major C types, such as: - int - uint64_t - int64_t - float - double - char* - struct tm - time_t It is possible to conditionally compile this module via CFLAGS: - CBOR_NO_SEMANTIC_TAGGING: All semantic-tagging features removed - CBOR_NO_CTIME: All ctime related features removed - CBOR_NO_FLOAT: All floating-point related features removed - CBOR_NO_PRINT: All features depending on printf removed
96 lines
1.7 KiB
Makefile
96 lines
1.7 KiB
Makefile
ifneq (,$(filter libcoap,$(USEPKG)))
|
|
USEMODULE += pnet
|
|
endif
|
|
|
|
ifneq (,$(filter pnet,$(USEMODULE)))
|
|
USEMODULE += posix
|
|
USEMODULE += destiny
|
|
USEMODULE += net_help
|
|
endif
|
|
|
|
ifneq (,$(filter destiny,$(USEMODULE)))
|
|
USEMODULE += sixlowpan
|
|
USEMODULE += net_help
|
|
USEMODULE += vtimer
|
|
endif
|
|
|
|
ifneq (,$(filter sixlowborder,$(USEMODULE)))
|
|
USEMODULE += sixlowpan
|
|
endif
|
|
|
|
ifneq (,$(filter rpl,$(USEMODULE)))
|
|
USEMODULE += routing
|
|
endif
|
|
|
|
ifneq (,$(filter routing,$(USEMODULE)))
|
|
USEMODULE += sixlowpan
|
|
endif
|
|
|
|
ifneq (,$(filter sixlowpan,$(USEMODULE)))
|
|
USEMODULE += ieee802154
|
|
USEMODULE += net_help
|
|
USEMODULE += net_if
|
|
USEMODULE += posix
|
|
USEMODULE += vtimer
|
|
endif
|
|
|
|
ifneq (,$(filter posix,$(USEMODULE)))
|
|
USEMODULE += uart0
|
|
USEMODULE += timex
|
|
USEMODULE += vtimer
|
|
endif
|
|
|
|
ifneq (,$(filter uart0,$(USEMODULE)))
|
|
USEMODULE += lib
|
|
USEMODULE += posix
|
|
endif
|
|
|
|
ifneq (,$(filter cbor,$(USEMODULE)))
|
|
USEMODULE += net_help
|
|
endif
|
|
|
|
ifneq (,$(filter cc110x%,$(USEMODULE)))
|
|
USEMODULE += protocol_multiplex
|
|
USEMODULE += vtimer
|
|
endif
|
|
|
|
ifneq (,$(filter cc110x_ng,$(USEMODULE)))
|
|
USEMODULE += transceiver
|
|
endif
|
|
|
|
ifneq (,$(filter cc2420,$(USEMODULE)))
|
|
USEMODULE += transceiver
|
|
USEMODULE += ieee802154
|
|
endif
|
|
|
|
ifneq (,$(filter at86rf231,$(USEMODULE)))
|
|
USEMODULE += transceiver
|
|
USEMODULE += ieee802154
|
|
USEMODULE += vtimer
|
|
endif
|
|
|
|
ifneq (,$(filter vtimer,$(USEMODULE)))
|
|
USEMODULE += timex
|
|
endif
|
|
|
|
ifneq (,$(filter net_if,$(USEMODULE)))
|
|
USEMODULE += transceiver
|
|
USEMODULE += net_help
|
|
endif
|
|
|
|
ifneq (,$(filter ccn_lite,$(USEMODULE)))
|
|
USEMODULE += crypto
|
|
endif
|
|
|
|
ifneq (,$(filter rgbled,$(USEMODULE)))
|
|
USEMODULE += color
|
|
endif
|
|
|
|
ifneq (,$(filter pipe,$(USEMODULE)))
|
|
USEMODULE += lib
|
|
endif
|
|
|
|
ifneq (,$(filter libfixmath-unittests,$(USEMODULE)))
|
|
USEPKG += libfixmath
|
|
endif
|