📄 buffprotocol.h
字号:
/******************* Shared Memory System Partition Code ExampleThe following code example uses memory from the shared memory system partition to share data between tasks on different CPUs. The first member of the data structure is a shared semaphore that is used for mutual exclusion. The send task creates and initializes the structure. The receive task simply accesses the data and displays it. **********************//* buffProtocol.h - simple buffer exchange protocol header file *//* Copyright 1984-1997 Wind River Systems, Inc. *//*modification history--------------------01b,06nov97,mm added copyright. 01a,??? written.*/#define BUFFER_SIZE 200 /* shared data buffer size */ #define BUFF_NAME "myMemory" /* name of data buffer in database */typedef struct shared_buff { SEM_ID semSmId; char buff [BUFFER_SIZE]; } SHARED_BUFF;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -