⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aos.h

📁 abstract rtos
💻 H
字号:
#ifdef __cplusplusextern "C"{#endif #ifndef __INC_AOS_H__#define __INC_AOS_H__#if  CONFIG_OS_WINDOWS#include <stdarg.h>#elif CONFIG_OS_VXWORKS#include <vxWorks.h>#include <stdarg.h>#endif#include "macros.h"#define RED_MAGIC1   0x5A2CF071UL#define RED_MAGIC2   0x170FC2A5UL#define RED_MAGIC3   0x2C5A71F0UL#if __LITTLE_ENDIAN#define AOS_NTOHL(x) ((((x) & 0xFF000000)>>24) |  (((x) & 0x00FF0000)>>8) | \                       (((x) & 0x0000FF00)<<8 ) |  (((x) & 0x000000FF)<<24)  \                      )#define AOS_NTOHS(x)  ((((x)& 0xFF00)>>8) |  (((x) & 0x00FF)<<8))#define AOS_HTONL(x)  AOS_NTOHL(x)#define AOS_HTONS(x)  AOS_NTOHS(x)#elif (__BIG_ENDIAN)#define AOS_NTOHL(x) (x)#define AOS_NTOHS(x) (x)#define AOS_HTONL(x) (x)#define AOS_HTONS(x) (x)#else#error please define CONFIG_LITTLE_ENDIAN or CONFIG_BIG_ENDIAN!#endif#if ( CONFIG_MANUAL_ALIGN == TRUE )#define AOS_PUTLONG( x,y)  { U32 tmp=(U32)(y); aos_memcpy(&(x),&tmp,4); }#define AOS_PUTSHORT( x,y)  { U16 tmp=(U16)(y); aos_memcpy(&(x),&tmp,2); }#else#define AOS_PUTLONG( x,y)#define AOS_PUTSHORT( x,y)#endif#define VA_LIST va_list#define VA_ARG(list, type)\        #define VA_END(list)             va_end(list)#define VA_START(list, last_arg) \        #include "os/mpe_def.h"#include "os/lcmq_pub.h"#include "os/msg_pub.h"#include "os/debug_pub.h"#include "os/assert_pub.h"#include "os/smem_pub.h"#include "os/dmem_pub.h"#include "os/slab_pub.h"#include "os/task_pub.h"#include "os/sem_pub.h"#include "os/que_pub.h"#include "os/event_pub.h"#include "os/tmr_pub.h"#include "os/int_pub.h"#include "os/tick_pub.h"#include "os/time_pub.h"#include "os/mbuf_pub.h"#include "os/string_pub.h"#include "os/u64_pub.h"#include "os/dll_pub.h"#include "os/sll_pub.h"#include "os/hash_pub.h"#include "os/list_pub.h"#include "os/lcm_pub.h"#include "os/page_pub.h"#include "os/sys_lock.h"#include "os/make_crc.h"#include "os/encrp_pub.h"#include "os/password.h"#include "os/md5_pub.h"#include "asock.h"#include "os/edrv_pub.h"#include "os/rsock.h"#include "sdp_api.h"#if  CONFIG_OS_WINDOWS == FALSE#include "drv/logic_pub.h"#endif#include "dev/dev_pub.h"#endif#ifdef __cplusplus}#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -