#define BT_CONNECTION_MAX 5
#define BT_TIMER_NUM 10
#define BT_TX_BUF_SIZE 512
#define BT_RX_BUF_SIZE 1024
#define BT_TIMER_BUF_SIZE (BT_TIMER_NUM * BT_CONTROL_BLOCK_SIZE_OF_TIMER) // For more details, please refer to BT_CONTROL_BLOCK_SIZE_OF_TIMER.
#define BT_CONNECTION_BUF_SIZE (BT_CONNECTION_MAX* BT_CONTROL_BLOCK_SIZE_OF_LE_CONNECTION) // For more details, please refer to BT_CONTROL_BLOCK_SIZE_OF_LE_CONNECTION.
static char timer_cb_buf[BT_TIMER_BUF_SIZE];
static char connection_cb_buf[BT_CONNECTION_BUF_SIZE];
static char tx_buf[BT_TX_BUF_SIZE];
static char rx_buf[BT_RX_BUF_SIZE];
bt_bd_addr_t local_public_addr = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66};
static void bt_create_task(void)
{
.bt_max_tx_power_level = 6,
.le_init_tx_power_level = 6};
BT_CONNECTION_BUF_SIZE);
if (pdPASS != xTaskCreate(bt_task, "bt_task", 2048, (void *)local_public_addr, 5, NULL)) {
printf("Cannot create a bt_task.");
}
}