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))) |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
#define countof | ( | a | ) | (sizeof(a) / sizeof(*(a))) |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/USART/USART_Printf/stm32f0xx_it.c.
#define RXBUFFERSIZE 0x20 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/USART/USART_Printf/stm32f0xx_it.c.
#define RXBUFFERSIZE 0x20 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
#define TXBUFFERSIZE (countof(TxBuffer) - 1) |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/USART/USART_Printf/stm32f0xx_it.c.
#define TXBUFFERSIZE (countof(TxBuffer) - 1) |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
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:
-
None This 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 |
Definition at line 55 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
Referenced by main(), and USART2_IRQHandler().
uint8_t NbrOfDataToRead = RXBUFFERSIZE |
Definition at line 55 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
uint8_t NbrOfDataToRead = RXBUFFERSIZE |
Definition at line 55 of file STM32F0xx_StdPeriph_Examples/USART/USART_Printf/stm32f0xx_it.c.
Referenced by main(), and USART2_IRQHandler().
uint8_t NbrOfDataToTransfer |
Definition at line 54 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
Referenced by main(), and USART2_IRQHandler().
uint8_t NbrOfDataToTransfer = TXBUFFERSIZE |
Definition at line 54 of file STM32F0xx_StdPeriph_Examples/USART/USART_Printf/stm32f0xx_it.c.
Referenced by main(), and USART2_IRQHandler().
uint8_t NbrOfDataToTransfer = TXBUFFERSIZE |
Definition at line 54 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
uint8_t RxBuffer[RXBUFFERSIZE] |
Definition at line 53 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
uint8_t RxBuffer[RXBUFFERSIZE] |
Definition at line 53 of file STM32F0xx_StdPeriph_Examples/USART/USART_Printf/stm32f0xx_it.c.
__IO uint16_t RxCount |
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
Referenced by main(), and USART2_IRQHandler().
__IO uint16_t RxCount = 0 |
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/USART/USART_Printf/stm32f0xx_it.c.
Referenced by main(), and USART2_IRQHandler().
__IO uint16_t RxCount = 0 |
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
uint8_t TxBuffer[] |
"\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[] |
"\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 |
Definition at line 56 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
Referenced by main(), and USART2_IRQHandler().
__IO uint8_t TxCount = 0 |
Definition at line 56 of file STM32F0xx_StdPeriph_Examples/USART/USART_HyperTerminalInterrupt/stm32f0xx_it.c.
__IO uint8_t TxCount = 0 |
Definition at line 56 of file STM32F0xx_StdPeriph_Examples/USART/USART_Printf/stm32f0xx_it.c.
Referenced by main(), and USART2_IRQHandler().