add socket wrapper for at framework
you can use at framework to send/recv data in socket API example: see examples\tcp_through_module_based_at_socket project: see board\TencentOS_tiny_EVB_MX_Plus\KEIL\tcp_through_module_based_at_socket
This commit is contained in:
@@ -17,13 +17,10 @@
|
||||
|
||||
#include "tos_k.h"
|
||||
|
||||
#if TOS_CFG_MMBLK_EN > 0u
|
||||
|
||||
__API__ k_err_t tos_mmblk_pool_create(k_mmblk_pool_t *mbp, void *pool_start, size_t blk_num, size_t blk_size)
|
||||
{
|
||||
uint32_t i;
|
||||
void *blk_curr;
|
||||
void *blk_next;
|
||||
void *blk_curr, *blk_next;
|
||||
|
||||
TOS_IN_IRQ_CHECK();
|
||||
TOS_PTR_SANITY_CHECK(pool_start);
|
||||
@@ -106,6 +103,7 @@ __API__ k_err_t tos_mmblk_free(k_mmblk_pool_t *mbp, void *blk)
|
||||
TOS_CPU_INT_ENABLE();
|
||||
return K_ERR_MMBLK_POOL_FULL;
|
||||
}
|
||||
|
||||
*(void **)blk = mbp->free_list;
|
||||
mbp->free_list = blk;
|
||||
++mbp->blk_free;
|
||||
@@ -113,5 +111,3 @@ __API__ k_err_t tos_mmblk_free(k_mmblk_pool_t *mbp, void *blk)
|
||||
return K_ERR_NONE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user