stm32_ota/FreeRTOS/portable/RVDS/ARM_CM3/osPort.c

20 lines
785 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#include "osPort.h"
/**************************************************************************************************
* 名 称: BaseType_t OsPort_xQueueSendToBack( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait
* 功能说明: 在xQueueGenericSend函数基础上增了了无效队列判断和入队失败LOG输出
**************************************************************************************************/
BaseType_t OsPort_xQueueSendToBack( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait)
{
BaseType_t xEntryTimeSet = pdFALSE;
if( xQueue != NULL ) //队列有效且非空
{
xEntryTimeSet = xQueueSendToBack(xQueue, pvItemToQueue, xTicksToWait ) ;
}
configASSERT(xEntryTimeSet) ;
return xEntryTimeSet ;
}