STM32F0xx Standard Peripherals Firmware Library
|
Defines | |
#define | DAC_DHR12R_Address 0x40007408 |
Functions | |
static void | DAC_Config (void) |
Configures DAC channel 1. | |
static void | DMA_Config (void) |
Configures DMA1 channel3. | |
void | HardFault_Handler (void) |
This function handles Hard Fault exception. | |
int | main (void) |
Main program. | |
void | NMI_Handler (void) |
This function handles NMI exception. | |
void | PendSV_Handler (void) |
This function handles PendSVC exception. | |
void | SVC_Handler (void) |
This function handles SVCall exception. | |
void | SysTick_Handler (void) |
This function handles SysTick Handler. | |
static void | TIM_Config (void) |
Configures the TIM2. | |
Variables | |
uint16_t | Sine12bit [32] |
Define Documentation
#define DAC_DHR12R_Address 0x40007408 |
Definition at line 41 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/main.c.
Referenced by DMA_Config().
Function Documentation
static void DAC_Config | ( | void | ) | [static] |
Configures DAC channel 1.
- Parameters:
-
None
- Return values:
-
None
Definition at line 117 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/main.c.
References DAC_InitStructure, and GPIO_InitStructure.
Referenced by main().
static void DMA_Config | ( | void | ) | [static] |
Configures DMA1 channel3.
- Parameters:
-
None
- Return values:
-
None
Definition at line 156 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/main.c.
References DAC_DHR12R_Address, DMA_InitStructure, and Sine12bit.
Referenced by main().
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 66 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/stm32f0xx_it.c.
int main | ( | void | ) |
Main program.
- Parameters:
-
None
- Return values:
-
None
< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f0xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file
Definition at line 62 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/main.c.
References DAC_Config(), DMA_Config(), and TIM_Config().
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 88 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/stm32f0xx_it.c.
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 79 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 97 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/stm32f0xx_it.c.
static void TIM_Config | ( | void | ) | [static] |
Configures the TIM2.
- Parameters:
-
None
- Return values:
-
None
Definition at line 90 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/main.c.
References TIM_TimeBaseStructure.
Referenced by main().
Variable Documentation
uint16_t Sine12bit[32] |
{ 2047, 2447, 2831, 3185, 3498, 3750, 3939, 4056, 4095, 4056, 3939, 3750, 3495, 3185, 2831, 2447, 2047, 1647, 1263, 909, 599, 344, 155, 38, 0, 38, 155, 344, 599, 909, 1263, 1647}
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/DMA/DMA_RAMDACTransfer/main.c.