STM32F0xx Standard Peripherals Firmware Library
|
Functions | |
static void | CRC_Config (uint8_t poly) |
Configure CRC peripheral to use 8-bit polynomials. | |
void | HardFault_Handler (void) |
This function handles Hard Fault exception. | |
int | main (void) |
Main program. | |
void | NMI_Handler (void) |
This function handles NMI exception. | |
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. | |
static void | SysTickConfig (void) |
Configure a SysTick Base time to 10 ms. | |
static void | USART_Config (void) |
Configures the USART Peripheral. | |
void | USARTx_IRQHandler (void) |
This function handles USRAT interrupt request. | |
Variables | |
uint8_t | ComputedCRC = 0 |
__IO uint8_t | Counter = 0x00 |
__IO JOYState_TypeDef | PressedButton = JOY_NONE |
__IO JOYState_TypeDef | PressedButton |
uint8_t | RxBuffer [RXBUFFERSIZE] |
uint8_t | RxBuffer [] |
__IO uint8_t | RxIndex |
__IO uint8_t | RxIndex = 0x00 |
__IO uint32_t | TimeOut = 0x00 |
uint8_t | TxBuffer [] = "USART Interrupt Example: Communication between two USART using Interrupt" |
uint8_t | TxBuffer [] |
__IO uint8_t | TxIndex |
__IO uint8_t | TxIndex = 0x00 |
Function Documentation
static void CRC_Config | ( | uint8_t | poly | ) | [static] |
Configure CRC peripheral to use 8-bit polynomials.
- Parameters:
-
poly,: the CRC polynomial
- Return values:
-
None
Definition at line 198 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
Referenced by main().
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 72 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/stm32f0xx_it.c.
int main | ( | void | ) |
Main program.
- Parameters:
-
None
- Return values:
-
None
< At this stage the microcontrollers clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f30x.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f30x.c file
Definition at line 59 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
References CRC_Config(), PressedButton, SysTickConfig(), USART_Config(), and USARTx.
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 63 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 94 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/stm32f0xx_it.c.
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 85 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 103 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/stm32f0xx_it.c.
References Counter.
static void SysTickConfig | ( | void | ) | [static] |
Configure a SysTick Base time to 10 ms.
- Parameters:
-
None
- Return values:
-
None
Definition at line 181 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
References SystemCoreClock.
Referenced by main().
static void USART_Config | ( | void | ) | [static] |
Configures the USART Peripheral.
- Parameters:
-
None
- Return values:
-
None
Definition at line 119 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
References GPIO_InitStructure, NVIC_InitStructure, USART_InitStructure, USARTx, USARTx_APBPERIPHCLOCK, USARTx_CLK, USARTx_IRQn, USARTx_RX_AF, USARTx_RX_GPIO_CLK, USARTx_RX_GPIO_PORT, USARTx_RX_PIN, USARTx_RX_SOURCE, USARTx_TX_AF, USARTx_TX_GPIO_CLK, USARTx_TX_GPIO_PORT, USARTx_TX_PIN, and USARTx_TX_SOURCE.
Referenced by main().
void USARTx_IRQHandler | ( | void | ) |
This function handles USRAT interrupt request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 123 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/stm32f0xx_it.c.
Variable Documentation
uint8_t ComputedCRC = 0 |
Definition at line 49 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/stm32f0xx_it.c.
__IO uint8_t Counter = 0x00 |
Definition at line 47 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/stm32f0xx_it.c.
Referenced by SysTick_Handler().
__IO JOYState_TypeDef PressedButton = JOY_NONE |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
Referenced by main().
__IO JOYState_TypeDef PressedButton |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
Referenced by main().
uint8_t RxBuffer[RXBUFFERSIZE] |
Definition at line 41 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
Referenced by main(), SPI1_IRQHandler(), USART2_IRQHandler(), and USARTx_IRQHandler().
uint8_t RxBuffer[] |
Definition at line 41 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
__IO uint8_t RxIndex |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
__IO uint8_t RxIndex = 0x00 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
Referenced by main(), and USARTx_IRQHandler().
__IO uint32_t TimeOut = 0x00 |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/stm32f0xx_it.c.
Referenced by main(), and SysTick_Handler().
uint8_t TxBuffer[] = "USART Interrupt Example: Communication between two USART using Interrupt" |
Definition at line 40 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
Referenced by main(), SPI1_IRQHandler(), USART2_IRQHandler(), and USARTx_IRQHandler().
uint8_t TxBuffer[] |
Definition at line 40 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
__IO uint8_t TxIndex |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
__IO uint8_t TxIndex = 0x00 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.c.
Referenced by main(), and USARTx_IRQHandler().