/**
  @page FDCAN_Classic_Frame_Networking FDCAN Classic Frame Networking example

  @verbatim
  ******************************************************************************
  * @file    FDCAN/FDCAN_Classic_Frame_Networking/readme.txt 
  * @author  MCD Application Team
  * @brief   Description of the FDCAN_Classic_Frame_Networking ewample.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2020 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  @endverbatim

@par Example Description

How to configure the FDCAN peripheral to send and receive Classic CAN frames.

The sent frames are used to control LEDs by pressing Tamper push-button.

The CAN serial communication link is a bus to which a number of units may be
connected. This number has no theoretical limit. Practically the total number
of units will be limited by delay times and/or electrical loads on the bus line.

FDCAN peripheral is configured to operate in classic CAN frame mode, with CAN
Bit Rate of 1 MBit/s.

This program behaves as follows:

  At the beginning of the main program the HAL_Init() function is called to reset
  all the peripherals, initialize the Flash interface and the systick.
  The SystemClock_Config() function is used to configure the system clock (SYSCLK)
  to run at 64 MHz.

  After reset, all LEDs are OFF on the couple of eval boards connected to the CAN bus.
  By Pressing Tamper push-button: a CAN frame is sent on the CAN bus, to turn
  ON LED1 and turn OFF all other LEDs on both eval boards.
  Each time Tamper push-button is pressed again, the LEDn+1 is turned ON, and all
  other LEDs are turned OFF on both eval boards.

  If at any time of the process an error is encountered, all LEDs are turned ON.

@note Any unit in the CAN bus may play the role of sender (by pressing
      Tamper push-button) or receiver.

@note Care must be taken when using HAL_Delay(), this function provides accurate delay (in milliseconds)
      based on variable incremented in SysTick ISR. This implies that if HAL_Delay() is called from
      a peripheral ISR process, then the SysTick interrupt must have higher priority (numerically lower)
      than the peripheral interrupt. Otherwise the caller ISR process will be blocked.
      To change the SysTick interrupt priority you have to use HAL_NVIC_SetPriority() function.

@note The application need to ensure that the SysTick time base is always set to 1 millisecond
      to have correct HAL operation.

@par Keywords

FDCAN, Networking, Classic, CAN

@par Directory contents

  - FDCAN/FDCAN_Classic_Frame_Networking/Inc/stm32g0xx_hal_conf.h    HAL configuration file
  - FDCAN/FDCAN_Classic_Frame_Networking/Inc/stm32g0xx_it.h          Header for stm32g0xx_it.c
  - FDCAN/FDCAN_Classic_Frame_Networking/Inc/main.h                  Header for main.c module
  - FDCAN/FDCAN_Classic_Frame_Networking/Src/stm32g0xx_it.c          Interrupt handlers
  - FDCAN/FDCAN_Classic_Frame_Networking/Src/main.c                  Main program
  - FDCAN/FDCAN_Classic_Frame_Networking/Src/stm32g0xx_hal_msp.c     HAL MSP module
  - FDCAN/FDCAN_Classic_Frame_Networking/Src/system_stm32g0xx.c      stm32g0xx system source file

@par Hardware and Software environment

  - This example runs on STM32G0C1VETx devices.

  - This example has been tested with a couple of STM32G0C1E-EV board and can be
    easily tailored to any other supported device and development board.

  - STM32G0C1E-EV set-up:
    - Jumper JP9 => fitted to connect terminal resistor on CAN physical link (on each board).
    - Connect the 2 points CN12 CAN connector (CAN-H and CAN-L) of the first eval board,
      to the 2 points CN12 CAN connectors (resp. CAN-H and CAN-L) of the second eval board.
       _________________________                       _________________________ 
      |           ______________|                     |______________           |
      |          |FDCAN1        |                     |        FDCAN1|          |
      |          |              |                     |              |          |
      |          |       CAN    |1___________________1|    CAN       |          |
      |          |    connector |2___________________2| connector    |          |
      |          |      (CN12)  |                     |   (CN12)     |          |
      |          |______________|                     |______________|          |
      |                         |                     |                         |
      |   _    _    _    _      |                     |   _    _    _    _      |
      |  |_|  |_|  |_|  |_|     |                     |  |_|  |_|  |_|  |_|     |
      | LED1 LED2 LED3 LED4     |                     | LED1 LED2 LED3 LED4     |
      |          _              |                     |          _              |
      |         (_)             |                     |         (_)             |
      |         User            |                     |         User            |
      |                         |                     |                         |
      |      STM32 Board 1      |                     |      STM32 Board 2      |
      |                         |                     |                         |
      |_________________________|                     |_________________________|
      
  - This example can also be tested by connecting the CAN connector to a different
    development board (ex: STM32373C-EVAL...) loaded with the corresponding CAN Networking example.
    In this case, user must ensure that the CAN bit rate configuration is also equal to 1Mbit/s.

@par How to use it ?

In order to make the program work, you must do the following :
  - Open your preferred toolchain
  - Rebuild all files and load your image into target memory
  - Run the example


 */
