diff --git a/peripherals/bt24s/Kconfig b/peripherals/bt24s/Kconfig new file mode 100644 index 0000000000..155fc72c34 --- /dev/null +++ b/peripherals/bt24s/Kconfig @@ -0,0 +1,67 @@ + +# Kconfig file for package bt24s +menuconfig PKG_USING_BT24S + bool "bt24s: BT24S Bluetooth Module Support based on UART + default n + select PKG_USING_UAT + help + Enable this option to add support for BT24S Bluetooth module. + +if PKG_USING_BT24S + config PKG_BT24S_PATH + string + default "/packages/peripherals/bt24s" + + choice + prompt "Version" + default PKG_USING_BT24S_LATEST_VERSION + help + Select the package version + + config PKG_USING_BT24S_LATEST_VERSION + bool "latest" + endchoice + + config PKG_BT24S_VER + string + default "latest" if PKG_USING_BT24S_LATEST_VERSION + config BT24S_UART_NAME + string "UART Device Name" + default "uart1" + help + Set the UART device name for BT24S communication (e.g., uart1, uart2, uart3). + + config BT24S_UART_BUFFER_SIZE + int "UART Receive Buffer Size" + range 16 253 + default 253 + help + Set the receive buffer size for UART. + + menu "GPIO Pin Configuration" + config BT24S_ENPWR_PIN + string "ENPWR (Power Enable) Pin" + default "PD.2" + help + Set the GPIO pin for power control (format: Port.Pin, e.g., PD.2). + + config BT24S_ENAT_PIN + string "ENAT (AT Mode) Pin" + default "PD.1" + help + Set the GPIO pin for AT mode control (format: Port.Pin, e.g., PD.1). + + config BT24S_P09I_PIN + string "P09I (HW RESET) Pin" + default "PD.3" + help + Set the GPIO pin for hardware reset (format: Port.Pin, e.g., PD.3). + endmenu + + config USING_BT24S_DEMO + bool "Enable App Demo (example folder)" + default n + help + Enable this option to compile the example code in the "example" folder. + +endif diff --git a/peripherals/bt24s/package.json b/peripherals/bt24s/package.json new file mode 100644 index 0000000000..938140a2ca --- /dev/null +++ b/peripherals/bt24s/package.json @@ -0,0 +1,32 @@ +{ + "name": "bt24s", + "description": "bt24s driver based on UART", + "description_zh": "基于串口驱动bt24s蓝牙模组", + "enable": "PKG_USING_BT24S", + "keywords": [ + "ble", + "bt24s" + ], + "category": "peripherals", + "author": { + "name": "龚金华", + "email": "782730309@qq.com", + "github": "GKoSon" + }, + "license": "MIT", + "repository": "https://github.com/GKoSon/bt24s", + "homepage": "https://github.com/GKoSon/bt24s#readme", + "site": [ + { + "version": "v1.0.0", + "URL": "https://github.com/GKoSon/bt24s/archive/refs/tags/v1.0.0.zip", + "filename": "bt24s-1.0.0.zip" + }, + { + "version": "latest", + "URL": "https://github.com/GKoSon/bt24s.git", + "filename": "bt24s.zip", + "VER_SHA": "main" + } + ] +}