l2cap_channel_t * btstack_memory_l2cap_channel_get(void) { LIB_ERR err; return Mem_PoolBlkGet(&l2cap_channel_pool, sizeof(l2cap_channel_t), &err); }
hci_connection_t * btstack_memory_hci_connection_get(void) { LIB_ERR err; return Mem_PoolBlkGet(&hci_connection_pool, sizeof(hci_connection_t), &err); }
l2cap_service_t * btstack_memory_l2cap_service_get(void) { LIB_ERR err; return Mem_PoolBlkGet(&l2cap_service_pool, sizeof(l2cap_service_t), &err); }
rfcomm_channel_t * btstack_memory_rfcomm_channel_get(void) { LIB_ERR err; return Mem_PoolBlkGet(&rfcomm_channel_pool, sizeof(rfcomm_channel_t), &err); }
rfcomm_service_t * btstack_memory_rfcomm_service_get(void) { LIB_ERR err; return Mem_PoolBlkGet(&rfcomm_service_pool, sizeof(rfcomm_service_t), &err); }
rfcomm_multiplexer_t * btstack_memory_rfcomm_multiplexer_get(void) { LIB_ERR err; return Mem_PoolBlkGet(&rfcomm_multiplexer_pool, sizeof(rfcomm_multiplexer_t), &err); }
void *SerialOS_SemCreate (CPU_INT16U cnt) { OS_SEM *psem; LIB_ERR lib_err; OS_ERR os_err; psem = (OS_SEM *)Mem_PoolBlkGet((MEM_POOL *)&OS_SemPool, (CPU_SIZE_T ) sizeof(OS_SEM), (LIB_ERR *)&lib_err); if (lib_err != LIB_MEM_ERR_NONE) { return ((void *)0); } OSSemCreate((OS_SEM *)psem, (CPU_CHAR *)0, (OS_SEM_CTR )cnt, (OS_ERR *)&os_err); if (os_err != OS_ERR_NONE) { Mem_PoolBlkFree((MEM_POOL *)&OS_SemPool, (void *) psem, (LIB_ERR *)&lib_err); return ((void *)0); } return ((void *)psem); }
db_mem_device_t * btstack_memory_db_mem_device_get(void){ LIB_ERR err; return Mem_PoolBlkGet(&db_mem_device_pool, sizeof(db_mem_device_t), &err); }