NVIC_DMA_WFIMode
[STM32F10x_StdPeriph_Examples]

Defines

#define USARTy_DMA1_Channel   DMA1_Channel5
#define USARTy_DMA1_IRQn   DMA1_Channel5_IRQn
#define USARTy_DR_Address   0x40013804

Functions

uint8_t Buffercmp16 (uint16_t *pBuffer1, uint16_t *pBuffer2, uint16_t BufferLength)
 Compares two buffers.
void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void Delay (__IO uint32_t nCount)
 Inserts a delay time.
void DMA1_Channel5_IRQHandler (void)
 This function handles DMA1 Channel 5 interrupt request.
void DMA1_Channel6_IRQHandler (void)
 This function handles DMA1 Channel 6 interrupt request.
void EXTI9_5_IRQHandler (void)
 This function handles External lines 9 to 5 interrupt request.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void MemManage_Handler (void)
 This function handles Memory Manage exception.
void NMI_Handler (void)
 This function handles NMI exception.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
void RCC_Configuration (void)
 Configures the different system clocks.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

DMA_InitTypeDef DMA_InitStructure
uint16_t DST_Buffer [10]
uint16_t DST_Buffer [10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
__IO uint32_t LowPowerMode
__IO uint32_t LowPowerMode = 0
NVIC_InitTypeDef NVIC_InitStructure
uint16_t SRC_Buffer [10] = {0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39}
uint8_t TestStatus = 0
USART_InitTypeDef USART_InitStructure

Define Documentation

#define USARTy_DMA1_Channel   DMA1_Channel5
#define USARTy_DMA1_IRQn   DMA1_Channel5_IRQn

Definition at line 42 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/main.c.

Referenced by main().

#define USARTy_DR_Address   0x40013804

Function Documentation

uint8_t Buffercmp16 ( uint16_t *  pBuffer1,
uint16_t *  pBuffer2,
uint16_t  BufferLength 
)

Compares two buffers.

Parameters:
pBuffer1,pBuffer2,: buffers to be compared.
BufferLength,: buffer's length
Return values:
0,: pBuffer1 identical to pBuffer2 1: pBuffer1 differs from pBuffer2

Definition at line 188 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/main.c.

Referenced by DMA1_Channel5_IRQHandler(), and DMA1_Channel6_IRQHandler().

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 93 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 128 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

void Delay ( __IO uint32_t  nCount  ) 

Inserts a delay time.

Parameters:
nCount,: specifies the delay time length.
Return values:
None 

Definition at line 208 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/main.c.

void DMA1_Channel5_IRQHandler ( void   ) 

This function handles DMA1 Channel 5 interrupt request.

Parameters:
None 
Return values:
None 

Definition at line 159 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

References Buffercmp16(), DMA1_IT_GL5, DMA1_IT_TC5, DMA_ClearITPendingBit(), DMA_GetITStatus(), DST_Buffer, LED2, LED3, SRC_Buffer, and STM_EVAL_LEDToggle().

void DMA1_Channel6_IRQHandler ( void   ) 

This function handles DMA1 Channel 6 interrupt request.

Parameters:
None 
Return values:
None 

Definition at line 184 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

References Buffercmp16(), CurrDataCounterEnd, DMA1_Channel6, DMA1_IT_GL6, DMA1_IT_TC6, DMA_ClearITPendingBit(), DMA_GetCurrDataCounter(), DMA_GetITStatus(), DST_Buffer, LED2, LED3, SRC_Buffer, and STM_EVAL_LEDToggle().

void EXTI9_5_IRQHandler ( void   ) 

This function handles External lines 9 to 5 interrupt request.

This function handles EXTI Lines 9 to 5 interrupts requests.

Parameters:
None 
Return values:
None 

Definition at line 209 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

References EXTI_ClearITPendingBit(), EXTI_GetITStatus(), KEY_BUTTON_EXTI_LINE, LowPowerMode, and RESET.

void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 67 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

int main ( void   ) 
void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 80 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 58 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 137 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

void RCC_Configuration ( void   ) 

Configures the different system clocks.

Parameters:
None 
Return values:
None 

Definition at line 144 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/main.c.

References ENABLE, RCC_AHBPeriph_DMA1, and RCC_AHBPeriphClockCmd().

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 119 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 146 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 106 of file STM32F10x_StdPeriph_Examples/NVIC/DMA_WFIMode/stm32f10x_it.c.


Variable Documentation

uint16_t DST_Buffer[10]
uint16_t DST_Buffer[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
__IO uint32_t LowPowerMode
__IO uint32_t LowPowerMode = 0
uint16_t SRC_Buffer[10] = {0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39}
uint8_t TestStatus = 0
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32