From 7c6a0de23b6642d636541600d550bc93324690ca Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sat, 21 Jan 2023 16:08:31 +0100 Subject: [PATCH] pkg/nmsis_sdk: add NMSIS SDK for Nuclei-based MCUs The GD32V MCU is a Nuclei-based RISC-V MCU. The NMSIS SDK provides some basic functions for the access to control and status registers of such MCUs. --- pkg/nmsis_sdk/Kconfig | 16 ++++++++++++++++ pkg/nmsis_sdk/Makefile | 10 ++++++++++ pkg/nmsis_sdk/Makefile.dep | 2 ++ pkg/nmsis_sdk/Makefile.include | 3 +++ pkg/nmsis_sdk/doc.txt | 9 +++++++++ 5 files changed, 40 insertions(+) create mode 100644 pkg/nmsis_sdk/Kconfig create mode 100644 pkg/nmsis_sdk/Makefile create mode 100644 pkg/nmsis_sdk/Makefile.dep create mode 100644 pkg/nmsis_sdk/Makefile.include create mode 100644 pkg/nmsis_sdk/doc.txt diff --git a/pkg/nmsis_sdk/Kconfig b/pkg/nmsis_sdk/Kconfig new file mode 100644 index 0000000000..e1271fa8cb --- /dev/null +++ b/pkg/nmsis_sdk/Kconfig @@ -0,0 +1,16 @@ +# Copyright (c) 2023 Gunar Schorcht +# +# 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. + +config PACKAGE_NMSIS_SDK + bool "NMSIS SDK for Nuclei-based MCUs" + depends on HAS_ARCH_NUCLEI + help + Vendor SDK from Nuclei System Technology for Nuclei-based MCUs + +config HAS_ARCH_NUCLEI + bool + help + Indicates that the MCU is Nuclei-based diff --git a/pkg/nmsis_sdk/Makefile b/pkg/nmsis_sdk/Makefile new file mode 100644 index 0000000000..857556ea1d --- /dev/null +++ b/pkg/nmsis_sdk/Makefile @@ -0,0 +1,10 @@ +PKG_NAME=nmsis_sdk +PKG_URL=https://github.com/Nuclei-Software/NMSIS.git +# v1.1.0 +PKG_VERSION=c213b493a423750f139e8a3e1400b36a2ceaf914 +PKG_LICENSE=Apache-2.0 + +include $(RIOTBASE)/pkg/pkg.mk + +all: + @ diff --git a/pkg/nmsis_sdk/Makefile.dep b/pkg/nmsis_sdk/Makefile.dep new file mode 100644 index 0000000000..664593c928 --- /dev/null +++ b/pkg/nmsis_sdk/Makefile.dep @@ -0,0 +1,2 @@ +# This package can only be used with the Nuclei-based MCUs +FEATURES_REQUIRED += arch_nuclei diff --git a/pkg/nmsis_sdk/Makefile.include b/pkg/nmsis_sdk/Makefile.include new file mode 100644 index 0000000000..077ebd09fc --- /dev/null +++ b/pkg/nmsis_sdk/Makefile.include @@ -0,0 +1,3 @@ +PSEUDOMODULES += nmsis_sdk + +INCLUDES += -I$(PKGDIRBASE)/nmsis_sdk/NMSIS/Core/Include diff --git a/pkg/nmsis_sdk/doc.txt b/pkg/nmsis_sdk/doc.txt new file mode 100644 index 0000000000..a9ebf7fe05 --- /dev/null +++ b/pkg/nmsis_sdk/doc.txt @@ -0,0 +1,9 @@ +/** + * @defgroup pkg_nmsis_sdk Nuclei MCU Software Interface Standard + * @ingroup pkg + * @brief Vendor SDK from Nuclei System Technology for Nuclei-based MCUs + * + * The NMSIS SDK is required for Nuclei-based MCUs, for example the GDVF103. + * + * @see https://github.com/Nuclei-Software/nuclei-sdk + */