mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 03:35:20 +00:00
added MAX_NO_HFP_CONNECTIONS
This commit is contained in:
parent
ea5029c9a4
commit
7851d68cc3
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef __BTSTACK_CONFIG
|
||||||
|
#define __BTSTACK_CONFIG
|
||||||
|
|
||||||
#define EMBEDDED
|
#define EMBEDDED
|
||||||
|
|
||||||
// #define HAVE_INIT_SCRIPT
|
// #define HAVE_INIT_SCRIPT
|
||||||
@ -27,4 +30,8 @@
|
|||||||
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
|
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
|
||||||
#define MAX_NO_DB_MEM_SERVICES 0
|
#define MAX_NO_DB_MEM_SERVICES 0
|
||||||
#define MAX_NO_GATT_CLIENTS 1
|
#define MAX_NO_GATT_CLIENTS 1
|
||||||
#define MAX_ATT_DB_SIZE 200
|
#define MAX_ATT_DB_SIZE 200
|
||||||
|
#define MAX_NO_HFP_CONNECTIONS 0
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
@ -34,6 +34,7 @@
|
|||||||
#define MAX_NO_DB_MEM_DEVICE_LINK_KEYS 2
|
#define MAX_NO_DB_MEM_DEVICE_LINK_KEYS 2
|
||||||
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
|
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
|
||||||
#define MAX_NO_DB_MEM_SERVICES 1
|
#define MAX_NO_DB_MEM_SERVICES 1
|
||||||
|
#define MAX_NO_HFP_CONNECTIONS 0
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
#define MAX_NO_DB_MEM_DEVICE_LINK_KEYS 2
|
#define MAX_NO_DB_MEM_DEVICE_LINK_KEYS 2
|
||||||
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
|
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
|
||||||
#define MAX_NO_DB_MEM_SERVICES 1
|
#define MAX_NO_DB_MEM_SERVICES 1
|
||||||
|
#define MAX_NO_HFP_CONNECTIONS 0
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ static const char default_hfp_hf_service_name[] = "Hands-Free unit";
|
|||||||
|
|
||||||
|
|
||||||
static void hfp_run();
|
static void hfp_run();
|
||||||
static void packet_handler (void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
|
|
||||||
|
|
||||||
void hfp_hf_create_service(uint8_t * service, int rfcomm_channel_nr, const char * name, uint16_t supported_features){
|
void hfp_hf_create_service(uint8_t * service, int rfcomm_channel_nr, const char * name, uint16_t supported_features){
|
||||||
if (!name){
|
if (!name){
|
||||||
@ -96,11 +95,5 @@ void hfp_hf_disconnect(){
|
|||||||
static void hfp_run(void){
|
static void hfp_run(void){
|
||||||
}
|
}
|
||||||
|
|
||||||
static void packet_handler (void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
|
||||||
// printf("packet_handler type %u, packet[0] %x\n", packet_type, packet[0]);
|
|
||||||
if (packet_type == RFCOMM_DATA_PACKET){
|
|
||||||
}
|
|
||||||
|
|
||||||
if (packet_type != HCI_EVENT_PACKET) return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user