================================================================================
                        S6E3GMxJ_CAN0_MFS0_UART Project
================================================================================

/*******************************************************************************
* Copyright (C) 2013-2015, Cypress Semiconductor Corporation. All rights reserved.
*
* This software, including source code, documentation and related
* materials ( "Software" ), is owned by Cypress Semiconductor
* Corporation ( "Cypress" ) and is protected by and subject to worldwide
* patent protection (United States and foreign), United States copyright
* laws and international treaty provisions. Therefore, you may use this
* Software only as provided in the license agreement accompanying the
* software package from which you obtained this Software ( "EULA" ).
* If no EULA applies, Cypress hereby grants you a personal, nonexclusive,
* non-transferable license to copy, modify, and compile the
* Software source code solely for use in connection with Cypress's
* integrated circuit products. Any reproduction, modification, translation,
* compilation, or representation of this Software except as specified
* above is prohibited without the express written permission of Cypress.
* Disclaimer: THIS SOFTWARE IS PROVIDED AS-IS, WITH NO
* WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING,
* BUT NOT LIMITED TO, NONINFRINGEMENT, IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE. Cypress reserves the right to make
* changes to the Software without notice. Cypress does not assume any
* liability arising out of the application or use of the Software or any
* product or circuit described in the Software. Cypress does not
* authorize its products for use in any products where a malfunction or
* failure of the Cypress product may reasonably be expected to result in
* significant property damage, injury or death ( "High Risk Product" ). By
* including Cypress's product in a High Risk Product, the manufacturer
* of such system or application assumes all risk of such use and in doing
* so agrees to indemnify Cypress against all liability.
*/

================================================================================
History
Date        Ver       Initials   Description
2016-01-14  1.0.0     MWi        First version


Supported toolchain versions

ARM        5.11
================================================================================
This examples was tested on FM4 S6E2G-SERIES PIONEER KIT with external
CAN PHY.
CAN pins TX0_0 (Pin 101, P17) and RX0_0 (Pin 100, P16) are used, which can be
found on CN7 and CN10 respectively.

The CAN_Tx_FM4 example uses CAN-controller (CAN0) to transmit 3 bytes data to control RGB LEDs on another controller.

The data is sent in the following format:
Byte 1= ON/OFF status of LED
Byte 2= Color of LED
Byte 3= Brightness of LED

Initially all LEDs are set to off. The LED color is initialized to RED and brightness to zero.
The LED is turned on and brightness is increased gradually. At each increase in brightness the data is sent over 
the CAN. Once brightness reaches maximum value, the LEDs are turned off and the color is changed. The process again 
repeated. 

Information about the used message buffers:
CAN-Buffer 6 sends data

     CAN1  is initialized to    125Kbit


Clock settings:
---------------
Crystal:  4 MHz
HCLK:    160 MHz
PCLK0:    80 MHz
PCLK1:    80 MHz
PCLK2:    80 MHz
