diff --git a/peripherals/Kconfig b/peripherals/Kconfig index 701bc3ca6d..6acf90753c 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -79,6 +79,7 @@ source "$PKGS_DIR/packages/peripherals/RgPower/Kconfig" source "$PKGS_DIR/packages/peripherals/bt_mx02/Kconfig" source "$PKGS_DIR/packages/peripherals/gc9a01/Kconfig" source "$PKGS_DIR/packages/peripherals/ikun-485/Kconfig" +source "$PKGS_DIR/packages/peripherals/mm32/Kconfig" if RT_VER_NUM > 0x40101 source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig" diff --git a/peripherals/mm32/Kconfig b/peripherals/mm32/Kconfig new file mode 100644 index 0000000000..13ab4c1154 --- /dev/null +++ b/peripherals/mm32/Kconfig @@ -0,0 +1,31 @@ + +# Kconfig file for package mm32 +menuconfig PKG_USING_MM32 + bool "mm32 official independent peripheral driver library for rt-thread." + default n + +if PKG_USING_MM32 + + config PKG_MM32_PATH + string + default "/packages/peripherals/mm32" + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_MM32_V100 + bool "v1.0.0" + + config PKG_USING_MM32_LATEST_VERSION + bool "latest" + endchoice + + config PKG_MM32_VER + string + default "v1.0.0" if PKG_USING_MM32_V100 + default "latest" if PKG_USING_MM32_LATEST_VERSION + +endif + diff --git a/peripherals/mm32/package.json b/peripherals/mm32/package.json new file mode 100644 index 0000000000..b0884265bb --- /dev/null +++ b/peripherals/mm32/package.json @@ -0,0 +1,33 @@ +{ + "name": "mm32", + "description": "mm32 official independent peripheral driver library.", + "description_zh": "mm32官方独立外设驱动库。", + "enable": "PKG_USING_MM32", + "keywords": [ + "mm32" + ], + "category": "peripherals", + "author": { + "name": "Maihuanyi", + "email": "m19825309307@163.com", + "github": "Maihuanyi" + }, + "license": "BSD-3-Clause", + "repository": "https://github.com/Maihuanyi/mm32", + "icon": "unknown", + "homepage": "https://github.com/Maihuanyi/mm32#readme", + "doc": "unknown", + "site": [ + { + "version": "v1.0.0", + "URL": "https://github.com/Maihuanyi/mm32/archive/refs/tags/1.0.0.zip", + "filename": "mm32-1.0.0.zip" + }, + { + "version": "latest", + "URL": "https://github.com/Maihuanyi/mm32.git", + "filename": "", + "VER_SHA": "master" + } + ] +}