diff --git a/peripherals/Kconfig b/peripherals/Kconfig index b29e46e1e7..cf4b9e5f41 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -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 diff --git a/peripherals/rfm300/Kconfig b/peripherals/rfm300/Kconfig new file mode 100644 index 0000000000..49409d724e --- /dev/null +++ b/peripherals/rfm300/Kconfig @@ -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 + diff --git a/peripherals/rfm300/package.json b/peripherals/rfm300/package.json new file mode 100644 index 0000000000..da6068623b --- /dev/null +++ b/peripherals/rfm300/package.json @@ -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": "kylepengchn@163.com", + "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" + } + ] +}