STM32F0xx Standard Peripherals Firmware Library: main.c File Reference

STM32F0xx Standard Peripherals Library

STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c File Reference

Main program body. More...

#include "main.h"

Go to the source code of this file.

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

static void CAN_Config (void)
 Configures the CAN.
void Delay (void)
 Delay.
void Display_ReceivedMsg (void)
 Display received msg on the LCD.
static void Display_TransmittedMsg (uint8_t PushNumber)
 Display transmitted msg on the LCD.
int main (void)
 Main program.

Variables

CAN_FilterInitTypeDef CAN_FilterInitStructure
uint8_t KeyNumber = 0x0
__IO uint8_t MsgReceived
CanRxMsg RxMessage = {0}
CanTxMsg TxMessage = {0}

Detailed Description

Main program body.

Author:
MCD Application Team
Version:
V1.4.0
Date:
24-July-2014
Attention:

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.

STM32L1xx Standard Peripherals Library: Footer

 

 

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