Defines HAL_ETH_STATE_BUSY and HAL_ETH_STATE_STARTED have the same value (0x23) breaking gState checks #69
Labels
bug
Something isn't working
eth
Ethernet-related issue or pull-request
hal
HAL-LL driver-related issue or pull-request.
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system
Looking at HAL_ETH I noticed that these defines for the HAL_ETH global state (gState) have the same value (0x23):
stm32h7xx_hal_driver/Inc/stm32h7xx_hal_eth.h
Lines 1474 to 1478 in ceda3ce
This breaks these checks:
stm32h7xx_hal_driver/Src/stm32h7xx_hal_eth.c
Lines 717 to 721 in ceda3ce
Also the comments associated with these values are wrong/misleading. Maybe you can improve on these a little.
Here is how I understand the values after looking at how they are used in the code:
The text was updated successfully, but these errors were encountered: