diff --git a/apps/er-coap/Makefile.er-coap b/apps/er-coap/Makefile.er-coap deleted file mode 100755 index 16a3ffbb6..000000000 --- a/apps/er-coap/Makefile.er-coap +++ /dev/null @@ -1,2 +0,0 @@ -# Erbium will implement the REST Engine -CFLAGS += -DREST=coap_rest_implementation diff --git a/examples/ipso-objects/Makefile b/examples/ipso-objects/Makefile index 266467b34..c7aac9369 100644 --- a/examples/ipso-objects/Makefile +++ b/examples/ipso-objects/Makefile @@ -6,9 +6,9 @@ all: $(CONTIKI_PROJECT) CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\" -APPS += er-coap -APPS += oma-lwm2m -APPS += ipso-objects +MODULES += os/net/app-layer/coap +MODULES += os/services/lwm2m +MODULES += os/services/ipso-objects CONTIKI=../.. CONTIKI_WITH_IPV6 = 1 diff --git a/examples/ipso-objects/example-ipso-objects.c b/examples/ipso-objects/example-ipso-objects.c index bbb7aa464..b9802f2a4 100644 --- a/examples/ipso-objects/example-ipso-objects.c +++ b/examples/ipso-objects/example-ipso-objects.c @@ -37,8 +37,8 @@ */ #include "contiki.h" -#include "lwm2m-engine.h" -#include "ipso-objects.h" +#include "services/lwm2m/lwm2m-engine.h" +#include "services/ipso-objects/ipso-objects.h" #define DEBUG DEBUG_NONE #include "net/ip/uip-debug.h" diff --git a/examples/ipso-objects/example-ipso-temperature.c b/examples/ipso-objects/example-ipso-temperature.c index 30f320640..049496d55 100644 --- a/examples/ipso-objects/example-ipso-temperature.c +++ b/examples/ipso-objects/example-ipso-temperature.c @@ -35,7 +35,7 @@ * Niclas Finne */ -#include "ipso-objects.h" +#include "services/ipso-objects/ipso-objects.h" #include "lib/random.h" static int32_t last_value = 27000; diff --git a/examples/platform-specific/jn516x/tsch/tx-power-verification/rpl-border-router/Makefile b/examples/platform-specific/jn516x/tsch/tx-power-verification/rpl-border-router/Makefile index ba0d3a5d2..8e48379b8 100644 --- a/examples/platform-specific/jn516x/tsch/tx-power-verification/rpl-border-router/Makefile +++ b/examples/platform-specific/jn516x/tsch/tx-power-verification/rpl-border-router/Makefile @@ -14,10 +14,8 @@ PROJECTDIRS += .. ../../tools PROJECT_SOURCEFILES += rpl-tools.c CFLAGS += -DWITH_COAP -CFLAGS += -DREST=coap_rest_implementation CFLAGS += -DUIP_CONF_TCP=0 -APPS += er-coap - +MODULES += os/net/app-layer/coap MODULES += os/net/mac/tsch os/services/orchestra os/lib/json all: $(CONTIKI_PROJECT) diff --git a/examples/platform-specific/jn516x/tsch/uart1-test-node/Makefile b/examples/platform-specific/jn516x/tsch/uart1-test-node/Makefile index 1c6307318..21dc20bb1 100644 --- a/examples/platform-specific/jn516x/tsch/uart1-test-node/Makefile +++ b/examples/platform-specific/jn516x/tsch/uart1-test-node/Makefile @@ -14,8 +14,7 @@ PROJECT_SOURCEFILES += rpl-tools.c CFLAGS += -DWITH_COAP CFLAGS += -DREST=coap_rest_implementation CFLAGS += -DUIP_CONF_TCP=0 -APPS += er-coap - +MODULES += os/net/app-layer/coap MODULES += os/net/mac/tsch os/services/orchestra os/lib/json all: $(CONTIKI_PROJECT) diff --git a/examples/platform-specific/nrf52dk/coap-demo/Makefile b/examples/platform-specific/nrf52dk/coap-demo/Makefile index 7b3688764..51ad9194f 100644 --- a/examples/platform-specific/nrf52dk/coap-demo/Makefile +++ b/examples/platform-specific/nrf52dk/coap-demo/Makefile @@ -24,7 +24,7 @@ PROJECTDIRS += $(REST_RESOURCES_DIR) PROJECT_SOURCEFILES += $(REST_RESOURCES_FILES) # REST Engine shall use Erbium CoAP implementation -APPS += er-coap +MODULE += coap CONTIKI_WITH_RPL = 0 diff --git a/apps/er-coap/er-coap-block1.c b/os/net/app-layer/coap/coap-block1.c similarity index 98% rename from apps/er-coap/er-coap-block1.c rename to os/net/app-layer/coap/coap-block1.c index 2f895b5fa..6ecdce7c6 100644 --- a/apps/er-coap/er-coap-block1.c +++ b/os/net/app-layer/coap/coap-block1.c @@ -39,8 +39,8 @@ #include #include -#include "er-coap.h" -#include "er-coap-block1.h" +#include "coap.h" +#include "coap-block1.h" #define DEBUG 0 #if DEBUG diff --git a/apps/er-coap/er-coap-block1.h b/os/net/app-layer/coap/coap-block1.h similarity index 100% rename from apps/er-coap/er-coap-block1.h rename to os/net/app-layer/coap/coap-block1.h diff --git a/apps/er-coap/er-coap-conf.h b/os/net/app-layer/coap/coap-conf.h similarity index 100% rename from apps/er-coap/er-coap-conf.h rename to os/net/app-layer/coap/coap-conf.h diff --git a/apps/er-coap/er-coap-constants.h b/os/net/app-layer/coap/coap-constants.h similarity index 100% rename from apps/er-coap/er-coap-constants.h rename to os/net/app-layer/coap/coap-constants.h diff --git a/apps/er-coap/er-coap-engine.c b/os/net/app-layer/coap/coap-engine.c similarity index 99% rename from apps/er-coap/er-coap-engine.c rename to os/net/app-layer/coap/coap-engine.c index 872de013a..8cde3b836 100644 --- a/apps/er-coap/er-coap-engine.c +++ b/os/net/app-layer/coap/coap-engine.c @@ -40,7 +40,7 @@ #include #include #include -#include "er-coap-engine.h" +#include "coap-engine.h" #define DEBUG 0 #if DEBUG diff --git a/apps/er-coap/er-coap-engine.h b/os/net/app-layer/coap/coap-engine.h similarity index 95% rename from apps/er-coap/er-coap-engine.h rename to os/net/app-layer/coap/coap-engine.h index c6c6ae676..8b3ae1d2c 100644 --- a/apps/er-coap/er-coap-engine.h +++ b/os/net/app-layer/coap/coap-engine.h @@ -40,11 +40,11 @@ #define ER_COAP_ENGINE_H_ #include "pt.h" -#include "er-coap.h" -#include "er-coap-transactions.h" -#include "er-coap-observe.h" -#include "er-coap-separate.h" -#include "er-coap-observe-client.h" +#include "coap.h" +#include "coap-transactions.h" +#include "coap-observe.h" +#include "coap-separate.h" +#include "coap-observe-client.h" #define SERVER_LISTEN_PORT UIP_HTONS(COAP_SERVER_PORT) diff --git a/apps/er-coap/er-coap-observe-client.c b/os/net/app-layer/coap/coap-observe-client.c similarity index 99% rename from apps/er-coap/er-coap-observe-client.c rename to os/net/app-layer/coap/coap-observe-client.c index 21863200e..84edec98e 100644 --- a/apps/er-coap/er-coap-observe-client.c +++ b/os/net/app-layer/coap/coap-observe-client.c @@ -40,8 +40,8 @@ #include #include -#include "er-coap.h" -#include "er-coap-observe-client.h" +#include "coap.h" +#include "coap-observe-client.h" /* Compile this code only if client-side support for CoAP Observe is required */ #if COAP_OBSERVE_CLIENT diff --git a/apps/er-coap/er-coap-observe-client.h b/os/net/app-layer/coap/coap-observe-client.h similarity index 97% rename from apps/er-coap/er-coap-observe-client.h rename to os/net/app-layer/coap/coap-observe-client.h index dfb511620..c0ea0c5a2 100644 --- a/apps/er-coap/er-coap-observe-client.h +++ b/os/net/app-layer/coap/coap-observe-client.h @@ -40,8 +40,8 @@ #ifndef COAP_OBSERVING_CLIENT_H_ #define COAP_OBSERVING_CLIENT_H_ -#include "er-coap.h" -#include "er-coap-transactions.h" +#include "coap.h" +#include "coap-transactions.h" #ifndef COAP_OBSERVE_CLIENT #define COAP_OBSERVE_CLIENT 0 @@ -115,7 +115,7 @@ coap_observee_t *coap_obs_request_registration(uip_ipaddr_t *addr, notification_callback_t notification_callback, void *data); -/* TODO: this function may be moved to er-coap.c */ +/* TODO: this function may be moved to coap.c */ uint8_t coap_generate_token(uint8_t **token_ptr); #endif /* COAP_OBSERVING_CLIENT_H_ */ diff --git a/apps/er-coap/er-coap-observe.c b/os/net/app-layer/coap/coap-observe.c similarity index 99% rename from apps/er-coap/er-coap-observe.c rename to os/net/app-layer/coap/coap-observe.c index 311f08ac8..2237e4e25 100644 --- a/apps/er-coap/er-coap-observe.c +++ b/os/net/app-layer/coap/coap-observe.c @@ -38,7 +38,7 @@ #include #include -#include "er-coap-observe.h" +#include "coap-observe.h" #define DEBUG 0 #if DEBUG diff --git a/apps/er-coap/er-coap-observe.h b/os/net/app-layer/coap/coap-observe.h similarity index 98% rename from apps/er-coap/er-coap-observe.h rename to os/net/app-layer/coap/coap-observe.h index 4e9644bf0..7ff2bb502 100644 --- a/apps/er-coap/er-coap-observe.h +++ b/os/net/app-layer/coap/coap-observe.h @@ -39,8 +39,8 @@ #ifndef COAP_OBSERVE_H_ #define COAP_OBSERVE_H_ -#include "er-coap.h" -#include "er-coap-transactions.h" +#include "coap.h" +#include "coap-transactions.h" #include "stimer.h" #define COAP_OBSERVER_URL_LEN 20 diff --git a/apps/er-coap/er-coap-res-well-known-core.c b/os/net/app-layer/coap/coap-res-well-known-core.c similarity index 99% rename from apps/er-coap/er-coap-res-well-known-core.c rename to os/net/app-layer/coap/coap-res-well-known-core.c index ea3b4bbe9..117e362ab 100644 --- a/apps/er-coap/er-coap-res-well-known-core.c +++ b/os/net/app-layer/coap/coap-res-well-known-core.c @@ -37,7 +37,7 @@ */ #include -#include "er-coap-engine.h" +#include "coap-engine.h" #define DEBUG 0 #if DEBUG diff --git a/apps/er-coap/er-coap-separate.c b/os/net/app-layer/coap/coap-separate.c similarity index 99% rename from apps/er-coap/er-coap-separate.c rename to os/net/app-layer/coap/coap-separate.c index 5e2242b9c..03f95c411 100644 --- a/apps/er-coap/er-coap-separate.c +++ b/os/net/app-layer/coap/coap-separate.c @@ -39,8 +39,8 @@ #include "sys/cc.h" #include #include -#include "er-coap-separate.h" -#include "er-coap-transactions.h" +#include "coap-separate.h" +#include "coap-transactions.h" #define DEBUG 0 #if DEBUG diff --git a/apps/er-coap/er-coap-separate.h b/os/net/app-layer/coap/coap-separate.h similarity index 99% rename from apps/er-coap/er-coap-separate.h rename to os/net/app-layer/coap/coap-separate.h index 33a923240..1a89ed434 100644 --- a/apps/er-coap/er-coap-separate.h +++ b/os/net/app-layer/coap/coap-separate.h @@ -39,7 +39,7 @@ #ifndef COAP_SEPARATE_H_ #define COAP_SEPARATE_H_ -#include "er-coap.h" +#include "coap.h" typedef struct coap_separate { diff --git a/apps/er-coap/er-coap-transactions.c b/os/net/app-layer/coap/coap-transactions.c similarity index 99% rename from apps/er-coap/er-coap-transactions.c rename to os/net/app-layer/coap/coap-transactions.c index 3987b4814..613557f4d 100644 --- a/apps/er-coap/er-coap-transactions.c +++ b/os/net/app-layer/coap/coap-transactions.c @@ -38,8 +38,8 @@ #include "contiki.h" #include "contiki-net.h" -#include "er-coap-transactions.h" -#include "er-coap-observe.h" +#include "coap-transactions.h" +#include "coap-observe.h" #define DEBUG 0 #if DEBUG diff --git a/apps/er-coap/er-coap-transactions.h b/os/net/app-layer/coap/coap-transactions.h similarity index 99% rename from apps/er-coap/er-coap-transactions.h rename to os/net/app-layer/coap/coap-transactions.h index 10697134a..49e35c0f2 100644 --- a/apps/er-coap/er-coap-transactions.h +++ b/os/net/app-layer/coap/coap-transactions.h @@ -39,7 +39,7 @@ #ifndef COAP_TRANSACTIONS_H_ #define COAP_TRANSACTIONS_H_ -#include "er-coap.h" +#include "coap.h" /* * Modulo mask (thus +1) for a random number to get the tick number for the random diff --git a/apps/er-coap/er-coap.c b/os/net/app-layer/coap/coap.c similarity index 99% rename from apps/er-coap/er-coap.c rename to os/net/app-layer/coap/coap.c index 3c71ff6f9..0823576f8 100644 --- a/apps/er-coap/er-coap.c +++ b/os/net/app-layer/coap/coap.c @@ -42,8 +42,8 @@ #include "sys/cc.h" #include "contiki-net.h" -#include "er-coap.h" -#include "er-coap-transactions.h" +#include "coap.h" +#include "coap-transactions.h" #define DEBUG 0 #if DEBUG @@ -883,7 +883,7 @@ coap_set_header_proxy_uri(void *packet, const char *uri) { coap_packet_t *const coap_pkt = (coap_packet_t *)packet; - /*TODO Provide alternative that sets Proxy-Scheme and Uri-* options and provide er-coap-conf define */ + /*TODO Provide alternative that sets Proxy-Scheme and Uri-* options and provide coap-conf define */ coap_pkt->proxy_uri = uri; coap_pkt->proxy_uri_len = strlen(uri); diff --git a/apps/er-coap/er-coap.h b/os/net/app-layer/coap/coap.h similarity index 99% rename from apps/er-coap/er-coap.h rename to os/net/app-layer/coap/coap.h index be932f038..9d88886af 100644 --- a/apps/er-coap/er-coap.h +++ b/os/net/app-layer/coap/coap.h @@ -41,8 +41,8 @@ #include /* for size_t */ #include "contiki-net.h" -#include "er-coap-constants.h" -#include "er-coap-conf.h" +#include "coap-constants.h" +#include "coap-conf.h" /* sanity check for configured values */ #define COAP_MAX_PACKET_SIZE (COAP_MAX_HEADER_SIZE + REST_MAX_CHUNK_SIZE) diff --git a/apps/er-coap/rest-constants.h b/os/net/app-layer/coap/rest-constants.h similarity index 100% rename from apps/er-coap/rest-constants.h rename to os/net/app-layer/coap/rest-constants.h diff --git a/apps/er-coap/rest-engine.c b/os/net/app-layer/coap/rest-engine.c similarity index 100% rename from apps/er-coap/rest-engine.c rename to os/net/app-layer/coap/rest-engine.c diff --git a/apps/er-coap/rest-engine.h b/os/net/app-layer/coap/rest-engine.h similarity index 96% rename from apps/er-coap/rest-engine.h rename to os/net/app-layer/coap/rest-engine.h index 41e181c33..cf9faa734 100644 --- a/apps/er-coap/rest-engine.h +++ b/os/net/app-layer/coap/rest-engine.h @@ -45,14 +45,8 @@ #include "contiki-lib.h" #include "rest-constants.h" -/* list of valid REST Enigne implementations */ -#define REGISTERED_ENGINE_ERBIUM coap_rest_implementation -#define REGISTERED_ENGINE_HELIUM http_rest_implementation - -/* sanity check for configured implementation */ -#if !defined(REST) || (REST != REGISTERED_ENGINE_ERBIUM && REST != REGISTERED_ENGINE_HELIUM) -#error "Define a valid REST Engine implementation (REST define)!" -#endif +/* NOTE: this will be removed - now it is always set to erbium CoAP implementation */ +#define REST coap_rest_implementation /* * The maximum buffer size that is provided for resource responses and must be respected due to the limited IP buffer. diff --git a/apps/ipso-objects/Makefile.ipso-objects b/os/services/ipso-objects/Makefile.ipso-objects similarity index 100% rename from apps/ipso-objects/Makefile.ipso-objects rename to os/services/ipso-objects/Makefile.ipso-objects diff --git a/apps/ipso-objects/ipso-button.c b/os/services/ipso-objects/ipso-button.c similarity index 99% rename from apps/ipso-objects/ipso-button.c rename to os/services/ipso-objects/ipso-button.c index f40410ea0..adda46d1e 100644 --- a/apps/ipso-objects/ipso-button.c +++ b/os/services/ipso-objects/ipso-button.c @@ -44,7 +44,7 @@ #include "contiki.h" #include "lwm2m-object.h" #include "lwm2m-engine.h" -#include "er-coap-engine.h" +#include "coap-engine.h" #define DEBUG 0 #if DEBUG diff --git a/apps/ipso-objects/ipso-leds-control.c b/os/services/ipso-objects/ipso-leds-control.c similarity index 99% rename from apps/ipso-objects/ipso-leds-control.c rename to os/services/ipso-objects/ipso-leds-control.c index 578dac3d2..38f150f39 100644 --- a/apps/ipso-objects/ipso-leds-control.c +++ b/os/services/ipso-objects/ipso-leds-control.c @@ -44,7 +44,7 @@ #include "lwm2m-object.h" #include "lwm2m-engine.h" -#include "er-coap-engine.h" +#include "coap-engine.h" #include "dev/leds.h" #include diff --git a/apps/ipso-objects/ipso-light-control.c b/os/services/ipso-objects/ipso-light-control.c similarity index 100% rename from apps/ipso-objects/ipso-light-control.c rename to os/services/ipso-objects/ipso-light-control.c diff --git a/apps/ipso-objects/ipso-objects.c b/os/services/ipso-objects/ipso-objects.c similarity index 100% rename from apps/ipso-objects/ipso-objects.c rename to os/services/ipso-objects/ipso-objects.c diff --git a/apps/ipso-objects/ipso-objects.h b/os/services/ipso-objects/ipso-objects.h similarity index 100% rename from apps/ipso-objects/ipso-objects.h rename to os/services/ipso-objects/ipso-objects.h diff --git a/apps/ipso-objects/ipso-temperature.c b/os/services/ipso-objects/ipso-temperature.c similarity index 99% rename from apps/ipso-objects/ipso-temperature.c rename to os/services/ipso-objects/ipso-temperature.c index 457dfe0f8..1851245e2 100644 --- a/apps/ipso-objects/ipso-temperature.c +++ b/os/services/ipso-objects/ipso-temperature.c @@ -45,7 +45,7 @@ #include "ipso-objects.h" #include "lwm2m-object.h" #include "lwm2m-engine.h" -#include "er-coap-engine.h" +#include "coap-engine.h" #ifdef IPSO_TEMPERATURE extern const struct ipso_objects_sensor IPSO_TEMPERATURE; diff --git a/apps/oma-lwm2m/Makefile.oma-lwm2m b/os/services/lwm2m/Makefile.lwm2m similarity index 100% rename from apps/oma-lwm2m/Makefile.oma-lwm2m rename to os/services/lwm2m/Makefile.lwm2m diff --git a/apps/oma-lwm2m/lwm2m-device.c b/os/services/lwm2m/lwm2m-device.c similarity index 100% rename from apps/oma-lwm2m/lwm2m-device.c rename to os/services/lwm2m/lwm2m-device.c diff --git a/apps/oma-lwm2m/lwm2m-device.h b/os/services/lwm2m/lwm2m-device.h similarity index 100% rename from apps/oma-lwm2m/lwm2m-device.h rename to os/services/lwm2m/lwm2m-device.h diff --git a/apps/oma-lwm2m/lwm2m-engine.c b/os/services/lwm2m/lwm2m-engine.c similarity index 99% rename from apps/oma-lwm2m/lwm2m-engine.c rename to os/services/lwm2m/lwm2m-engine.c index dd6b360b7..da925f102 100644 --- a/apps/oma-lwm2m/lwm2m-engine.c +++ b/os/services/lwm2m/lwm2m-engine.c @@ -47,9 +47,9 @@ #include "lwm2m-device.h" #include "lwm2m-plain-text.h" #include "lwm2m-json.h" -#include "rest-engine.h" -#include "er-coap-constants.h" -#include "er-coap-engine.h" +#include "net/app-layer/coap/rest-engine.h" +#include "net/app-layer/coap/coap-constants.h" +#include "net/app-layer/coap/coap-engine.h" #include "oma-tlv.h" #include "oma-tlv-reader.h" #include "oma-tlv-writer.h" diff --git a/apps/oma-lwm2m/lwm2m-engine.h b/os/services/lwm2m/lwm2m-engine.h similarity index 100% rename from apps/oma-lwm2m/lwm2m-engine.h rename to os/services/lwm2m/lwm2m-engine.h diff --git a/apps/oma-lwm2m/lwm2m-json.c b/os/services/lwm2m/lwm2m-json.c similarity index 100% rename from apps/oma-lwm2m/lwm2m-json.c rename to os/services/lwm2m/lwm2m-json.c diff --git a/apps/oma-lwm2m/lwm2m-json.h b/os/services/lwm2m/lwm2m-json.h similarity index 100% rename from apps/oma-lwm2m/lwm2m-json.h rename to os/services/lwm2m/lwm2m-json.h diff --git a/apps/oma-lwm2m/lwm2m-object.c b/os/services/lwm2m/lwm2m-object.c similarity index 100% rename from apps/oma-lwm2m/lwm2m-object.c rename to os/services/lwm2m/lwm2m-object.c diff --git a/apps/oma-lwm2m/lwm2m-object.h b/os/services/lwm2m/lwm2m-object.h similarity index 99% rename from apps/oma-lwm2m/lwm2m-object.h rename to os/services/lwm2m/lwm2m-object.h index 5c391cb41..a5ff53ac4 100644 --- a/apps/oma-lwm2m/lwm2m-object.h +++ b/os/services/lwm2m/lwm2m-object.h @@ -51,8 +51,8 @@ #ifndef LWM2M_OBJECT_H_ #define LWM2M_OBJECT_H_ -#include "rest-engine.h" -#include "er-coap-observe.h" +#include "net/app-layer/coap/rest-engine.h" +#include "net/app-layer/coap/coap-observe.h" #define LWM2M_OBJECT_SECURITY_ID 0 #define LWM2M_OBJECT_SERVER_ID 1 diff --git a/apps/oma-lwm2m/lwm2m-plain-text.c b/os/services/lwm2m/lwm2m-plain-text.c similarity index 100% rename from apps/oma-lwm2m/lwm2m-plain-text.c rename to os/services/lwm2m/lwm2m-plain-text.c diff --git a/apps/oma-lwm2m/lwm2m-plain-text.h b/os/services/lwm2m/lwm2m-plain-text.h similarity index 100% rename from apps/oma-lwm2m/lwm2m-plain-text.h rename to os/services/lwm2m/lwm2m-plain-text.h diff --git a/apps/oma-lwm2m/lwm2m-security.c b/os/services/lwm2m/lwm2m-security.c similarity index 100% rename from apps/oma-lwm2m/lwm2m-security.c rename to os/services/lwm2m/lwm2m-security.c diff --git a/apps/oma-lwm2m/lwm2m-server.c b/os/services/lwm2m/lwm2m-server.c similarity index 100% rename from apps/oma-lwm2m/lwm2m-server.c rename to os/services/lwm2m/lwm2m-server.c diff --git a/apps/oma-lwm2m/oma-tlv-reader.c b/os/services/lwm2m/oma-tlv-reader.c similarity index 100% rename from apps/oma-lwm2m/oma-tlv-reader.c rename to os/services/lwm2m/oma-tlv-reader.c diff --git a/apps/oma-lwm2m/oma-tlv-reader.h b/os/services/lwm2m/oma-tlv-reader.h similarity index 100% rename from apps/oma-lwm2m/oma-tlv-reader.h rename to os/services/lwm2m/oma-tlv-reader.h diff --git a/apps/oma-lwm2m/oma-tlv-writer.c b/os/services/lwm2m/oma-tlv-writer.c similarity index 100% rename from apps/oma-lwm2m/oma-tlv-writer.c rename to os/services/lwm2m/oma-tlv-writer.c diff --git a/apps/oma-lwm2m/oma-tlv-writer.h b/os/services/lwm2m/oma-tlv-writer.h similarity index 100% rename from apps/oma-lwm2m/oma-tlv-writer.h rename to os/services/lwm2m/oma-tlv-writer.h diff --git a/apps/oma-lwm2m/oma-tlv.c b/os/services/lwm2m/oma-tlv.c similarity index 100% rename from apps/oma-lwm2m/oma-tlv.c rename to os/services/lwm2m/oma-tlv.c diff --git a/apps/oma-lwm2m/oma-tlv.h b/os/services/lwm2m/oma-tlv.h similarity index 100% rename from apps/oma-lwm2m/oma-tlv.h rename to os/services/lwm2m/oma-tlv.h