Skip to content

Commit

Permalink
mm32 package (#1847)
Browse files Browse the repository at this point in the history
* 1. add mm32 package;

* 1. modified Kconfig file;

* 1. fix package.json;
  • Loading branch information
Maihuanyi authored Jan 22, 2025
1 parent 3ba1670 commit 742452e
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions peripherals/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
31 changes: 31 additions & 0 deletions peripherals/mm32/Kconfig
Original file line number Diff line number Diff line change
@@ -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

33 changes: 33 additions & 0 deletions peripherals/mm32/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
]
}

0 comments on commit 742452e

Please sign in to comment.