From e7d95a06fc6aa314673eb7da73ac14abe09a0577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=9A=E9=87=91=E5=8D=8E?= <782730309@qq.com> Date: Tue, 6 Jan 2026 15:29:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0bt24s=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- peripherals/bt24s/Kconfig | 67 ++++++++++++++++++++++++++++++++++ peripherals/bt24s/package.json | 32 ++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 peripherals/bt24s/Kconfig create mode 100644 peripherals/bt24s/package.json 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..6ff1d26870 --- /dev/null +++ b/peripherals/bt24s/package.json @@ -0,0 +1,32 @@ +{ + "name": "bt24s", + "description": "bt24s driver based on UART", + "description_zh": "基于串口驱动bt24蓝牙模组", + "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" + } + ] +} From 12f75c405a50465afc5be0c182f3c55a9befdba6 Mon Sep 17 00:00:00 2001 From: GKoSon <33480470+GKoSon@users.noreply.github.com> Date: Thu, 15 Jan 2026 11:20:11 +0800 Subject: [PATCH 2/2] Update peripherals/bt24s/package.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- peripherals/bt24s/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripherals/bt24s/package.json b/peripherals/bt24s/package.json index 6ff1d26870..938140a2ca 100644 --- a/peripherals/bt24s/package.json +++ b/peripherals/bt24s/package.json @@ -1,7 +1,7 @@ { "name": "bt24s", "description": "bt24s driver based on UART", - "description_zh": "基于串口驱动bt24蓝牙模组", + "description_zh": "基于串口驱动bt24s蓝牙模组", "enable": "PKG_USING_BT24S", "keywords": [ "ble",