STM32F0xx Standard Peripherals Firmware Library
|
Defines | |
#define | MESSAGE1 " STM32072B-EVAL " |
#define | MESSAGE1 "FIFO0 : Msg received" |
#define | MESSAGE2 "TAMPER:Send Frame to FIFO 0" |
#define | MESSAGE2 "FIFO1 : Msg received" |
#define | MESSAGE3 "SEL: Send Frame to FIFO 1" |
Functions | |
void | BusFault_Handler (void) |
This function handles Bus Fault exception. | |
static void | CAN_Config (void) |
Configures the CAN. | |
void | CEC_CAN_IRQHandler (void) |
This function handles CAN request. | |
void | DebugMon_Handler (void) |
This function handles Debug Monitor exception. | |
void | EXTI0_1_IRQHandler (void) |
This function handles EXTI 10 to 15 request. | |
void | EXTI4_15_IRQHandler (void) |
This function handles EXTI 6 request. | |
void | HardFault_Handler (void) |
This function handles Hard Fault exception. | |
void | LED_Display (uint8_t Ledstatus) |
Turn ON/OFF the dedicated led. | |
int | main (void) |
Main program. | |
void | MemManage_Handler (void) |
This function handles Memory Manage exception. | |
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. | |
void | UsageFault_Handler (void) |
This function handles Usage Fault exception. | |
Variables | |
uint8_t | KeyNumber = 0x0 |
uint8_t | KeyNumber |
CanRxMsg | RxMessage |
CanRxMsg | RxMessage1 |
CanTxMsg | TxMessage = {0} |
CanTxMsg | TxMessage |
CanTxMsg | TxMessage1 = {0} |
CanTxMsg | TxMessage1 |
Define Documentation
#define MESSAGE1 " STM32072B-EVAL " |
Definition at line 42 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
Referenced by main().
#define MESSAGE1 "FIFO0 : Msg received" |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
Referenced by CEC_CAN_IRQHandler(), and EXTI4_15_IRQHandler().
#define MESSAGE2 "TAMPER:Send Frame to FIFO 0" |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
Referenced by main().
#define MESSAGE2 "FIFO1 : Msg received" |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
Referenced by CEC_CAN_IRQHandler(), and EXTI0_1_IRQHandler().
#define MESSAGE3 "SEL: Send Frame to FIFO 1" |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
Referenced by main().
Function Documentation
void BusFault_Handler | ( | void | ) |
This function handles Bus Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 99 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
static void CAN_Config | ( | void | ) | [static] |
Configures the CAN.
- Parameters:
-
None
- Return values:
-
None
Definition at line 131 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
References CAN_AF_PORT, CAN_CLK, CAN_FilterInitStructure, CAN_GPIO_CLK, CAN_GPIO_PORT, CAN_RX_PIN, CAN_RX_SOURCE, CAN_TX_PIN, CAN_TX_SOURCE, CANx, GPIO_InitStructure, NVIC_InitStructure, TxMessage, and TxMessage1.
Referenced by main().
void CEC_CAN_IRQHandler | ( | void | ) |
This function handles CAN request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 164 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void DebugMon_Handler | ( | void | ) |
This function handles Debug Monitor exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 134 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void EXTI0_1_IRQHandler | ( | void | ) |
This function handles EXTI 10 to 15 request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 231 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void EXTI4_15_IRQHandler | ( | void | ) |
This function handles EXTI 6 request.
This function handles External line 4 to 15 interrupt request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 202 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 73 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void LED_Display | ( | uint8_t | Ledstatus | ) |
Turn ON/OFF the dedicated led.
- Parameters:
-
Ledstatus,: Led number from 1 to 4.
- Return values:
-
None
Definition at line 236 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
Referenced by CEC_CAN_IRQHandler(), EXTI0_1_IRQHandler(), EXTI4_15_IRQHandler(), and main().
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 61 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
References CAN_Config(), MESSAGE1, MESSAGE2, and MESSAGE3.
void MemManage_Handler | ( | void | ) |
This function handles Memory Manage exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 86 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 64 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 143 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 125 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 152 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
void UsageFault_Handler | ( | void | ) |
This function handles Usage Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 112 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
Variable Documentation
uint8_t KeyNumber = 0x0 |
Definition at line 49 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
Referenced by CEC_CAN_IRQHandler(), EXTI0_1_IRQHandler(), EXTI4_15_IRQHandler(), and main().
uint8_t KeyNumber |
Definition at line 49 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
CanRxMsg RxMessage |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
Referenced by CAN_Polling(), CEC_CAN_IRQHandler(), and Display_ReceivedMsg().
CanRxMsg RxMessage1 |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.
Referenced by CEC_CAN_IRQHandler().
CanTxMsg TxMessage = {0} |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
Referenced by CAN_Config(), CAN_Interrupt(), CAN_Polling(), Display_TransmittedMsg(), EXTI4_15_IRQHandler(), and main().
CanTxMsg TxMessage |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
Referenced by CAN_Config(), CAN_Interrupt(), CAN_Polling(), Display_TransmittedMsg(), EXTI4_15_IRQHandler(), and main().
CanTxMsg TxMessage1 = {0} |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
Referenced by CAN_Config(), and EXTI0_1_IRQHandler().
CanTxMsg TxMessage1 |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.
Referenced by CAN_Config(), and EXTI0_1_IRQHandler().