6 years ago.

Keyword __IO is missing in stm32f2xx_hal_eth.c

Hi all,

I've noticed that the keyword _ _IO (macro defined for volatile keyword) is not used everywhere :

For example, in stm32f2xx_hal_spi.c, line 617 :

__IO uint16_t tmpreg = 0;

But, in stm32f2xx_hal_eth.c, line 1530:

uint32_t tmpreg1 = 0U;

Is that normal? Is that an oversight or a choice? If it is a choice, why was it omitted?

Thank you in advance.

Be the first to answer this question.