Skip to content

Commit

Permalink
Merge pull request RT-Thread#599 from MrpYoung/master
Browse files Browse the repository at this point in the history
add pms_series package
  • Loading branch information
armink authored Apr 3, 2020
2 parents f44b54d + c56b6b7 commit c440ba9
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
1 change: 1 addition & 0 deletions peripherals/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ source "$PKGS_DIR/packages/peripherals/rtc/Kconfig"
source "$PKGS_DIR/packages/peripherals/max7219/Kconfig"
source "$PKGS_DIR/packages/peripherals/beep/Kconfig"
source "$PKGS_DIR/packages/peripherals/easyblink/Kconfig"
source "$PKGS_DIR/packages/peripherals/pms_series/Kconfig"

endmenu
81 changes: 81 additions & 0 deletions peripherals/pms_series/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@

# Kconfig file for package pms
menuconfig PKG_USING_PMS_SERIES
bool "pms_series: Digital universal particle concentration sensor driver library"
default n

if PKG_USING_PMS_SERIES

config PKG_PMS_SERIES_PATH
string
default "/packages/peripherals/pms_series"
choice
prompt "Model"
default PMS_SERIES_USING_PMS5003ST
help
Select the PMS model

config PMS_SERIES_USING_PMS1003
bool "PMS1003"
config PMS_SERIES_USING_PMS3003
bool "PMS3003"
config PMS_SERIES_USING_PMS5003
bool "PMS5003"
config PMS_SERIES_USING_PMS5003S
bool "PMS5003S"
config PMS_SERIES_USING_PMS5003ST
bool "PMS5003ST"
config PMS_SERIES_USING_PMS7003
bool "PMS7003"
config PMS_SERIES_USING_PMS7003M
bool "PMS7003M"
config PMS_SERIES_USING_PMSA003
bool "PMSA003"
endchoice
config PKG_USING_PMS_SERIES_SAMPLE
bool "Enable pms series sample"
default n
if PKG_USING_PMS_SERIES_SAMPLE
config PMS_SERIES_SAMPLE_USING_DMA
bool "Enable pms series sample dma"
default n
choice
prompt "Enable pms series sample uart"
default PMS_SERIES_SAMPLE_USING_UART2
help
Select the PMS examples uart

config PMS_SERIES_SAMPLE_USING_UART1
bool "UART1"
config PMS_SERIES_SAMPLE_USING_UART2
bool "UART2"
config PMS_SERIES_SAMPLE_USING_UART3
bool "UART3"
config PMS_SERIES_SAMPLE_USING_UART4
bool "UART4"
config PMS_SERIES_SAMPLE_USING_UART5
bool "UART5"
config PMS_SERIES_SAMPLE_USING_UART6
bool "UART6"
endchoice
endif
choice
prompt "Version"
default PKG_USING_PMS_SERIES_V100
help
Select the package version

config PKG_USING_PMS_SERIES_V100
bool "v1.0.0"

config PKG_USING_PMS_SERIES_LATEST_VERSION
bool "latest"
endchoice

config PKG_PMS_SERIES_VER
string
default "v1.0.0" if PKG_USING_PMS_SERIES_V100
default "latest" if PKG_USING_PMS_SERIES_LATEST_VERSION

endif

34 changes: 34 additions & 0 deletions peripherals/pms_series/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "pms_series",
"description": "pms: Digital universal particle concentration sensor driver library.",
"description_zh": "pms 数字式通用颗粒物浓度传感器驱动库",
"enable": "PKG_USING_PMS_SERIES",
"keywords": [
"pms_series"
],
"category": "peripherals",
"author": {
"name": "MrpYoung",
"email": "[email protected]",
"github": "MrpYoung"
},
"license": "MIT",
"repository": "https://github.com/MrpYoung/pms_series",
"icon": "unknown",
"homepage": "https://github.com/MrpYoung/pms_series#readme",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/MrpYoung/pms_series.git",
"filename": "pms_series.zip",
"VER_SHA": "master"
},
{
"version": "v1.0.0",
"URL": "https://github.com/MrpYoung/pms_series/archive/v1.0.0.zip",
"filename": "pms_series-1.0.0.zip",
"VER_SHA": "12afe44dbe936182ecf9bce201bd23ce225aaeb4"
}
]
}

0 comments on commit c440ba9

Please sign in to comment.