STM32F0xx Standard Peripherals Firmware Library
|
Defines | |
#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 RX0 request. | |
void | DebugMon_Handler (void) |
This function handles Debug Monitor exception. | |
void | Delay (void) |
Delay. | |
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 |
uint8_t | KeyNumber = 0x0 |
CanRxMsg | RxMessage = {0} |
CanTxMsg | TxMessage = {0} |
Define Documentation
#define TAMPER_NOT_PRESSED 0x01 |
Definition at line 42 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/main.c.
Referenced by main().
#define TAMPER_PRESSED 0x00 |
Definition at line 41 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/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 95 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
static void CAN_Config | ( | void | ) | [static] |
Configures the CAN.
- Parameters:
-
None
- Return values:
-
None
Definition at line 112 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/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 RX0 request.
This function handles CAN request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 163 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
References CANx, KeyNumber, LED_Display(), and RxMessage.
void DebugMon_Handler | ( | void | ) |
This function handles Debug Monitor exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 130 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
void Delay | ( | void | ) |
Delay.
- Parameters:
-
None
- Return values:
-
None
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 69 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/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 194 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/main.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 59 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/main.c.
References CAN_Config(), CANx, Delay(), KeyNumber, LED_Display(), TAMPER_NOT_PRESSED, TAMPER_PRESSED, and TxMessage.
void MemManage_Handler | ( | void | ) |
This function handles Memory Manage exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 82 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 60 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 139 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 121 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 148 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
void UsageFault_Handler | ( | void | ) |
This function handles Usage Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 108 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
Variable Documentation
uint8_t KeyNumber |
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 = 0x0 |
Definition at line 47 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/main.c.
CanRxMsg RxMessage = {0} |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/stm32f0xx_it.c.
CanTxMsg TxMessage = {0} |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_Networking/main.c.