forked from RT-Thread/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RT-Thread#599 from MrpYoung/master
add pms_series package
- Loading branch information
Showing
3 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |