STM32F0xx Standard Peripherals Firmware Library
|
Defines | |
#define | MESSAGE1 " STM32072B-EVAL " |
#define | MESSAGE2 "Press TAMP to Send message " |
#define | MESSAGE3 " Send message to STM32 " |
#define | MESSAGE4 "Receive message From STM32 " |
#define | TAMPER_NOT_PRESSED 0x01 |
#define | TAMPER_PRESSED 0x00 |
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 CAN1 RX1 request. | |
void | DebugMon_Handler (void) |
This function handles Debug Monitor exception. | |
void | Display_ReceivedMsg (void) |
Display received msg on the LCD. | |
static void | Display_TransmittedMsg (uint8_t PushNumber) |
Display transmitted msg on the LCD. | |
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. | |
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. | |
void | USB_LP_CAN1_RX0_IRQHandler (void) |
This function handles CAN1 RX0 request. | |
Variables | |
CAN_FilterInitTypeDef | CAN_FilterInitStructure |
CAN_FilterInitTypeDef | CAN_FilterInitStructure |
uint8_t | KeyNumber = 0x0 |
__IO uint8_t | MsgReceived = 0 |
__IO uint8_t | MsgReceived |
CanRxMsg | RxMessage = {0} |
CanTxMsg | TxMessage = {0} |
Define Documentation
#define MESSAGE1 " STM32072B-EVAL " |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
Referenced by main().
#define MESSAGE2 "Press TAMP to Send message " |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
Referenced by main().
#define MESSAGE3 " Send message to STM32 " |
Definition at line 47 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
Referenced by Display_TransmittedMsg().
#define MESSAGE4 "Receive message From STM32 " |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
Referenced by Display_ReceivedMsg().
#define TAMPER_NOT_PRESSED 0x01 |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
Referenced by main().
#define TAMPER_PRESSED 0x00 |
Definition at line 42 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/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 94 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.
static void CAN_Config | ( | void | ) | [static] |
Configures the CAN.
- Parameters:
-
None
- Return values:
-
None
Definition at line 140 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/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, and TxMessage.
Referenced by main().
void CEC_CAN_IRQHandler | ( | void | ) |
This function handles CAN1 RX1 request.
This function handles CAN request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 168 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.
References CAN_FilterInitStructure, CANx, and MsgReceived.
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_FIFOExtension/stm32f0xx_it.c.
void Display_ReceivedMsg | ( | void | ) |
static void Display_TransmittedMsg | ( | uint8_t | PushNumber | ) | [static] |
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_FIFOExtension/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 70 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
References CAN_Config(), Delay(), Display_ReceivedMsg(), Display_TransmittedMsg(), KeyNumber, MESSAGE1, MESSAGE2, MsgReceived, TAMPER_NOT_PRESSED, and TAMPER_PRESSED.
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_FIFOExtension/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_FIFOExtension/stm32f0xx_it.c.
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_FIFOExtension/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_FIFOExtension/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_FIFOExtension/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_FIFOExtension/stm32f0xx_it.c.
void USB_LP_CAN1_RX0_IRQHandler | ( | void | ) |
This function handles CAN1 RX0 request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 159 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.
Variable Documentation
CAN_FilterInitTypeDef CAN_FilterInitStructure |
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
Referenced by CAN_Config(), CAN_Interrupt(), CAN_Polling(), and CEC_CAN_IRQHandler().
CAN_FilterInitTypeDef CAN_FilterInitStructure |
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
Referenced by CAN_Config(), CAN_Interrupt(), CAN_Polling(), and CEC_CAN_IRQHandler().
uint8_t KeyNumber = 0x0 |
Definition at line 55 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
__IO uint8_t MsgReceived = 0 |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.
Referenced by CEC_CAN_IRQHandler(), and main().
__IO uint8_t MsgReceived |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.
Referenced by CEC_CAN_IRQHandler(), and main().
CanRxMsg RxMessage = {0} |
Definition at line 54 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.
CanTxMsg TxMessage = {0} |
Definition at line 53 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.