stm32/mpu: Include MPU functions when ETH is enabled.

This commit is contained in:
Damien George 2019-07-03 23:49:49 +10:00
parent 7cf8285ac8
commit 592f68449d

View File

@ -26,7 +26,7 @@
#ifndef MICROPY_INCLUDED_STM32_MPU_H #ifndef MICROPY_INCLUDED_STM32_MPU_H
#define 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_ETH (MPU_REGION_NUMBER0)
#define MPU_REGION_QSPI1 (MPU_REGION_NUMBER1) #define MPU_REGION_QSPI1 (MPU_REGION_NUMBER1)