STM32F0xx Standard Peripherals Firmware Library: CRC_TwoBoards

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library
CRC_TwoBoards

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().

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

__IO uint8_t Counter = 0x00
__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[]
__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
STM32L1xx Standard Peripherals Library: Footer

 

 

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