From e3b2b75aff238e039ce29c6e5add2855c4c96823 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 11 Aug 2022 09:44:19 +0200 Subject: [PATCH] pkg/nimble: add module for HCI UART H4 transport protocol If the package is used for a controller that supports the HCI UART H4 transport layer protocol, the functions implemented in `nimble/transport/common/hci_h4` are very useful to deal with H4 formatted packages. If required, they can be enabled by module `nimble_transport_hci_h4`. --- pkg/nimble/Makefile | 3 +++ pkg/nimble/Makefile.include | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/pkg/nimble/Makefile b/pkg/nimble/Makefile index a08ef41fb5..ee32f8a689 100644 --- a/pkg/nimble/Makefile +++ b/pkg/nimble/Makefile @@ -44,6 +44,9 @@ nimble_npl_riot: nimble_transport: $(QQ)"$(MAKE)" -C $(PDIR)/nimble/transport/src/ -f $(RIOTBASE)/Makefile.base MODULE=$@ +nimble_transport_hci_h4: + $(QQ)"$(MAKE)" -C $(PDIR)/nimble/transport/common/hci_h4/src/ -f $(RIOTBASE)/Makefile.base MODULE=$@ + # host modules nimble_host: $(QQ)"$(MAKE)" -C $(PDIR)/nimble/host/src/ -f $(TDIR)/nimble.host.mk diff --git a/pkg/nimble/Makefile.include b/pkg/nimble/Makefile.include index 993aab65fb..ed2efc569d 100644 --- a/pkg/nimble/Makefile.include +++ b/pkg/nimble/Makefile.include @@ -50,6 +50,10 @@ endif # include transport headers INCLUDES += $(NIMIBASE)/nimble/transport/include +ifneq (,$(filter nimble_transport_hci_h4,$(USEMODULE))) + INCLUDES += $(NIMIBASE)/nimble/transport/common/hci_h4/include +endif + # include services ifneq (,$(filter nimble_svc_ans,$(USEMODULE))) INCLUDES += $(NIMIBASE)/nimble/host/services/ans/include