Subversion Repositories DashDisplay

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 5
Line 1... Line 1...
1
/**
1
/**
2
  ******************************************************************************
2
  ******************************************************************************
3
  * @file    stm32f1xx_hal_dac.c
3
  * @file    stm32f1xx_hal_dac.c
4
  * @author  MCD Application Team
4
  * @author  MCD Application Team
5
  * @version V1.0.1
5
  * @version V1.0.4
6
  * @date    31-July-2015
6
  * @date    29-April-2016
7
  * @brief   DAC HAL module driver.
7
  * @brief   DAC HAL module driver.
8
  *         This file provides firmware functions to manage the following
8
  *         This file provides firmware functions to manage the following
9
  *         functionalities of the Digital to Analog Converter (DAC) peripheral:
9
  *         functionalities of the Digital to Analog Converter (DAC) peripheral:
10
  *           + Initialization and de-initialization functions
10
  *           + Initialization and de-initialization functions
11
  *           + IO operation functions
11
  *           + IO operation functions
Line 183... Line 183...
183
   
183
   
184
 @endverbatim    
184
 @endverbatim    
185
  ******************************************************************************
185
  ******************************************************************************
186
  * @attention
186
  * @attention
187
  *
187
  *
188
  * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
188
  * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
189
  *
189
  *
190
  * Redistribution and use in source and binary forms, with or without modification,
190
  * Redistribution and use in source and binary forms, with or without modification,
191
  * are permitted provided that the following conditions are met:
191
  * are permitted provided that the following conditions are met:
192
  *   1. Redistributions of source code must retain the above copyright notice,
192
  *   1. Redistributions of source code must retain the above copyright notice,
193
  *      this list of conditions and the following disclaimer.
193
  *      this list of conditions and the following disclaimer.
Line 335... Line 335...
335
  *         the configuration information for the specified DAC.
335
  *         the configuration information for the specified DAC.
336
  * @retval None
336
  * @retval None
337
  */
337
  */
338
__weak void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
338
__weak void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
339
{
339
{
-
 
340
  /* Prevent unused argument(s) compilation warning */
-
 
341
  UNUSED(hdac);
340
  /* NOTE : This function Should not be modified, when the callback is needed,
342
  /* NOTE : This function Should not be modified, when the callback is needed,
341
            the HAL_DAC_MspInit could be implemented in the user file
343
            the HAL_DAC_MspInit could be implemented in the user file
342
   */
344
   */
343
}
345
}
344
 
346
 
Line 348... Line 350...
348
  *         the configuration information for the specified DAC.  
350
  *         the configuration information for the specified DAC.  
349
  * @retval None
351
  * @retval None
350
  */
352
  */
351
__weak void HAL_DAC_MspDeInit(DAC_HandleTypeDef* hdac)
353
__weak void HAL_DAC_MspDeInit(DAC_HandleTypeDef* hdac)
352
{
354
{
-
 
355
  /* Prevent unused argument(s) compilation warning */
-
 
356
  UNUSED(hdac);
353
  /* NOTE : This function Should not be modified, when the callback is needed,
357
  /* NOTE : This function Should not be modified, when the callback is needed,
354
            the HAL_DAC_MspDeInit could be implemented in the user file
358
            the HAL_DAC_MspDeInit could be implemented in the user file
355
   */
359
   */
356
}
360
}
357
 
361
 
Line 665... Line 669...
665
  *         the configuration information for the specified DAC.
669
  *         the configuration information for the specified DAC.
666
  * @retval None
670
  * @retval None
667
  */
671
  */
668
__weak void HAL_DAC_ConvCpltCallbackCh1(DAC_HandleTypeDef* hdac)
672
__weak void HAL_DAC_ConvCpltCallbackCh1(DAC_HandleTypeDef* hdac)
669
{
673
{
-
 
674
  /* Prevent unused argument(s) compilation warning */
-
 
675
  UNUSED(hdac);
670
  /* NOTE : This function Should not be modified, when the callback is needed,
676
  /* NOTE : This function Should not be modified, when the callback is needed,
671
            the HAL_DAC_ConvCpltCallbackCh1 could be implemented in the user file
677
            the HAL_DAC_ConvCpltCallbackCh1 could be implemented in the user file
672
   */
678
   */
673
}
679
}
674
 
680
 
Line 678... Line 684...
678
  *         the configuration information for the specified DAC.
684
  *         the configuration information for the specified DAC.
679
  * @retval None
685
  * @retval None
680
  */
686
  */
681
__weak void HAL_DAC_ConvHalfCpltCallbackCh1(DAC_HandleTypeDef* hdac)
687
__weak void HAL_DAC_ConvHalfCpltCallbackCh1(DAC_HandleTypeDef* hdac)
682
{
688
{
-
 
689
  /* Prevent unused argument(s) compilation warning */
-
 
690
  UNUSED(hdac);
683
  /* NOTE : This function Should not be modified, when the callback is needed,
691
  /* NOTE : This function Should not be modified, when the callback is needed,
684
            the HAL_DAC_ConvHalfCpltCallbackCh1 could be implemented in the user file
692
            the HAL_DAC_ConvHalfCpltCallbackCh1 could be implemented in the user file
685
   */
693
   */
686
}
694
}
687
 
695
 
Line 691... Line 699...
691
  *         the configuration information for the specified DAC.
699
  *         the configuration information for the specified DAC.
692
  * @retval None
700
  * @retval None
693
  */
701
  */
694
__weak void HAL_DAC_ErrorCallbackCh1(DAC_HandleTypeDef *hdac)
702
__weak void HAL_DAC_ErrorCallbackCh1(DAC_HandleTypeDef *hdac)
695
{
703
{
-
 
704
  /* Prevent unused argument(s) compilation warning */
-
 
705
  UNUSED(hdac);
696
  /* NOTE : This function Should not be modified, when the callback is needed,
706
  /* NOTE : This function Should not be modified, when the callback is needed,
697
            the HAL_DAC_ErrorCallbackCh1 could be implemented in the user file
707
            the HAL_DAC_ErrorCallbackCh1 could be implemented in the user file
698
   */
708
   */
699
}
709
}
700
 
710