master/master.h
branchstable-1.5
changeset 2433 3bdd7a747fae
parent 2421 bc2d4bf9cbe5
child 2443 2c3ccdde3919
equal deleted inserted replaced
2432:f4313f5aba88 2433:3bdd7a747fae
     1 /******************************************************************************
     1 /******************************************************************************
     2  *
     2  *
     3  *  $Id$
     3  *  $Id$
     4  *
     4  *
     5  *  Copyright (C) 2006-2008  Florian Pose, Ingenieurgemeinschaft IgH
     5  *  Copyright (C) 2006-2012  Florian Pose, Ingenieurgemeinschaft IgH
     6  *
     6  *
     7  *  This file is part of the IgH EtherCAT Master.
     7  *  This file is part of the IgH EtherCAT Master.
     8  *
     8  *
     9  *  The IgH EtherCAT Master is free software; you can redistribute it and/or
     9  *  The IgH EtherCAT Master is free software; you can redistribute it and/or
    10  *  modify it under the terms of the GNU General Public License version 2, as
    10  *  modify it under the terms of the GNU General Public License version 2, as
    52 #include "device.h"
    52 #include "device.h"
    53 #include "domain.h"
    53 #include "domain.h"
    54 #include "ethernet.h"
    54 #include "ethernet.h"
    55 #include "fsm_master.h"
    55 #include "fsm_master.h"
    56 #include "cdev.h"
    56 #include "cdev.h"
       
    57 
       
    58 #ifdef EC_RTDM
       
    59 #include "rtdm.h"
       
    60 #endif
    57 
    61 
    58 /*****************************************************************************/
    62 /*****************************************************************************/
    59 
    63 
    60 /** Convenience macro for printing master-specific information to syslog.
    64 /** Convenience macro for printing master-specific information to syslog.
    61  *
    65  *
   181     struct device *class_device; /**< Master class device. */
   185     struct device *class_device; /**< Master class device. */
   182 #else
   186 #else
   183     struct class_device *class_device; /**< Master class device. */
   187     struct class_device *class_device; /**< Master class device. */
   184 #endif
   188 #endif
   185 
   189 
       
   190 #ifdef EC_RTDM
       
   191     ec_rtdm_dev_t rtdm_dev; /**< RTDM device. */
       
   192 #endif
       
   193 
   186     struct semaphore master_sem; /**< Master semaphore. */
   194     struct semaphore master_sem; /**< Master semaphore. */
   187 
   195 
   188     ec_device_t devices[EC_NUM_DEVICES]; /**< EtherCAT devices. */
   196     ec_device_t devices[EC_NUM_DEVICES]; /**< EtherCAT devices. */
   189     const uint8_t *macs[EC_NUM_DEVICES]; /**< Device MAC addresses. */
   197     const uint8_t *macs[EC_NUM_DEVICES]; /**< Device MAC addresses. */
   190     struct semaphore device_sem; /**< Device semaphore. */
   198     struct semaphore device_sem; /**< Device semaphore. */