summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-07-03 23:49:49 +1000
committerDamien George <damien.p.george@gmail.com>2019-07-03 23:50:34 +1000
commit592f68449d8261f978a8d0198f9eaf9bc76927d3 (patch)
tree0387d4aa20924ad17b329d730a41a533197b76f2
parent7cf8285ac852c86d102fb85383e955f836222e69 (diff)
stm32/mpu: Include MPU functions when ETH is enabled.
-rw-r--r--ports/stm32/mpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/mpu.h b/ports/stm32/mpu.h
index 2541d86bf..1efe93a68 100644
--- a/ports/stm32/mpu.h
+++ b/ports/stm32/mpu.h
@@ -26,7 +26,7 @@
#ifndef MICROPY_INCLUDED_STM32_MPU_H
#define MICROPY_INCLUDED_STM32_MPU_H
-#if defined(STM32F7) || defined(STM32H7)
+#if defined(STM32F7) || defined(STM32H7) || defined(MICROPY_HW_ETH_MDC)
#define MPU_REGION_ETH (MPU_REGION_NUMBER0)
#define MPU_REGION_QSPI1 (MPU_REGION_NUMBER1)