mbed library sources

Fork of mbed-src by mbed official

Revision:
384:ef87175507f1
Parent:
380:510f0c3515e3
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.c	Mon Nov 03 11:00:07 2014 +0000
+++ b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.c	Tue Nov 04 09:30:07 2014 +0000
@@ -167,7 +167,7 @@
   uint32_t err = ETH_SUCCESS;
   
   /* Check the ETH peripheral state */
-  if(heth == NULL)
+  if(heth == HAL_NULL)
   {
     return HAL_ERROR;
   }
@@ -792,7 +792,7 @@
     else if((heth->RxDesc->Status & ETH_DMARXDESC_FS) != (uint32_t)RESET)
     {
       (heth->RxFrameInfos).FSRxDesc = heth->RxDesc;
-      (heth->RxFrameInfos).LSRxDesc = NULL;
+      (heth->RxFrameInfos).LSRxDesc = HAL_NULL;
       (heth->RxFrameInfos).SegCount = 1;
       /* Point to next descriptor */
       heth->RxDesc = (ETH_DMADescTypeDef*) (heth->RxDesc->Buffer2NextDescAddr);
@@ -1268,7 +1268,7 @@
   assert_param(IS_ETH_SPEED(heth->Init.Speed));
   assert_param(IS_ETH_DUPLEX_MODE(heth->Init.DuplexMode)); 
   
-  if (macconf != NULL)
+  if (macconf != HAL_NULL)
   {
     /* Check the parameters */
     assert_param(IS_ETH_WATCHDOG(macconf->Watchdog));