mbed library sources

Fork of mbed-src by mbed official

Revision:
206:00f6ed987803
Parent:
204:92d082577917
--- a/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/enet/fsl_enet_hal.c	Thu May 22 20:00:09 2014 +0100
+++ b/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/enet/fsl_enet_hal.c	Fri May 23 05:45:06 2014 +0100
@@ -148,8 +148,8 @@
     BW_ENET_TFWR_STRFWD(instance, thresholdCfg->isStoreForwardEnabled);   /* Set store and forward mode*/
     if(!thresholdCfg->isStoreForwardEnabled)
     {
+        assert(thresholdCfg->txFifoWrite <= BM_ENET_TFWR_TFWR);
         BW_ENET_TFWR_TFWR(instance, thresholdCfg->txFifoWrite);  /* Set transmit FIFO write bytes*/
-        assert(thresholdCfg->txFifoWrite <= BM_ENET_TFWR_TFWR);
     }
     BW_ENET_TSEM_TX_SECTION_EMPTY(instance,thresholdCfg->txEmpty);       /* Set transmit FIFO empty threshold*/
     BW_ENET_TAEM_TX_ALMOST_EMPTY(instance,thresholdCfg->txAlmostEmpty);  /* Set transmit FIFO almost empty threshold*/