Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions peripherals/bt24s/Kconfig
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions peripherals/bt24s/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
]
}
Loading