USART_HyperTerminal_Interrupt
[STM32F10x_StdPeriph_Examples]

Defines

#define countof(a)   (sizeof(a) / sizeof(*(a)))
#define RxBufferSize   0x20
#define TxBufferSize   (countof(TxBuffer) - 1)
#define USARTx_IRQHandler   USART1_IRQHandler
#define USARTx_IRQn   USART1_IRQn

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
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 NVIC_Configuration (void)
 Configures the nested vectored interrupt controller.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
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.
void USARTx_IRQHandler (void)
 This function handles USARTx global interrupt request.

Variables

uint8_t NbrOfDataToRead = RxBufferSize
uint8_t NbrOfDataToTransfer = TxBufferSize
uint8_t RxBuffer [RxBufferSize]
uint16_t RxCounter = 0
uint8_t TxBuffer []
uint8_t TxCounter = 0
USART_InitTypeDef USART_InitStructure

Define Documentation

#define countof (  )     (sizeof(a) / sizeof(*(a)))
#define RxBufferSize   0x20
#define TxBufferSize   (countof(TxBuffer) - 1)
#define USARTx_IRQHandler   USART1_IRQHandler
#define USARTx_IRQn   USART1_IRQn

Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 105 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 140 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_it.c.

void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 79 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_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_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file

Definition at line 55 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/main.c.

References COM1, ENABLE, EVAL_COM1, NVIC_Configuration(), STM_EVAL_COMInit(), USART_InitTypeDef::USART_BaudRate, USART_InitTypeDef::USART_HardwareFlowControl, USART_HardwareFlowControl_None, USART_IT_RXNE, USART_IT_TXE, USART_ITConfig(), USART_InitTypeDef::USART_Mode, USART_Mode_Rx, USART_Mode_Tx, USART_InitTypeDef::USART_Parity, USART_Parity_Odd, USART_InitTypeDef::USART_StopBits, USART_StopBits_2, USART_InitTypeDef::USART_WordLength, and USART_WordLength_8b.

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 92 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 70 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_it.c.

void NVIC_Configuration ( void   ) 
void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 149 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_it.c.

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 131 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 158 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_it.c.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 118 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_it.c.

void USARTx_IRQHandler ( void   ) 

Variable Documentation

uint8_t NbrOfDataToRead = RxBufferSize
uint8_t NbrOfDataToTransfer = TxBufferSize
uint8_t RxBuffer[RxBufferSize]
uint16_t RxCounter = 0
uint8_t TxBuffer[]
Initial value:
 "\n\rUSART Hyperterminal Interrupts Example: USART-Hyperterminal\
 communication using Interrupt\n\r"

Definition at line 50 of file STM32F10x_StdPeriph_Examples/USART/HyperTerminal_Interrupt/stm32f10x_it.c.

uint8_t TxCounter = 0
STM32F10x Standard Peripherals Library: Footer

 

 

 

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