update System/ur_api.h.

Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
零中断延迟的RTOS
2026-09-15 12:15:37 +00:00
committed by Gitee
parent af41e6c460
commit f9ba2aa251
+4 -3
View File
@@ -4,8 +4,8 @@
* @brief 用户API
* @details 用户API定义,含注释说明,所有内核服务的API说明均在此文件中,并支持doxygen。
* @author 迟凯峰
* @version v3.1.2
* @date 2026.09.06
* @version v3.1.3
* @date 2026.09.15
******************************************************************************/
#ifndef __UR_API_H
@@ -2041,13 +2041,14 @@ do{ \
\note uPrintf 仍会调用标准库函数 printf。
\note C 语言编译器至少需支持 C99 标准。
*/
#if !defined ( __C51__ ) && !defined ( __C251__ )
#define uPrintf(...) \
do{ \
uScheduleLock(); \
printf(__VA_ARGS__); \
uScheduleUnlock(); \
}while(false)
#endif
/** @} */
/**