STM32F0xx Standard Peripherals Firmware Library: main.c File Reference

STM32F0xx Standard Peripherals Library

STM32F0xx_StdPeriph_Examples/DAC/DAC_SignalsGeneration/main.c File Reference

Main program body. More...

#include "main.h"

Go to the source code of this file.

Defines

#define DAC_DHR12R1_ADDRESS   0x40007408
#define DAC_DHR8R1_ADDRESS   0x40007410
#define DAC_DHR8R2_ADDRESS   0x4000741C

Functions

static void DAC_Config (void)
 PrecConfiguration: configure PA4 in analog, enable DAC clock, enable DMA1 clock.
int main (void)
 Main program.
static void TIM_Config (void)
 TIM2 Configuration.

Variables

DAC_InitTypeDef DAC_InitStructure
DMA_InitTypeDef DMA_InitStructure
const uint8_t Escalator8bit [6] = {0x0, 0x33, 0x66, 0x99, 0xCC, 0xFF}
uint8_t Idx = 0
__IO uint8_t SelectedWavesForm = 1
const uint16_t Sine12bit [32]
__IO uint8_t WaveChange = 1

Detailed Description

Main program body.

Header for main.c module.

Author:
MCD Application Team
Version:
V1.4.0
Date:
24-July-2014
Attention:

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file STM32F0xx_StdPeriph_Examples/DAC/DAC_SignalsGeneration/main.c.

STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32