/******************** (C) COPYRIGHT 2009 STMicroelectronics ********************
* File Name          : readme.txt
* Author             : MCD Application Team
* Version            : V1.0.0
* Date               : 02/06/2009
* Description        : Description of the STM32F10xxx CEC library
********************************************************************************
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/

Firmware description
===================
This firmware contains a CEC library and a demo running on the STM3210B-EVAL board.

The CEC library contains the basic CEC functions for CEC communication, which are:
    - Send/Receive  CEC Start bit.
    - Send/Receive  CEC ACK bit "logical 0".
    - Send/Receive  CEC data bit.
    - Send/Receive  CEC data byte.
    - Send/Receive  CEC data frame.
  
For more information, please refer to the user manual provided with this firmware.

The demo illustrates the use of the CEC communication between three devices (3 x STM3210B-EVAL boards).
Each device can send a frame to the two other devices by pressing the user key button on
the EVAL board. Pressing the key button, sends a frame to one device and the next press
sends to the second device.
The information of CEC send/receive of each device is displayed on its LCD.


Directory contents
==================
The demo directory contains three directories corresponding to each device.  
  + 1rst_CEC_Device: corresponding two the device having the address 0x1.
  + 2nd_CEC_Device: corresponding two the device having the address 0x2.
  + 3rd_CEC_Device: corresponding two the device having the address 0x3.

Each directory contains three directories:
      + project : containing the project workspace and project
  
      + include : containing the user header files
        - stm32f10x_conf.h  Library Configuration file
        - stm32f10x_it.h    Interrupt handlers header file
        - lcd.h             LCD firmware driver header file
        - fonts.h           LCD fonts size definition
    
      + source  : containg  the user source files 
        - main.c            Main program
        - stm32f10x_it.c    Interrupt handlers
        - lcd.c             LCD driver for AM-240320LTNQW00H(LCD_HX8312) and AM-240320L8TNQW00H (LCD_ILI9320) 
                            Liquid Crystal Display Module of STM3210B-EVAL board.


Hardware environment
====================
The demo is running on the STM3210B-EVAL board. For the demo, You can connect three STM3210B-EVAL boards.
The ground (GND) have to be common of all boards.
Connect the boards by connecting all GPIOA.0 together. 
It's mondatory to connect a resistor (around 27K) to VDD and any GPIOA.0 of any board.
Note: if three Eval boards are not available, the use of only two boards is possible.

         
How to use it
=============


+ EWARMv5:
    - Open the project.eww workspace
    - Rebuild all files: Project->Rebuild all
    - Load project image: Project->Debug
    - Run program: Debug->Go(F5)

 + RVMDK
    - Open the project.Uv2 project
    - Rebuild all files: Project->Rebuild all target files
    - Load project image: Debug->Start/Stop Debug Session
    - Run program: Debug->Run (F5)

 + RIDE
    - Open the project.rprj project
    - Rebuild all files: Project->build project
    - Load project image: Debug->start(ctrl+D)
    - Run program: Debug->Run(ctrl+F9)

Load the project image of 1rst_Device to the first board.
Load the project image of 2nd_Device to the second board.
Load the project image of 3rd_Device to the third board.

If only two boards are available, load any pair of project image two the two boards.
  

******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE******
