master/fsm_slave_config.c
changeset 1344 e5756d4ed12c
parent 1342 a72b9b370277
child 1345 b715e719eeea
equal deleted inserted replaced
1343:6628cd694cba 1344:e5756d4ed12c
   278     if (!slave->sii.sync_count) {
   278     if (!slave->sii.sync_count) {
   279         // no mailbox protocols supported
   279         // no mailbox protocols supported
   280         ec_fsm_slave_config_enter_mbox_sync(fsm);
   280         ec_fsm_slave_config_enter_mbox_sync(fsm);
   281         return;
   281         return;
   282     }
   282     }
       
   283 
       
   284     if (slave->master->debug_level)
       
   285         EC_DBG("Clearing sync manager configurations of slave %u...\n",
       
   286                 slave->ring_position);
   283 
   287 
   284     sync_size = EC_SYNC_PAGE_SIZE * slave->sii.sync_count;
   288     sync_size = EC_SYNC_PAGE_SIZE * slave->sii.sync_count;
   285 
   289 
   286     // clear sync manager configurations
   290     // clear sync manager configurations
   287     ec_datagram_fpwr(datagram, slave->station_address, 0x0800, sync_size);
   291     ec_datagram_fpwr(datagram, slave->station_address, 0x0800, sync_size);