esp32: Add libcoexist

This commit is contained in:
Matt Kelly 2017-02-20 15:47:00 -05:00 committed by Matthias Ringwald
parent ed045cc20f
commit 0804a8de6e
2 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@ BTSTACK_ROOT := ../../..
# Examples
#include ${BTSTACK_ROOT}/example/Makefile.inc
COMPONENT_ADD_LDFLAGS := -l$(COMPONENT_NAME) $(COMPONENT_PATH)/../components/libbtdm_app/libbtdm_app.a
COMPONENT_ADD_LDFLAGS := -l$(COMPONENT_NAME) $(COMPONENT_PATH)/../components/libbtdm_app/libbtdm_app.a $(COMPONENT_PATH)/../components/libcoexist/libcoexist.a
COMPONENT_ADD_INCLUDEDIRS := $(BTSTACK_ROOT)/src/ble $(BTSTACK_ROOT)/src $(BTSTACK_ROOT)/platform/embedded .

View File

@ -3,6 +3,8 @@
#include <stdint.h>
#include <stdio.h>
#include "esp_err.h"
#include "esp_coexist.h"
#include "freertos/FreeRTOS.h"
/* VHCI function interface */
@ -14,9 +16,11 @@ typedef struct vhci_host_callback {
extern bool API_vhci_host_check_send_available(void);
extern void API_vhci_host_send_packet(uint8_t *data, uint16_t len);
extern void API_vhci_host_register_callback(const vhci_host_callback_t *callback);
extern void btdm_controller_init(void);
void hal_uart_dma_init(void){
printf("hal_uart_dma_init\n");
btdm_controller_init();
}
void hal_uart_dma_set_block_received( void (*block_handler)(void)){