|
STM32F0xx Standard Peripherals Firmware Library
|
Enumerations | |
| enum | TestStatus { FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 1, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED } |
Functions | |
| void | BusFault_Handler (void) |
| This function handles Bus Fault exception. | |
| TestStatus | CAN_Interrupt (void) |
| Configures the CAN, transmit and receive using interrupt. | |
| TestStatus | CAN_Polling (void) |
| Configures the CAN, transmit and receive by polling. | |
| void | CEC_CAN_IRQHandler (void) |
| This function handles CAN1 RX0 request. | |
| 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. | |
| static void | NVIC_Config (void) |
| Configures the NVIC. | |
| 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 | UsageFault_Handler (void) |
| This function handles Usage Fault exception. | |
Variables | |
| __IO uint32_t | ret = 0 |
| __IO uint32_t | ret |
| __IO TestStatus | TestRx |
Enumeration Type Documentation
| enum TestStatus |
- Enumerator:
Definition at line 41 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/main.c.
Function Documentation
| void BusFault_Handler | ( | void | ) |
This function handles Bus Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 94 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/stm32f0xx_it.c.
| TestStatus CAN_Interrupt | ( | void | ) |
Configures the CAN, transmit and receive using interrupt.
- Parameters:
-
None
- Return values:
-
PASSED if the reception is well done, FAILED in other case
Definition at line 225 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/main.c.
References CAN_FilterInitStructure, i, ret, and TxMessage.
Referenced by main().
| TestStatus CAN_Polling | ( | void | ) |
Configures the CAN, transmit and receive by polling.
- Parameters:
-
None
- Return values:
-
PASSED if the reception is well done, FAILED in other case
Definition at line 125 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/main.c.
References CAN_FilterInitStructure, FAILED, i, PASSED, RxMessage, and TxMessage.
Referenced by main().
| void CEC_CAN_IRQHandler | ( | void | ) |
This function handles CAN1 RX0 request.
This function handles CAN request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 162 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/stm32f0xx_it.c.
| void DebugMon_Handler | ( | void | ) |
This function handles Debug Monitor exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 129 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/stm32f0xx_it.c.
| void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 68 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/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/CAN/CAN_LoopBack/main.c.
References CAN_Interrupt(), CAN_Polling(), FAILED, NVIC_Config(), and TestRx.
| void MemManage_Handler | ( | void | ) |
This function handles Memory Manage exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 81 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/stm32f0xx_it.c.
| void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 59 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/stm32f0xx_it.c.
| static void NVIC_Config | ( | void | ) | [static] |
Configures the NVIC.
- Parameters:
-
None
- Return values:
-
None
Definition at line 304 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/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 138 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/stm32f0xx_it.c.
| void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 120 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/stm32f0xx_it.c.
| void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 147 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/stm32f0xx_it.c.
| void UsageFault_Handler | ( | void | ) |
This function handles Usage Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 107 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/stm32f0xx_it.c.
Variable Documentation
| __IO uint32_t ret = 0 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/main.c.
Referenced by CAN_Interrupt(), and CEC_CAN_IRQHandler().
| __IO uint32_t ret |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/main.c.
Referenced by CAN_Interrupt(), and CEC_CAN_IRQHandler().
| __IO TestStatus TestRx |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_LoopBack/main.c.
Referenced by main().