STM32CubeF4 icon indicating copy to clipboard operation
STM32CubeF4 copied to clipboard

[ETH] Fixed errors in bit positions

Open DedkovArtem opened this issue 3 years ago • 1 comments

fixed multiple errors in bit positions in registers.

In version 1.26.2, the structure fields were assigned values already taking into account the bit position in the register. For example macinit.ZeroQuantaPause = ETH_ZEROQUANTAPAUSE_DISABLE; where #define ETH_ZEROQUANTAPAUSE_DISABLE 0x00000080U

in version 1.27.0, some fields of the structure are assigned the values 1 or 0. And when these fields are written to the register, the offset by the bit position is not taken into account. For example macDefaultConf.ZeroQuantaPause = DISABLE; where DISABLE=0U

DedkovArtem avatar Apr 11 '22 14:04 DedkovArtem

ST Internal Reference: 126335

ASELSTM avatar Apr 12 '22 15:04 ASELSTM

Hi @DedkovArtem,

Thank you for your contribution. This issue has been fixed in the frame of version v1.27.1 of the STM32CubeF4. Please allow me then to close this thread.

With regards,

ASELSTM avatar Apr 06 '23 10:04 ASELSTM