Don't disable the MPU for ENET when uVisor is around

pull/2733/head
Milosch Meriac 2016-09-16 14:25:10 +01:00
parent 65ffa8cbb7
commit d389f65cf2
1 changed files with 3 additions and 1 deletions

View File

@ -37,8 +37,10 @@ void k64f_init_eth_hardware(void)
{
port_pin_config_t configENET = {0};
/* Disable MPU. */
#ifndef FEATURE_UVISOR
/* Disable MPU only when uVisor is not around. */
MPU->CESR &= ~MPU_CESR_VLD_MASK;
#endif/*FEATURE_UVISOR*/
CLOCK_EnableClock(kCLOCK_PortC);
CLOCK_EnableClock(kCLOCK_PortB);