po_hi_rtems_utils.h 685 Bytes
Newer Older
jhugues's avatar
jhugues committed
1
2
3
4
5
6
7
8
9
10
/*
 * This is a part of PolyORB-HI-C distribution, a minimal
 * middleware written for generated code from AADL models.
 * You should use it with the Ocarina toolsuite.
 *
 * For more informations, please visit http://assert-project.net/taste
 *
 * Copyright (C) 2012 ESA & ISAE.
 */

11
12
13
14
15
16
17
18
#ifndef __PO_HI_DRIVERS_RTEMS_UTILS_H__
#define __PO_HI_DRIVERS_RTEMS_UTILS_H__

#include <po_hi_debug.h>

#define __PO_HI_DRIVERS_RTEMS_UTILS_IOCTL(fd,num,arg) \
        { int ioctl_ret ; \
        if ( (ioctl_ret=ioctl(fd,num,arg)) != RTEMS_SUCCESSFUL ) { \
19
                        __PO_HI_DEBUG_DEBUG("[RTEMS UTILS] IOCTL " #num " failed: ret: %d \n",ioctl_ret); \
20
21
22
23
                } \
  }

#endif