]> rtime.felk.cvut.cz Git - arc.git/blob - include/mbox.h
Bug: mpc560x was forced to defined sleep
[arc.git] / include / mbox.h
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
6  * This source code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published by the
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16 #ifndef MBOX_H_
17 #define MBOX_H_
18
19 #include "cirq_buffer.h"
20
21 typedef struct
22 {
23         CirqBufferType *cirqPtr;
24 } Arc_MBoxType;
25
26
27 typedef enum {
28         SOME_ERROR,
29 } Arc_MBoxErrType;
30
31 Arc_MBoxType* Arc_MBoxCreate( size_t size );
32 void Arc_MBoxDestroy( Arc_MBoxType *mPtr );
33 int Arc_MBoxPost( Arc_MBoxType *mPtr, void *msg );
34 int Arc_MBoxFetch(Arc_MBoxType *mPtr, void *msg);
35
36 #endif /* MBOX_H_ */