mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-15 23:42:52 +00:00
esp32: Add libcoexist
This commit is contained in:
parent
ed045cc20f
commit
0804a8de6e
@ -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 .
|
||||
|
||||
|
@ -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)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user