Skip to content

Commit d389f65

Browse files
committed
Don't disable the MPU for ENET when uVisor is around
1 parent 65ffa8c commit d389f65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ void k64f_init_eth_hardware(void)
3737
{
3838
port_pin_config_t configENET = {0};
3939

40-
/* Disable MPU. */
40+
#ifndef FEATURE_UVISOR
41+
/* Disable MPU only when uVisor is not around. */
4142
MPU->CESR &= ~MPU_CESR_VLD_MASK;
43+
#endif/*FEATURE_UVISOR*/
4244

4345
CLOCK_EnableClock(kCLOCK_PortC);
4446
CLOCK_EnableClock(kCLOCK_PortB);

0 commit comments

Comments
 (0)