STM32F0xx Standard Peripherals Firmware Library: HyperTerminal_Interrupt

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Defines

#define countof(a)   (sizeof(a) / sizeof(*(a)))
#define countof(a)   (sizeof(a) / sizeof(*(a)))
#define RXBUFFERSIZE   0x20
#define RXBUFFERSIZE   0x20
#define TXBUFFERSIZE   (countof(TxBuffer) - 1)
#define TXBUFFERSIZE   (countof(TxBuffer) - 1)

Functions

void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void NMI_Handler (void)
 This function handles NMI exception.
static void NVIC_Config (void)
 Configures the nested vectored interrupt controller.
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.
void USART2_IRQHandler (void)
 This function handles PPP interrupt request.
static void USART_Config (void)
 Configure the USART Device.

Variables

uint8_t NbrOfDataToRead
uint8_t NbrOfDataToRead = RXBUFFERSIZE
uint8_t NbrOfDataToRead = RXBUFFERSIZE
uint8_t NbrOfDataToTransfer
uint8_t NbrOfDataToTransfer = TXBUFFERSIZE
uint8_t NbrOfDataToTransfer = TXBUFFERSIZE
uint8_t RxBuffer [RXBUFFERSIZE]
uint8_t RxBuffer [RXBUFFERSIZE]
__IO uint16_t RxCount
__IO uint16_t RxCount = 0
__IO uint16_t RxCount = 0
uint8_t TxBuffer []
uint8_t TxBuffer []
__IO uint8_t TxCount
__IO uint8_t TxCount = 0
__IO uint8_t TxCount = 0

Define Documentation

#define countof (   a)    (sizeof(a) / sizeof(*(a)))
#define countof (   a)    (sizeof(a) / sizeof(*(a)))
#define RXBUFFERSIZE   0x20
#define RXBUFFERSIZE   0x20
#define TXBUFFERSIZE   (countof(TxBuffer) - 1)
#define TXBUFFERSIZE   (countof(TxBuffer) - 1)

Function Documentation

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 80 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/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 60 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/main.c.

References NbrOfDataToRead, NbrOfDataToTransfer, NVIC_Config(), RxCount, TxCount, and USART_Config().

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 71 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.

static void NVIC_Config ( void  ) [static]

Configures the nested vectored interrupt controller.

Parameters:
None
Return values:
None

Definition at line 107 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/main.c.

References NVIC_InitStructure.

Referenced by main().

void PendSV_Handler ( void  )

This function handles PendSVC exception.

Parameters:
None
Return values:
None

Definition at line 102 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.

void SVC_Handler ( void  )

This function handles SVCall exception.

Parameters:
None
Return values:
None

Definition at line 93 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.

void SysTick_Handler ( void  )

This function handles SysTick Handler.

Parameters:
None
Return values:
None

Definition at line 111 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.

void USART2_IRQHandler ( void  )

This function handles PPP interrupt request.

This function handles USARTy global interrupt request.

Parameters:
None
Return values:
NoneThis function handles USART1 global interrupt request.
Parameters:
None
Return values:
None

Definition at line 164 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.

References NbrOfDataToRead, NbrOfDataToTransfer, RxBuffer, RxCount, TxBuffer, and TxCount.

static void USART_Config ( void  ) [static]

Configure the USART Device.

Parameters:
None
Return values:
None

Definition at line 123 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/main.c.

References USART_InitStructure.

Referenced by main().


Variable Documentation

uint8_t NbrOfDataToRead = RXBUFFERSIZE
uint8_t NbrOfDataToTransfer = TXBUFFERSIZE
uint8_t RxBuffer[RXBUFFERSIZE]
__IO uint16_t RxCount = 0
uint8_t TxBuffer[]
Initial value:
"\n\rUSART Hyperterminal Interrupts Example: USART-Hyperterminal\
 communication using Interrupt\n\r"

Definition at line 51 of file STM32F0xx_StdPeriph_Examples/USART/USART_Printf/stm32f0xx_it.c.

uint8_t TxBuffer[]
Initial value:
"\n\rUSART Hyperterminal Interrupts Example: USART-Hyperterminal\
 communication using Interrupt\n\r"

Definition at line 51 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.

__IO uint8_t TxCount = 0
STM32L1xx Standard Peripherals Library: Footer

 

 

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