AnsweredAssumed Answered

SMTM32F4 ETH driver

Question asked by francescato.diego on Nov 18, 2013
Latest reply on Feb 5, 2014 by francescato.diego
I am a beginner with STM32F4 and I am study the ETH driver procedure but I don't understand some instructions
For example:

  /* Clear MBC bits in the selected MAC address  high register */
  (*(__IO uint32_t *) (ETH_MAC_ADDR_HBASE + MacAddr)) &=(~(uint32_t)ETH_MACA1HR_MBC);
 
  /* Wait until the write operation will be taken into account :
   at least four TX_CLK/RX_CLK clock cycles */
  tmpreg = (*(__IO uint32_t *) (ETH_MAC_ADDR_HBASE + MacAddr));
  _eth_delay_(ETH_REG_WRITE_DELAY);
  (*(__IO uint32_t *) (ETH_MAC_ADDR_HBASE + MacAddr)) = tmpreg;

I don't understand the read and write same register after delay 

Thanks in advance for help


Outcomes