mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feat(bt/bluedroid): Support to build HID Host and HID Device in single binary
This commit is contained in:
parent
8d9035c202
commit
716a47074a
@ -117,26 +117,25 @@ config BT_HFP_WBS_ENABLE
|
||||
Otherwise there will be no data transmited via GPIOs.
|
||||
|
||||
|
||||
config BT_HID_ENABLED
|
||||
menuconfig BT_HID_ENABLED
|
||||
bool "Classic BT HID"
|
||||
depends on BT_CLASSIC_ENABLED
|
||||
default n
|
||||
help
|
||||
This enables the BT HID Host
|
||||
|
||||
choice BT_HID_ROLE
|
||||
prompt "Profile Role configuration"
|
||||
depends on BT_HID_ENABLED
|
||||
config BT_HID_HOST_ENABLED
|
||||
config BT_HID_HOST_ENABLED
|
||||
bool "Classic BT HID Host"
|
||||
depends on BT_HID_ENABLED
|
||||
default n
|
||||
help
|
||||
This enables the BT HID Host
|
||||
|
||||
config BT_HID_DEVICE_ENABLED
|
||||
config BT_HID_DEVICE_ENABLED
|
||||
bool "Classic BT HID Device"
|
||||
depends on BT_HID_ENABLED
|
||||
help
|
||||
This enables the BT HID Device
|
||||
endchoice
|
||||
|
||||
config BT_SSP_ENABLED
|
||||
bool "Secure Simple Pairing"
|
||||
|
@ -63,7 +63,7 @@ typedef struct {
|
||||
/* btc_hidd_args_t */
|
||||
typedef union {
|
||||
// BTC_HD_CONNECT_EVT
|
||||
struct connect_arg {
|
||||
struct hd_connect_arg {
|
||||
BD_ADDR bd_addr;
|
||||
} connect;
|
||||
|
||||
|
@ -103,7 +103,7 @@ typedef struct {
|
||||
/* btc_spp_args_t */
|
||||
typedef union {
|
||||
// BTC_HH_CONNECT_EVT
|
||||
struct connect_arg {
|
||||
struct hh_connect_arg {
|
||||
BD_ADDR bd_addr;
|
||||
} connect;
|
||||
|
||||
|
@ -454,13 +454,15 @@
|
||||
#ifdef CONFIG_BT_LOG_HID_TRACE_LEVEL
|
||||
#if UC_BT_HID_HOST_ENABLED
|
||||
#define UC_BT_LOG_HIDH_TRACE_LEVEL CONFIG_BT_LOG_HID_TRACE_LEVEL
|
||||
#elif UC_BT_HID_DEVICE_ENABLED
|
||||
#endif
|
||||
#if UC_BT_HID_DEVICE_ENABLED
|
||||
#define UC_BT_LOG_HIDD_TRACE_LEVEL CONFIG_BT_LOG_HID_TRACE_LEVEL
|
||||
#endif
|
||||
#else
|
||||
#if UC_BT_HID_HOST_ENABLED
|
||||
#define UC_BT_LOG_HIDH_TRACE_LEVEL UC_TRACE_LEVEL_WARNING
|
||||
#elif UC_BT_HID_DEVICE_ENABLED
|
||||
#endif
|
||||
#if UC_BT_HID_DEVICE_ENABLED
|
||||
#define UC_BT_LOG_HIDD_TRACE_LEVEL UC_TRACE_LEVEL_WARNING
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user