Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mm32 package #1847

Merged
merged 3 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
]
}
Loading