nxp-mcuxpresso / mcux-sdk

MCUXpresso SDK
BSD 3-Clause "New" or "Revised" License
323 stars 142 forks source link

Fix the definition of ENET for i.MX RT1060 family #84

Closed dsyx closed 2 years ago

dsyx commented 2 years ago

Signed-off-by: Yaoxing Shan shanyaoxing12@outlook.com

ENET2 does not work with the original definition because it conflicts with some other driver definitions, such as fsl_clock.h:

/*! @brief Clock ip name array for ENET. */
#define ENET_CLOCKS \
     { \
         kCLOCK_Enet, kCLOCK_IpInvalid, kCLOCK_Enet2 \
     }

The driver cannot find the correct clock ip based on the index of the array.

I refer to the definition of FLEXSPI and make reasonable modifications to the definition of ENET. After the modification, ENET2 can work normally.

Prerequisites

Describe the pull request

Type of change

Tests

mcuxsusan commented 2 years ago

Apologize for my late reply, the developer confirms this is an real issue and the fix in PR is appropriate. Thanks a lot.