mbed library sources

Dependents:   Marvino mbot

Fork of mbed-src by mbed official

Revision:
632:7687fb9c4f91
Parent:
385:be64abf45658
Child:
634:ac7d6880524d
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.c	Mon Sep 28 13:00:10 2015 +0100
+++ b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.c	Mon Sep 28 14:00:11 2015 +0100
@@ -2,8 +2,8 @@
   ******************************************************************************
   * @file    stm32f3xx_hal_adc_ex.c
   * @author  MCD Application Team
-  * @version V1.1.0
-  * @date    12-Sept-2014
+  * @version V1.1.1
+  * @date    19-June-2015
   * @brief   This file provides firmware functions to manage the following 
   *          functionalities of the Analog to Digital Convertor (ADC)
   *          peripheral:
@@ -164,7 +164,7 @@
   ******************************************************************************
   * @attention
   *
-  * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
+  * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
   *
   * Redistribution and use in source and binary forms, with or without modification,
   * are permitted provided that the following conditions are met:
@@ -379,7 +379,7 @@
   uint32_t WaitLoopIndex = 0;
   
   /* Check ADC handle */
-  if(hadc == HAL_NULL)
+  if(hadc == NULL)
   {
     return HAL_ERROR;
   }
@@ -501,7 +501,7 @@
     /* Parameters that can be updated only when ADC is disabled:              */
     /*  - Multimode clock configuration                                       */
     if ((__HAL_ADC_IS_ENABLED(hadc) == RESET)                                  &&
-        ( (tmphadcSharingSameCommonRegister.Instance == HAL_NULL) ||
+        ( (tmphadcSharingSameCommonRegister.Instance == NULL) ||
           (__HAL_ADC_IS_ENABLED(&tmphadcSharingSameCommonRegister) == RESET) ))
     {
       /* Reset configuration of ADC common register CCR:                      */
@@ -652,7 +652,7 @@
   HAL_StatusTypeDef tmpHALStatus = HAL_OK;
   
   /* Check ADC handle */
-  if(hadc == HAL_NULL)
+  if(hadc == NULL)
   {
     return HAL_ERROR;
   }
@@ -793,7 +793,7 @@
   ADC_HandleTypeDef tmphadcSharingSameCommonRegister;
   
   /* Check ADC handle */
-  if(hadc == HAL_NULL)
+  if(hadc == NULL)
   {
      return HAL_ERROR;
   }
@@ -953,7 +953,7 @@
     /* Software is allowed to change common parameters only when all ADCs of  */
     /* the common group are disabled.                                         */
     if ((__HAL_ADC_IS_ENABLED(hadc) == RESET)                                  &&
-        ( (tmphadcSharingSameCommonRegister.Instance == HAL_NULL) ||
+        ( (tmphadcSharingSameCommonRegister.Instance == NULL) ||
           (__HAL_ADC_IS_ENABLED(&tmphadcSharingSameCommonRegister) == RESET) ))
     {
       /* Reset configuration of ADC common register CCR:
@@ -1051,7 +1051,7 @@
   HAL_StatusTypeDef tmpHALStatus = HAL_OK;
   
   /* Check ADC handle */
-  if(hadc == HAL_NULL)
+  if(hadc == NULL)
   {
      return HAL_ERROR;
   }
@@ -3875,7 +3875,7 @@
   /* (Depending on STM32F3 product, there may be up to 2 ADC slaves)          */
   __HAL_ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
   
-  if (tmphadcSlave.Instance == HAL_NULL)
+  if (tmphadcSlave.Instance == NULL)
   {
     /* Update ADC state machine to error */
     hadc->State = HAL_ADC_STATE_ERROR;
@@ -3995,7 +3995,7 @@
     /* (Depending on STM32F3 product, there may be up to 2 ADC slaves)        */
     __HAL_ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
     
-    if (tmphadcSlave.Instance == HAL_NULL)
+    if (tmphadcSlave.Instance == NULL)
     {
       /* Update ADC state machine to error */
       hadc->State = HAL_ADC_STATE_ERROR;
@@ -4554,7 +4554,7 @@
       /* Software is allowed to change common parameters only when all ADCs   */
       /* of the common group are disabled.                                    */
       if ((__HAL_ADC_IS_ENABLED(hadc) == RESET)                                  &&
-          ( (tmphadcSharingSameCommonRegister.Instance == HAL_NULL) ||
+          ( (tmphadcSharingSameCommonRegister.Instance == NULL) ||
             (__HAL_ADC_IS_ENABLED(&tmphadcSharingSameCommonRegister) == RESET) ))
       {
         /* If Channel_16 is selected, enable Temp. sensor measurement path    */
@@ -5205,7 +5205,7 @@
       /* Software is allowed to change common parameters only when all ADCs   */
       /* of the common group are disabled.                                    */
       if ((__HAL_ADC_IS_ENABLED(hadc) == RESET)                                  &&
-          ( (tmphadcSharingSameCommonRegister.Instance == HAL_NULL) ||
+          ( (tmphadcSharingSameCommonRegister.Instance == NULL) ||
             (__HAL_ADC_IS_ENABLED(&tmphadcSharingSameCommonRegister) == RESET) ))
       {
         /* If Channel_16 is selected, enable Temp. sensor measurement path    */