source: soft/giet_vm/giet_libs/libsrl/srl_mwmr.h @ 714

Last change on this file since 714 was 280, checked in by cfuguet, 11 years ago

Adding non-blocking MWMR function macros in the
srl_mwmr.h file

  • Property svn:executable set to *
File size: 696 bytes
Line 
1#ifndef SRL_MWMR_H_
2#define SRL_MWMR_H_
3
4#include "mwmr_channel.h"
5
6typedef  mwmr_channel_t * srl_mwmr_t;
7
8#define srl_mwmr_write(a, b, c) mwmr_write(a, (unsigned int *) b, (unsigned int) c)
9#define srl_mwmr_read(a, b, c) mwmr_read(a, (unsigned int *) b, (unsigned int) c)
10#define srl_mwmr_try_write(a, b, c) nb_mwmr_write(a, (unsigned int *) b, (unsigned int) c)
11#define srl_mwmr_try_read(a, b, c) nb_mwmr_read(a, (unsigned int *) b, (unsigned int) c)
12
13
14#endif //fin de SRL_MWMR_H_
15
16// Local Variables:
17// tab-width: 4
18// c-basic-offset: 4
19// c-file-offsets:((innamespace . 0)(inline-open . 0))
20// indent-tabs-mode: nil
21// End:
22// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
23
Note: See TracBrowser for help on using the repository browser.