Initial commit

Dependencies:   FastPWM

Committer:
lypinator
Date:
Wed Sep 16 01:11:49 2020 +0000
Revision:
0:bb348c97df44
Added PWM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lypinator 0:bb348c97df44 1 /**
lypinator 0:bb348c97df44 2 ******************************************************************************
lypinator 0:bb348c97df44 3 * @file stm32f4xx_ll_dac.c
lypinator 0:bb348c97df44 4 * @author MCD Application Team
lypinator 0:bb348c97df44 5 * @brief DAC LL module driver
lypinator 0:bb348c97df44 6 ******************************************************************************
lypinator 0:bb348c97df44 7 * @attention
lypinator 0:bb348c97df44 8 *
lypinator 0:bb348c97df44 9 * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
lypinator 0:bb348c97df44 10 *
lypinator 0:bb348c97df44 11 * Redistribution and use in source and binary forms, with or without modification,
lypinator 0:bb348c97df44 12 * are permitted provided that the following conditions are met:
lypinator 0:bb348c97df44 13 * 1. Redistributions of source code must retain the above copyright notice,
lypinator 0:bb348c97df44 14 * this list of conditions and the following disclaimer.
lypinator 0:bb348c97df44 15 * 2. Redistributions in binary form must reproduce the above copyright notice,
lypinator 0:bb348c97df44 16 * this list of conditions and the following disclaimer in the documentation
lypinator 0:bb348c97df44 17 * and/or other materials provided with the distribution.
lypinator 0:bb348c97df44 18 * 3. Neither the name of STMicroelectronics nor the names of its contributors
lypinator 0:bb348c97df44 19 * may be used to endorse or promote products derived from this software
lypinator 0:bb348c97df44 20 * without specific prior written permission.
lypinator 0:bb348c97df44 21 *
lypinator 0:bb348c97df44 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
lypinator 0:bb348c97df44 23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
lypinator 0:bb348c97df44 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
lypinator 0:bb348c97df44 25 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
lypinator 0:bb348c97df44 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
lypinator 0:bb348c97df44 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
lypinator 0:bb348c97df44 28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
lypinator 0:bb348c97df44 29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
lypinator 0:bb348c97df44 30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
lypinator 0:bb348c97df44 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
lypinator 0:bb348c97df44 32 *
lypinator 0:bb348c97df44 33 ******************************************************************************
lypinator 0:bb348c97df44 34 */
lypinator 0:bb348c97df44 35 #if defined(USE_FULL_LL_DRIVER)
lypinator 0:bb348c97df44 36
lypinator 0:bb348c97df44 37 /* Includes ------------------------------------------------------------------*/
lypinator 0:bb348c97df44 38 #include "stm32f4xx_ll_dac.h"
lypinator 0:bb348c97df44 39 #include "stm32f4xx_ll_bus.h"
lypinator 0:bb348c97df44 40
lypinator 0:bb348c97df44 41 #ifdef USE_FULL_ASSERT
lypinator 0:bb348c97df44 42 #include "stm32_assert.h"
lypinator 0:bb348c97df44 43 #else
lypinator 0:bb348c97df44 44 #define assert_param(expr) ((void)0U)
lypinator 0:bb348c97df44 45 #endif
lypinator 0:bb348c97df44 46
lypinator 0:bb348c97df44 47 /** @addtogroup STM32F4xx_LL_Driver
lypinator 0:bb348c97df44 48 * @{
lypinator 0:bb348c97df44 49 */
lypinator 0:bb348c97df44 50
lypinator 0:bb348c97df44 51 #if defined(DAC)
lypinator 0:bb348c97df44 52
lypinator 0:bb348c97df44 53 /** @addtogroup DAC_LL DAC
lypinator 0:bb348c97df44 54 * @{
lypinator 0:bb348c97df44 55 */
lypinator 0:bb348c97df44 56
lypinator 0:bb348c97df44 57 /* Private types -------------------------------------------------------------*/
lypinator 0:bb348c97df44 58 /* Private variables ---------------------------------------------------------*/
lypinator 0:bb348c97df44 59 /* Private constants ---------------------------------------------------------*/
lypinator 0:bb348c97df44 60 /* Private macros ------------------------------------------------------------*/
lypinator 0:bb348c97df44 61
lypinator 0:bb348c97df44 62 /** @addtogroup DAC_LL_Private_Macros
lypinator 0:bb348c97df44 63 * @{
lypinator 0:bb348c97df44 64 */
lypinator 0:bb348c97df44 65
lypinator 0:bb348c97df44 66 #if defined(DAC_CHANNEL2_SUPPORT)
lypinator 0:bb348c97df44 67 #define IS_LL_DAC_CHANNEL(__DACX__, __DAC_CHANNEL__) \
lypinator 0:bb348c97df44 68 ( \
lypinator 0:bb348c97df44 69 ((__DAC_CHANNEL__) == LL_DAC_CHANNEL_1) \
lypinator 0:bb348c97df44 70 || ((__DAC_CHANNEL__) == LL_DAC_CHANNEL_2) \
lypinator 0:bb348c97df44 71 )
lypinator 0:bb348c97df44 72 #else
lypinator 0:bb348c97df44 73 #define IS_LL_DAC_CHANNEL(__DACX__, __DAC_CHANNEL__) \
lypinator 0:bb348c97df44 74 ( \
lypinator 0:bb348c97df44 75 ((__DAC_CHANNEL__) == LL_DAC_CHANNEL_1) \
lypinator 0:bb348c97df44 76 )
lypinator 0:bb348c97df44 77 #endif /* DAC_CHANNEL2_SUPPORT */
lypinator 0:bb348c97df44 78
lypinator 0:bb348c97df44 79 #define IS_LL_DAC_TRIGGER_SOURCE(__TRIGGER_SOURCE__) \
lypinator 0:bb348c97df44 80 ( ((__TRIGGER_SOURCE__) == LL_DAC_TRIG_SOFTWARE) \
lypinator 0:bb348c97df44 81 || ((__TRIGGER_SOURCE__) == LL_DAC_TRIG_EXT_TIM2_TRGO) \
lypinator 0:bb348c97df44 82 || ((__TRIGGER_SOURCE__) == LL_DAC_TRIG_EXT_TIM4_TRGO) \
lypinator 0:bb348c97df44 83 || ((__TRIGGER_SOURCE__) == LL_DAC_TRIG_EXT_TIM5_TRGO) \
lypinator 0:bb348c97df44 84 || ((__TRIGGER_SOURCE__) == LL_DAC_TRIG_EXT_TIM6_TRGO) \
lypinator 0:bb348c97df44 85 || ((__TRIGGER_SOURCE__) == LL_DAC_TRIG_EXT_TIM7_TRGO) \
lypinator 0:bb348c97df44 86 || ((__TRIGGER_SOURCE__) == LL_DAC_TRIG_EXT_TIM8_TRGO) \
lypinator 0:bb348c97df44 87 || ((__TRIGGER_SOURCE__) == LL_DAC_TRIG_EXT_EXTI_LINE9) \
lypinator 0:bb348c97df44 88 )
lypinator 0:bb348c97df44 89
lypinator 0:bb348c97df44 90 #define IS_LL_DAC_WAVE_AUTO_GENER_MODE(__WAVE_AUTO_GENERATION_MODE__) \
lypinator 0:bb348c97df44 91 ( ((__WAVE_AUTO_GENERATION_MODE__) == LL_DAC_WAVE_AUTO_GENERATION_NONE) \
lypinator 0:bb348c97df44 92 || ((__WAVE_AUTO_GENERATION_MODE__) == LL_DAC_WAVE_AUTO_GENERATION_NOISE) \
lypinator 0:bb348c97df44 93 || ((__WAVE_AUTO_GENERATION_MODE__) == LL_DAC_WAVE_AUTO_GENERATION_TRIANGLE) \
lypinator 0:bb348c97df44 94 )
lypinator 0:bb348c97df44 95
lypinator 0:bb348c97df44 96 #define IS_LL_DAC_WAVE_AUTO_GENER_CONFIG(__WAVE_AUTO_GENERATION_CONFIG__) \
lypinator 0:bb348c97df44 97 ( ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BIT0) \
lypinator 0:bb348c97df44 98 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS1_0) \
lypinator 0:bb348c97df44 99 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS2_0) \
lypinator 0:bb348c97df44 100 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS3_0) \
lypinator 0:bb348c97df44 101 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS4_0) \
lypinator 0:bb348c97df44 102 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS5_0) \
lypinator 0:bb348c97df44 103 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS6_0) \
lypinator 0:bb348c97df44 104 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS7_0) \
lypinator 0:bb348c97df44 105 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS8_0) \
lypinator 0:bb348c97df44 106 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS9_0) \
lypinator 0:bb348c97df44 107 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS10_0) \
lypinator 0:bb348c97df44 108 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_NOISE_LFSR_UNMASK_BITS11_0) \
lypinator 0:bb348c97df44 109 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_1) \
lypinator 0:bb348c97df44 110 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_3) \
lypinator 0:bb348c97df44 111 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_7) \
lypinator 0:bb348c97df44 112 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_15) \
lypinator 0:bb348c97df44 113 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_31) \
lypinator 0:bb348c97df44 114 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_63) \
lypinator 0:bb348c97df44 115 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_127) \
lypinator 0:bb348c97df44 116 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_255) \
lypinator 0:bb348c97df44 117 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_511) \
lypinator 0:bb348c97df44 118 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_1023) \
lypinator 0:bb348c97df44 119 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_2047) \
lypinator 0:bb348c97df44 120 || ((__WAVE_AUTO_GENERATION_CONFIG__) == LL_DAC_TRIANGLE_AMPLITUDE_4095) \
lypinator 0:bb348c97df44 121 )
lypinator 0:bb348c97df44 122
lypinator 0:bb348c97df44 123 #define IS_LL_DAC_OUTPUT_BUFFER(__OUTPUT_BUFFER__) \
lypinator 0:bb348c97df44 124 ( ((__OUTPUT_BUFFER__) == LL_DAC_OUTPUT_BUFFER_ENABLE) \
lypinator 0:bb348c97df44 125 || ((__OUTPUT_BUFFER__) == LL_DAC_OUTPUT_BUFFER_DISABLE) \
lypinator 0:bb348c97df44 126 )
lypinator 0:bb348c97df44 127
lypinator 0:bb348c97df44 128 /**
lypinator 0:bb348c97df44 129 * @}
lypinator 0:bb348c97df44 130 */
lypinator 0:bb348c97df44 131
lypinator 0:bb348c97df44 132
lypinator 0:bb348c97df44 133 /* Private function prototypes -----------------------------------------------*/
lypinator 0:bb348c97df44 134
lypinator 0:bb348c97df44 135 /* Exported functions --------------------------------------------------------*/
lypinator 0:bb348c97df44 136 /** @addtogroup DAC_LL_Exported_Functions
lypinator 0:bb348c97df44 137 * @{
lypinator 0:bb348c97df44 138 */
lypinator 0:bb348c97df44 139
lypinator 0:bb348c97df44 140 /** @addtogroup DAC_LL_EF_Init
lypinator 0:bb348c97df44 141 * @{
lypinator 0:bb348c97df44 142 */
lypinator 0:bb348c97df44 143
lypinator 0:bb348c97df44 144 /**
lypinator 0:bb348c97df44 145 * @brief De-initialize registers of the selected DAC instance
lypinator 0:bb348c97df44 146 * to their default reset values.
lypinator 0:bb348c97df44 147 * @param DACx DAC instance
lypinator 0:bb348c97df44 148 * @retval An ErrorStatus enumeration value:
lypinator 0:bb348c97df44 149 * - SUCCESS: DAC registers are de-initialized
lypinator 0:bb348c97df44 150 * - ERROR: not applicable
lypinator 0:bb348c97df44 151 */
lypinator 0:bb348c97df44 152 ErrorStatus LL_DAC_DeInit(DAC_TypeDef *DACx)
lypinator 0:bb348c97df44 153 {
lypinator 0:bb348c97df44 154 /* Check the parameters */
lypinator 0:bb348c97df44 155 assert_param(IS_DAC_ALL_INSTANCE(DACx));
lypinator 0:bb348c97df44 156
lypinator 0:bb348c97df44 157 /* Force reset of DAC1 clock */
lypinator 0:bb348c97df44 158 LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_DAC1);
lypinator 0:bb348c97df44 159
lypinator 0:bb348c97df44 160 /* Release reset of DAC1 clock */
lypinator 0:bb348c97df44 161 LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_DAC1);
lypinator 0:bb348c97df44 162 return SUCCESS;
lypinator 0:bb348c97df44 163 }
lypinator 0:bb348c97df44 164
lypinator 0:bb348c97df44 165 /**
lypinator 0:bb348c97df44 166 * @brief Initialize some features of DAC instance.
lypinator 0:bb348c97df44 167 * @note The setting of these parameters by function @ref LL_DAC_Init()
lypinator 0:bb348c97df44 168 * is conditioned to DAC state:
lypinator 0:bb348c97df44 169 * DAC instance must be disabled.
lypinator 0:bb348c97df44 170 * @param DACx DAC instance
lypinator 0:bb348c97df44 171 * @param DAC_Channel This parameter can be one of the following values:
lypinator 0:bb348c97df44 172 * @arg @ref LL_DAC_CHANNEL_1
lypinator 0:bb348c97df44 173 * @arg @ref LL_DAC_CHANNEL_2 (1)
lypinator 0:bb348c97df44 174 *
lypinator 0:bb348c97df44 175 * (1) On this STM32 serie, parameter not available on all devices.
lypinator 0:bb348c97df44 176 * Refer to device datasheet for channels availability.
lypinator 0:bb348c97df44 177 * @param DAC_InitStruct Pointer to a @ref LL_DAC_InitTypeDef structure
lypinator 0:bb348c97df44 178 * @retval An ErrorStatus enumeration value:
lypinator 0:bb348c97df44 179 * - SUCCESS: DAC registers are initialized
lypinator 0:bb348c97df44 180 * - ERROR: DAC registers are not initialized
lypinator 0:bb348c97df44 181 */
lypinator 0:bb348c97df44 182 ErrorStatus LL_DAC_Init(DAC_TypeDef *DACx, uint32_t DAC_Channel, LL_DAC_InitTypeDef *DAC_InitStruct)
lypinator 0:bb348c97df44 183 {
lypinator 0:bb348c97df44 184 ErrorStatus status = SUCCESS;
lypinator 0:bb348c97df44 185
lypinator 0:bb348c97df44 186 /* Check the parameters */
lypinator 0:bb348c97df44 187 assert_param(IS_DAC_ALL_INSTANCE(DACx));
lypinator 0:bb348c97df44 188 assert_param(IS_LL_DAC_CHANNEL(DACx, DAC_Channel));
lypinator 0:bb348c97df44 189 assert_param(IS_LL_DAC_TRIGGER_SOURCE(DAC_InitStruct->TriggerSource));
lypinator 0:bb348c97df44 190 assert_param(IS_LL_DAC_OUTPUT_BUFFER(DAC_InitStruct->OutputBuffer));
lypinator 0:bb348c97df44 191 assert_param(IS_LL_DAC_WAVE_AUTO_GENER_MODE(DAC_InitStruct->WaveAutoGeneration));
lypinator 0:bb348c97df44 192 if (DAC_InitStruct->WaveAutoGeneration != LL_DAC_WAVE_AUTO_GENERATION_NONE)
lypinator 0:bb348c97df44 193 {
lypinator 0:bb348c97df44 194 assert_param(IS_LL_DAC_WAVE_AUTO_GENER_CONFIG(DAC_InitStruct->WaveAutoGenerationConfig));
lypinator 0:bb348c97df44 195 }
lypinator 0:bb348c97df44 196
lypinator 0:bb348c97df44 197 /* Note: Hardware constraint (refer to description of this function) */
lypinator 0:bb348c97df44 198 /* DAC instance must be disabled. */
lypinator 0:bb348c97df44 199 if(LL_DAC_IsEnabled(DACx, DAC_Channel) == 0U)
lypinator 0:bb348c97df44 200 {
lypinator 0:bb348c97df44 201 /* Configuration of DAC channel: */
lypinator 0:bb348c97df44 202 /* - TriggerSource */
lypinator 0:bb348c97df44 203 /* - WaveAutoGeneration */
lypinator 0:bb348c97df44 204 /* - OutputBuffer */
lypinator 0:bb348c97df44 205 if (DAC_InitStruct->WaveAutoGeneration != LL_DAC_WAVE_AUTO_GENERATION_NONE)
lypinator 0:bb348c97df44 206 {
lypinator 0:bb348c97df44 207 MODIFY_REG(DACx->CR,
lypinator 0:bb348c97df44 208 ( DAC_CR_TSEL1
lypinator 0:bb348c97df44 209 | DAC_CR_WAVE1
lypinator 0:bb348c97df44 210 | DAC_CR_MAMP1
lypinator 0:bb348c97df44 211 | DAC_CR_BOFF1
lypinator 0:bb348c97df44 212 ) << (DAC_Channel & DAC_CR_CHX_BITOFFSET_MASK)
lypinator 0:bb348c97df44 213 ,
lypinator 0:bb348c97df44 214 ( DAC_InitStruct->TriggerSource
lypinator 0:bb348c97df44 215 | DAC_InitStruct->WaveAutoGeneration
lypinator 0:bb348c97df44 216 | DAC_InitStruct->WaveAutoGenerationConfig
lypinator 0:bb348c97df44 217 | DAC_InitStruct->OutputBuffer
lypinator 0:bb348c97df44 218 ) << (DAC_Channel & DAC_CR_CHX_BITOFFSET_MASK)
lypinator 0:bb348c97df44 219 );
lypinator 0:bb348c97df44 220 }
lypinator 0:bb348c97df44 221 else
lypinator 0:bb348c97df44 222 {
lypinator 0:bb348c97df44 223 MODIFY_REG(DACx->CR,
lypinator 0:bb348c97df44 224 ( DAC_CR_TSEL1
lypinator 0:bb348c97df44 225 | DAC_CR_WAVE1
lypinator 0:bb348c97df44 226 | DAC_CR_BOFF1
lypinator 0:bb348c97df44 227 ) << (DAC_Channel & DAC_CR_CHX_BITOFFSET_MASK)
lypinator 0:bb348c97df44 228 ,
lypinator 0:bb348c97df44 229 ( DAC_InitStruct->TriggerSource
lypinator 0:bb348c97df44 230 | LL_DAC_WAVE_AUTO_GENERATION_NONE
lypinator 0:bb348c97df44 231 | DAC_InitStruct->OutputBuffer
lypinator 0:bb348c97df44 232 ) << (DAC_Channel & DAC_CR_CHX_BITOFFSET_MASK)
lypinator 0:bb348c97df44 233 );
lypinator 0:bb348c97df44 234 }
lypinator 0:bb348c97df44 235 }
lypinator 0:bb348c97df44 236 else
lypinator 0:bb348c97df44 237 {
lypinator 0:bb348c97df44 238 /* Initialization error: DAC instance is not disabled. */
lypinator 0:bb348c97df44 239 status = ERROR;
lypinator 0:bb348c97df44 240 }
lypinator 0:bb348c97df44 241 return status;
lypinator 0:bb348c97df44 242 }
lypinator 0:bb348c97df44 243
lypinator 0:bb348c97df44 244 /**
lypinator 0:bb348c97df44 245 * @brief Set each @ref LL_DAC_InitTypeDef field to default value.
lypinator 0:bb348c97df44 246 * @param DAC_InitStruct pointer to a @ref LL_DAC_InitTypeDef structure
lypinator 0:bb348c97df44 247 * whose fields will be set to default values.
lypinator 0:bb348c97df44 248 * @retval None
lypinator 0:bb348c97df44 249 */
lypinator 0:bb348c97df44 250 void LL_DAC_StructInit(LL_DAC_InitTypeDef *DAC_InitStruct)
lypinator 0:bb348c97df44 251 {
lypinator 0:bb348c97df44 252 /* Set DAC_InitStruct fields to default values */
lypinator 0:bb348c97df44 253 DAC_InitStruct->TriggerSource = LL_DAC_TRIG_SOFTWARE;
lypinator 0:bb348c97df44 254 DAC_InitStruct->WaveAutoGeneration = LL_DAC_WAVE_AUTO_GENERATION_NONE;
lypinator 0:bb348c97df44 255 /* Note: Parameter discarded if wave auto generation is disabled, */
lypinator 0:bb348c97df44 256 /* set anyway to its default value. */
lypinator 0:bb348c97df44 257 DAC_InitStruct->WaveAutoGenerationConfig = LL_DAC_NOISE_LFSR_UNMASK_BIT0;
lypinator 0:bb348c97df44 258 DAC_InitStruct->OutputBuffer = LL_DAC_OUTPUT_BUFFER_ENABLE;
lypinator 0:bb348c97df44 259 }
lypinator 0:bb348c97df44 260
lypinator 0:bb348c97df44 261 /**
lypinator 0:bb348c97df44 262 * @}
lypinator 0:bb348c97df44 263 */
lypinator 0:bb348c97df44 264
lypinator 0:bb348c97df44 265 /**
lypinator 0:bb348c97df44 266 * @}
lypinator 0:bb348c97df44 267 */
lypinator 0:bb348c97df44 268
lypinator 0:bb348c97df44 269 /**
lypinator 0:bb348c97df44 270 * @}
lypinator 0:bb348c97df44 271 */
lypinator 0:bb348c97df44 272
lypinator 0:bb348c97df44 273 #endif /* DAC */
lypinator 0:bb348c97df44 274
lypinator 0:bb348c97df44 275 /**
lypinator 0:bb348c97df44 276 * @}
lypinator 0:bb348c97df44 277 */
lypinator 0:bb348c97df44 278
lypinator 0:bb348c97df44 279 #endif /* USE_FULL_LL_DRIVER */
lypinator 0:bb348c97df44 280
lypinator 0:bb348c97df44 281 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/