1
0
Fork 0

Increases other stack sizes and reduces log churn

This commit is contained in:
Shawn Nock 2019-07-24 22:39:29 -05:00
parent 73e6dfee64
commit 1b33a5cc3a
1 changed files with 8 additions and 6 deletions

View File

@ -58,10 +58,10 @@ NET_BUF_POOL_DEFINE(cmd_tx_pool, CONFIG_BT_HCI_CMD_COUNT, CMD_BUF_SIZE,
NET_BUF_POOL_DEFINE(acl_tx_pool, TX_BUF_COUNT, BT_BUF_ACL_SIZE, NET_BUF_POOL_DEFINE(acl_tx_pool, TX_BUF_COUNT, BT_BUF_ACL_SIZE,
BT_BUF_USER_DATA_MIN, NULL); BT_BUF_USER_DATA_MIN, NULL);
static K_THREAD_STACK_DEFINE(tx_stack, 256); static K_THREAD_STACK_DEFINE(tx_stack, 4096);
static struct k_thread tx_thread_data; static struct k_thread tx_thread_data;
static K_THREAD_STACK_DEFINE(unproc_stack, 256); static K_THREAD_STACK_DEFINE(unproc_stack, 4096);
static struct k_thread unproc_thread_data; static struct k_thread unproc_thread_data;
static struct k_delayed_work ack_work; static struct k_delayed_work ack_work;
@ -532,9 +532,11 @@ static void unproc_thread(void) {
} }
//LOG_HEXDUMP_DBG((uint8_t*)&hdr, sizeof(hdr), "Header"); //LOG_HEXDUMP_DBG((uint8_t*)&hdr, sizeof(hdr), "Header");
LOG_DBG("Header: seq %d, ack %d, rel: %s, crc16: %s", hdr.seq, hdr.ack, if (hdr.is_reliable) {
hdr.is_reliable ? "true" : "false", LOG_DBG("Header: seq %d, ack %d, rel: %s, crc16: %s", hdr.seq, hdr.ack,
hdr.crc_after_payload ? "true" : "false"); hdr.is_reliable ? "true" : "false",
hdr.crc_after_payload ? "true" : "false");
}
struct net_buf *rx_buf = NULL; struct net_buf *rx_buf = NULL;
if (h5.link_state < ACTIVE && hdr.packet_type != HCI_3WIRE_LINK_PKT) { if (h5.link_state < ACTIVE && hdr.packet_type != HCI_3WIRE_LINK_PKT) {
@ -638,7 +640,7 @@ static void tx_thread(void)
while ((buf = net_buf_get(&h5.controller_queue, K_MSEC(100)))) { while ((buf = net_buf_get(&h5.controller_queue, K_MSEC(100)))) {
bt_send(buf); bt_send(buf);
} }
LOG_DBG("controller_queue empty"); //LOG_DBG("controller_queue empty");
/* buf is dequeued from tx_queue and queued to unack /* buf is dequeued from tx_queue and queued to unack
* queue. * queue.