1 #ifndef _ADV_BUFF_ALLOC_TINY_H_
2 #define _ADV_BUFF_ALLOC_TINY_H_
3 
4 /* More buffers for advertising and scan response data are used to
5   allow application to change data on the fly even in the middle of an advertising event.
6   aci_hal_adv_scan_resp_data_update_event is used to be sure that the new buffer where
7   advertising data will be copied is not currently used by the Link Layer.
8   In a middle of an advertising event, the stack may not free the old buffer: in this
9   case consecutive updates of the advertising data may cause a BLE_ERROR_CONTROLLER_BUSY. */
10 #define NUM_BUFFERS 4
11 
12 void adv_tiny_buff_init(void);
13 
14 void * adv_tiny_buff_alloc(void);
15 
16 void adv_tiny_buff_free(void * p);
17 
18 #endif /* _ADV_BUFF_ALLOC_TINY_H_ */
19