1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

net/unicoap: add module basics

This commit is contained in:
Carl Seifert 2025-07-07 16:43:49 +02:00
parent b2406da63f
commit 6b9e5433e6
7 changed files with 49 additions and 0 deletions

View File

@ -224,6 +224,9 @@ endif
ifneq (,$(filter uhcpc,$(USEMODULE)))
DIRS += net/application_layer/uhcp
endif
ifneq (,$(filter unicoap,$(USEMODULE)))
DIRS += net/application_layer/unicoap
endif
ifneq (,$(filter usbus usbus_%,$(USEMODULE)))
DIRS += usb/usbus
endif

View File

@ -572,6 +572,11 @@ ifneq (,$(filter nanocoap_%,$(USEMODULE)))
USEMODULE += nanocoap
endif
# include unicoap dependencies
ifneq (,$(filter unicoap%,$(USEMODULE)))
include $(RIOTBASE)/sys/net/application_layer/unicoap/Makefile.dep
endif
ifneq (,$(filter skald_%,$(USEMODULE)))
USEMODULE += skald
endif

View File

@ -208,3 +208,7 @@ endif
ifneq (,$(filter nanocoap,$(USEMODULE)))
include $(RIOTBASE)/sys/net/application_layer/nanocoap/Makefile.include
endif
ifneq (,$(filter unicoap,$(USEMODULE)))
include $(RIOTBASE)/sys/net/application_layer/unicoap/Makefile.include
endif

31
sys/include/net/unicoap.h Normal file
View File

@ -0,0 +1,31 @@
/*
* Copyright (C) 2024-2025 Carl Seifert
* Copyright (C) 2024-2025 TU Dresden
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for
* more details.
*/
#pragma once
/**
* @addtogroup net_unicoap
* @{
*/
/**
* @file
* @brief Main header for `unicoap`
* @author Carl Seifert <carl.seifert1@mailbox.tu-dresden.de>
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -0,0 +1 @@
include $(RIOTBASE)/Makefile.base

View File

@ -0,0 +1,4 @@
ifneq (,$(filter unicoap,$(USEMODULE)))
# Vectored data support
USEMODULE += iolist
endif

View File

@ -0,0 +1 @@