Fix MG_ENABLE_ETH_IRQ

This commit is contained in:
cpq committed 2026-04-07 15:31:40 +01:00
1 parent 60e98e77b9
commit 212585684e
3 files changed
+12 -8

No files matched your search

+2 -2
View File
@@ -28,9 +28,9 @@ struct mg_tcpip_driver_stm32f_data {
#define MG_DRIVER_MDC_CR 4
#endif
#if MG_ARCH == MG_ARCH_CUBE
#if MG_ARCH == MG_ARCH_CUBE && !defined(MG_ENABLE_ETH_IRQ)
#define MG_ENABLE_ETH_IRQ() NVIC_EnableIRQ(ETH_IRQn)
#else
#elif !defined(MG_ENABLE_ETH_IRQ)
#define MG_ENABLE_ETH_IRQ()
#endif