master/master.c
branchstable-1.4
changeset 1686 e206f4485f60
parent 1685 399ef727bf62
child 1688 12046addaec5
equal deleted inserted replaced
1685:399ef727bf62 1686:e206f4485f60
   940 }
   940 }
   941 
   941 
   942 /*****************************************************************************/
   942 /*****************************************************************************/
   943 
   943 
   944 #ifdef EC_EOE
   944 #ifdef EC_EOE
   945 /** Starts Ethernet-over-EtherCAT processing on demand.
   945 /** Starts Ethernet over EtherCAT processing on demand.
   946  */
   946  */
   947 void ec_master_eoe_start(ec_master_t *master /**< EtherCAT master */)
   947 void ec_master_eoe_start(ec_master_t *master /**< EtherCAT master */)
   948 {
   948 {
   949     if (master->eoe_running) {
   949     if (master->eoe_running) {
   950         EC_WARN("EoE already running!\n");
   950         EC_WARN("EoE already running!\n");
   967     add_timer(&master->eoe_timer);
   967     add_timer(&master->eoe_timer);
   968 }
   968 }
   969 
   969 
   970 /*****************************************************************************/
   970 /*****************************************************************************/
   971 
   971 
   972 /** Stops the Ethernet-over-EtherCAT processing.
   972 /** Stops the Ethernet over EtherCAT processing.
   973  */
   973  */
   974 void ec_master_eoe_stop(ec_master_t *master /**< EtherCAT master */)
   974 void ec_master_eoe_stop(ec_master_t *master /**< EtherCAT master */)
   975 {
   975 {
   976     if (!master->eoe_running) return;
   976     if (!master->eoe_running) return;
   977 
   977 
   981     master->eoe_running = 0;
   981     master->eoe_running = 0;
   982 }
   982 }
   983 
   983 
   984 /*****************************************************************************/
   984 /*****************************************************************************/
   985 
   985 
   986 /** Does the Ethernet-over-EtherCAT processing.
   986 /** Does the Ethernet over EtherCAT processing.
   987  */
   987  */
   988 void ec_master_eoe_run(unsigned long data /**< master pointer */)
   988 void ec_master_eoe_run(unsigned long data /**< master pointer */)
   989 {
   989 {
   990     ec_master_t *master = (ec_master_t *) data;
   990     ec_master_t *master = (ec_master_t *) data;
   991     ec_eoe_t *eoe;
   991     ec_eoe_t *eoe;