We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2258623 commit de62c2cCopy full SHA for de62c2c
source/portable/NetworkInterface/STM32Fxx/stm32fxx_hal_eth.c
@@ -331,6 +331,16 @@
331
/* Set ETH HAL State to Ready */
332
heth->State = HAL_ETH_STATE_READY;
333
334
+ /*
335
+ * Disable the interrupts that are related to the MMC counters.
336
+ * These interrupts are enabled by default. The interrupt can
337
+ * only be acknowledged by reading the corresponding counter.
338
+ */
339
+
340
+ heth->Instance->MACIMR = ETH_MACIMR_TSTIM | ETH_MACIMR_PMTIM;
341
+ heth->Instance->MMCRIMR = ETH_MMCRIMR_RGUFM | ETH_MMCRIMR_RFAEM | ETH_MMCRIMR_RFCEM;
342
+ heth->Instance->MMCTIMR = ETH_MMCTIMR_TGFM | ETH_MMCTIMR_TGFMSCM | ETH_MMCTIMR_TGFSCM;
343
344
/* Return function status */
345
return HAL_OK;
346
}
0 commit comments