WXK
2024-12-20 51135221cd73a2b3a6ce4b5ec906396d5a33b4c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef PAN_HOST_CONFIG__H_
#define    PAN_HOST_CONFIG__H_
 
#define CONIFG_TOTAL_HEAP_SIZE            (16 * 256)
 
#define CONFIG_THRAD_TIMER_STACK_SIZE            (128)
#define CONFIG_THRAD_TIMER_QUEUE_LENGTH            (12)
#define CONFIG_THREAD_BLE_HOST_STACK_SIZE       (256)
 
 
/* l2cap buffer and size
 * if l2cap mtu less than CONFIG_L2CAP_ATT_BLOCK_SIZE, it will be set a block    
 * if l2cap mtu more than CONFIG_L2CAP_ATT_BLOCK_SIZE, it can be set in different block, can be linked automaticlly by nimble
 * e.g (4 * 120) can be used in mtu (247) application
 */
#define CONFIG_L2CAP_ATT_BLOCK_COUNT     (4)
#define CONFIG_L2CAP_ATT_BLOCK_SIZE      (120)
 
#define CONFIG_ATT_PREFERRED_MTU         (247)
#define CONFIG_ATT_SERVER_MAX_NUMBER     (16)
 
#define CONFIG_PREFERRED_MAX_CONN_INTERVAL      (15)
#define CONFIG_PREFERRED_MIN_CONN_INTERVAL      (15)
#define CONFIG_PREFERRED_SLAVE_CONN_ILATENCY    (0)
#define CONFIG_PREFERRED_CONN_SUP_TIME            (200) 
 
 
/* ble transport buffer */
#define CONFIG_BLE_ACL_RX_COUNT                    (5)
#define CONFIG_BLE_ACL_RX_SIZE                    (80)
 
#define CONFIG_BLE_EVT_COUNT                    (4)
#define CONFIG_BLE_EVT_DISCARDABLE_COUNT        (0)
 
#endif