Skip to content

Commit de62c2c

Browse files
HTRamseyamazonKamathpaulbartell
authored
Disable mmc interrupts for STMF7xx (FreeRTOS#775)
Co-authored-by: Holden <holden-zenithaerotech.com> Co-authored-by: Nikhil Kamath <[email protected]> Co-authored-by: Paul Bartell <[email protected]>
1 parent 2258623 commit de62c2c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/portable/NetworkInterface/STM32Fxx/stm32fxx_hal_eth.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,16 @@
331331
/* Set ETH HAL State to Ready */
332332
heth->State = HAL_ETH_STATE_READY;
333333

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+
334344
/* Return function status */
335345
return HAL_OK;
336346
}

0 commit comments

Comments
 (0)