Skip to content

Commit

Permalink
release rfm 433MHz modules driver package
Browse files Browse the repository at this point in the history
Signed-off-by: kyle <[email protected]>
  • Loading branch information
kylepengchn committed Mar 3, 2022
1 parent d13fe4e commit 54558e6
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
1 change: 1 addition & 0 deletions peripherals/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ source "$PKGS_DIR/packages/peripherals/bouffalolab_sdk/Kconfig"
source "$PKGS_DIR/packages/peripherals/soft_serial/Kconfig"
source "$PKGS_DIR/packages/peripherals/mb85rs16/Kconfig"
source "$PKGS_DIR/packages/peripherals/cw2015/Kconfig"
source "$PKGS_DIR/packages/peripherals/rfm300/Kconfig"
endmenu
64 changes: 64 additions & 0 deletions peripherals/rfm300/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@

# Kconfig file for package rfm300
menuconfig PKG_USING_RFM300
bool "RFM300: ISM Transceiver Module With +20dBm(100mW) Output Power."
default n

if PKG_USING_RFM300

config PKG_RFM300_SPI_BUS_NAME
string "The spi bus of rfm300"
default "spi0"

config PKG_RFM300_SPI_DEV_NAME
string "The spi device name for rfm300"
default "rfm300"

config PKG_RFM300_FIFO_SPI_DEV_NAME
string "The spi device name for rfm300 fifo"
default "rfm300_fifo"

config PKG_RFM300_CSB_PIN
int "The CSB pin of rfm300"
default -1

config PKG_RFM300_FCSB_PIN
int "The FCSB pin of rfm300"
default -1

config PKG_RFM300_GPIO1_PIN
int "The GPIO1 pin of rfm300"
default -1

config PKG_RFM300_GPIO2_PIN
int "The GPIO2 pin of rfm300"
default -1

config PKG_RFM300_GPIO3_PIN
int "The GPIO3 pin of rfm300"
default -1

config PKG_USING_RFM300_DEMO
bool "Use demo"
default n

config PKG_RFM300_PATH
string
default "/packages/peripherals/rfm300"

choice
prompt "Version"
default PKG_USING_RFM300_LATEST_VERSION
help
Select the package version

config PKG_USING_RFM300_LATEST_VERSION
bool "latest"
endchoice

config PKG_RFM300_VER
string
default "latest" if PKG_USING_RFM300_LATEST_VERSION

endif

27 changes: 27 additions & 0 deletions peripherals/rfm300/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "rfm300",
"description": "RFM300: ISM Transceiver Module With +20dBm(100mW) Output Power.",
"enable": "PKG_USING_RFM300",
"keywords": [
"rfm300"
],
"category": "peripherals",
"author": {
"name": "kylepengchn",
"email": "[email protected]",
"github": "kylepengchn"
},
"license": "Apache-2.0",
"repository": "https://github.com/kylepengchn/rfm300.git",
"icon": "unknown",
"homepage": "unknown",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/kylepengchn/rfm300.git",
"filename": "",
"VER_SHA": "master"
}
]
}

0 comments on commit 54558e6

Please sign in to comment.