| BlueNRG-1 Peripherals drivers Examples

- Main Page
- Modules
- Classes
- Files

Macros | Functions | Variables
ADC DMA Example
BlueNRG1 Standard Peripheral Examples » ADC Examples

## Macros

#define | SYST_CLOCK 16000000 /* System clock frequency */
#define | ADC_OUT_ADDRESS (ADC_BASE + 0x14)
#define | ADC_DMA_CH0 (DMA_CH0)
#define | ADC_DMA_BUFFER_LEN (256)

## Functions

void | SdkDelayMs (volatile uint32_t lTimeMs)
| Delay function in ms. More...
void | ADC_Configuration (void)
| ADC_Configuration. More...
int | main (void)
| Main program. More...

## Variables

volatile uint32_t | lSystickCounter =0
ADC_InitType | xADC_InitType
uint32_t | buffer_adc [ADC_DMA_BUFFER_LEN]

## Detailed Description

## Macro Definition Documentation

#define ADC_DMA_BUFFER_LEN (256)

Definition at line 192 of file ADC_DMA_main.c.

#define ADC_DMA_CH0 (DMA_CH0)

Definition at line 190 of file ADC_DMA_main.c.

#define ADC_OUT_ADDRESS (ADC_BASE + 0x14)

Definition at line 189 of file ADC_DMA_main.c.

#define SYST_CLOCK 16000000 /* System clock frequency */

Definition at line 187 of file ADC_DMA_main.c.

## Function Documentation

void ADC_Configuration | ( | void |  | ) |

ADC_Configuration.

Parameters

  None |

Return values

  None |

Definition at line 301 of file ADC_DMA_main.c.

int main | ( | void |  | ) |

Main program.

Parameters

  None |

Return values

  None |

Definition at line 214 of file ADC_DMA_main.c.

void SdkDelayMs | ( | volatile uint32_t | lTimeMs | ) |

Delay function in ms.

Parameters

  lTimeMs | time in ms

Return values

  None |

Definition at line 279 of file ADC_DMA_main.c.

## Variable Documentation

uint32_t buffer_adc[ADC_DMA_BUFFER_LEN]

Definition at line 198 of file ADC_DMA_main.c.

volatile uint32_t lSystickCounter =0

Definition at line 196 of file ADC_DMA_main.c.

ADC_InitType xADC_InitType

Definition at line 197 of file ADC_DMA_main.c.