Modified version of the mbed library for use with the Nucleo boards.
Dependents: EEPROMWrite Full-Project
Fork of mbed-src by
Diff: targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.c
- Revision:
- 632:7687fb9c4f91
- Parent:
- 385:be64abf45658
- Child:
- 634:ac7d6880524d
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.c Mon Sep 28 13:00:10 2015 +0100 +++ b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.c Mon Sep 28 14:00:11 2015 +0100 @@ -2,8 +2,8 @@ ****************************************************************************** * @file stm32f3xx_hal_dma.c * @author MCD Application Team - * @version V1.1.0 - * @date 12-Sept-2014 + * @version V1.1.1 + * @date 19-June-2015 * @brief DMA HAL module driver. * * This file provides firmware functions to manage the following @@ -75,7 +75,7 @@ ****************************************************************************** * @attention * - * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> + * <h2><center>© 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: @@ -173,7 +173,7 @@ uint32_t tmp = 0; /* Check the DMA handle allocation */ - if(hdma == HAL_NULL) + if(hdma == NULL) { return HAL_ERROR; } @@ -226,7 +226,7 @@ HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma) { /* Check the DMA handle allocation */ - if(hdma == HAL_NULL) + if(hdma == NULL) { return HAL_ERROR; } @@ -531,7 +531,7 @@ /* Process Unlocked */ __HAL_UNLOCK(hdma); - if (hdma->XferErrorCallback != HAL_NULL) + if (hdma->XferErrorCallback != NULL) { /* Transfer error callback */ hdma->XferErrorCallback(hdma); @@ -556,7 +556,7 @@ /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_READY_HALF; - if(hdma->XferHalfCpltCallback != HAL_NULL) + if(hdma->XferHalfCpltCallback != NULL) { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); @@ -586,7 +586,7 @@ /* Process Unlocked */ __HAL_UNLOCK(hdma); - if(hdma->XferCpltCallback != HAL_NULL) + if(hdma->XferCpltCallback != NULL) { /* Transfer complete callback */ hdma->XferCpltCallback(hdma);