mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-10-06 04:59:34 +08:00
+4
-3
@@ -4,8 +4,8 @@
|
|||||||
* @brief 用户API
|
* @brief 用户API
|
||||||
* @details 用户API定义,含注释说明,所有内核服务的API说明均在此文件中,并支持doxygen。
|
* @details 用户API定义,含注释说明,所有内核服务的API说明均在此文件中,并支持doxygen。
|
||||||
* @author 迟凯峰
|
* @author 迟凯峰
|
||||||
* @version v3.1.2
|
* @version v3.1.3
|
||||||
* @date 2026.09.06
|
* @date 2026.09.15
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
#ifndef __UR_API_H
|
#ifndef __UR_API_H
|
||||||
@@ -2041,13 +2041,14 @@ do{ \
|
|||||||
\note uPrintf 仍会调用标准库函数 printf。
|
\note uPrintf 仍会调用标准库函数 printf。
|
||||||
\note C 语言编译器至少需支持 C99 标准。
|
\note C 语言编译器至少需支持 C99 标准。
|
||||||
*/
|
*/
|
||||||
|
#if !defined ( __C51__ ) && !defined ( __C251__ )
|
||||||
#define uPrintf(...) \
|
#define uPrintf(...) \
|
||||||
do{ \
|
do{ \
|
||||||
uScheduleLock(); \
|
uScheduleLock(); \
|
||||||
printf(__VA_ARGS__); \
|
printf(__VA_ARGS__); \
|
||||||
uScheduleUnlock(); \
|
uScheduleUnlock(); \
|
||||||
}while(false)
|
}while(false)
|
||||||
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user