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:
daishengdong
2020-04-07 16:39:13 +08:00
parent f14e7b1753
commit 032af66467
60 changed files with 1127 additions and 217 deletions

View File

@@ -356,7 +356,6 @@ osStatus osSemaphoreDelete(osSemaphoreId semaphore_id)
#endif // TOS_CFG_SEM_EN
#if TOS_CFG_MMBLK_EN > 0u
// ==== Memory Pool Management Functions ====
#if (defined (osFeature_Pool) && (osFeature_Pool != 0)) // Memory Pool Management available
@@ -424,7 +423,6 @@ osStatus osPoolFree(osPoolId pool_id, void *block)
}
#endif // Memory Pool Management available
#endif // TOS_CFG_MMBLK_EN
#if TOS_CFG_MESSAGE_QUEUE_EN > 0u
// ==== Message Queue Management Functions ====

View File

@@ -239,9 +239,7 @@ typedef k_sem_t *osSemaphoreId;
/// Pool ID identifies the memory pool (pointer to a memory pool control block).
/// \note CAN BE CHANGED: \b os_pool_cb is implementation specific in every CMSIS-RTOS.
#if TOS_CFG_MMBLK_EN > 0u
typedef k_mmblk_pool_t *osPoolId;
#endif
/// Message ID identifies the message queue (pointer to a message queue control block).
/// \note CAN BE CHANGED: \b os_messageQ_cb is implementation specific in every CMSIS-RTOS.
@@ -297,14 +295,12 @@ typedef struct os_semaphore_def {
/// Definition structure for memory block allocation.
/// \note CAN BE CHANGED: \b os_pool_def is implementation specific in every CMSIS-RTOS.
#if TOS_CFG_MMBLK_EN > 0u
typedef struct os_pool_def {
uint32_t pool_sz; ///< number of items (elements) in the pool
uint32_t item_sz; ///< size of an item
void *pool; ///< pointer to memory for pool
k_mmblk_pool_t *mmblk_pool; ///< memory blk pool handler
} osPoolDef_t;
#endif
/// Definition structure for message queue.
/// \note CAN BE CHANGED: \b os_messageQ_def is implementation specific in every CMSIS-RTOS.
@@ -660,7 +656,6 @@ osStatus osSemaphoreDelete(osSemaphoreId semaphore_id);
#endif // Semaphore available
#endif // TOS_CFG_SEM_EN
#if TOS_CFG_MMBLK_EN > 0u
// ==== Memory Pool Management Functions ====
#if (defined (osFeature_Pool) && (osFeature_Pool != 0)) // Memory Pool Management available
@@ -715,7 +710,6 @@ void *osPoolCAlloc(osPoolId pool_id);
osStatus osPoolFree(osPoolId pool_id, void *block);
#endif // Memory Pool Management available
#endif // TOS_CFG_MMBLK_EN
#if TOS_CFG_MESSAGE_QUEUE_EN > 0u
// ==== Message Queue Management Functions ====