Skip to content

Commit cc36c44

Browse files
chengkai15xiaoxiang781216
authored andcommitted
bluetooth:add btslip driver
add btslip driver. Signed-off-by: chengkai <[email protected]>
1 parent 67d51bd commit cc36c44

File tree

4 files changed

+1117
-0
lines changed

4 files changed

+1117
-0
lines changed

drivers/wireless/bluetooth/Kconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,24 @@ config BLUETOOTH_RPMSG
8585
depends on EXPERIMENTAL && RPTUN
8686
default n
8787

88+
config BLUETOOTH_SLIP
89+
bool "Bluetooth SLIP support"
90+
default n
91+
92+
if BLUETOOTH_SLIP
93+
94+
config BLUETOOTH_SLIP_TXBUFSIZE
95+
int "BT H5 UART TX Buffer Size"
96+
default 2048
97+
---help---
98+
H5 UART TX Buffer Size. Default: 2048
99+
100+
config BLUETOOTH_SLIP_TXWIN
101+
int "BT H5 Uart TX Window Size"
102+
default 4
103+
---help---
104+
H5 UART TX Window Size. Default: 4
105+
106+
endif # BLUETOOTH_SLIP
107+
88108
endif # DRIVERS_BLUETOOTH

drivers/wireless/bluetooth/Make.defs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ ifeq ($(CONFIG_BLUETOOTH_RPMSG),y)
5656
CSRCS += bt_rpmsghci.c
5757
endif
5858

59+
ifeq ($(CONFIG_BLUETOOTH_SLIP),y)
60+
CSRCS += bt_slip.c
61+
endif
62+
5963
# Include common Bluetooth driver build support
6064

6165
DEPPATH += --dep-path wireless$(DELIM)bluetooth

0 commit comments

Comments
 (0)