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

📄 mempartexample.h

📁 Vxworks官方demo源代码 学习VXWORKS很好的资料
💻 H
字号:
/*********************User-Created Partition Code ExampleThe following example is similar to the previous example using the shared memory sys-tem partition.  This example creates a user-defined partition and stores the shared data in this new partition.  A shared semaphore is used to protect the data.   o	The common header file memPartExample.h follows:**********************//* memPartExample.h - shared memory partition example header file *//* Copyright 1984-1997 Wind River Systems, Inc. *//*modification history--------------------01b,06nov97,mm  added copyright.    01a,???  written.*/#define CHUNK_SIZE      (2400)#define MEM_PART_NAME   "myMemPart"#define PART_BUFF_NAME  "myBuff"#define BUFFER_SIZE     (40)typedef struct shared_buff	{	SEM_ID semSmId;	char   buff [BUFFER_SIZE];	} SHARED_BUFF;

⌨️ 快捷键说明

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