
                        CYPRESS SEMICONDUCTOR CORPORATION
                                    First FX3 App

GPIO APPLICATION EXAMPLE
----------------------------------------

  This file implements a simple GPIO application example as a companion project to
  the EZ-USB FX3 Explorer Kit. Prerequisite is the latest FX3 SDK shall be 
  installed on the host machine.

  The example code illustrates the use of the FX3 firmware APIs to implement
  a simple GPIO application example. It illustrates how to set and get pin
  status, and the use of GPIO interrupts.
 
  The example uses GPIO 54 as an output. It toggles this pin ON and OFF
  with a period of 2s.
 
  The example uses GPIO 45 as the input GPIO. Interrupts are enabled and a
  callback is registered for the GPIO edge interrupts both positive and negative edges.

  Files:

    * cyfx_gcc_startup.S   : Start-up code for the ARM-9 core on the FX3 device.
      This assembly source file follows the syntax for the GNU assembler.

    * cyfxtx.c             : ThreadX RTOS wrappers and utility functions required
      by the FX3 API library.

    * first_app.c          : Main C source file that implements the application
      example.

    * makefile             : GNU make compliant build script for compiling this
      example.

 FX3 Explorer Kit Hardware Setup
----------------------------------------

  FX3 SuperSpeed Explorer Kit shall be configured to USB boot for testing
  this example. Following are the Jumper settings
  
  Jumper    Jumper State
 -------------------------  
    J2          Short
    J3          Short
    J4          Short
    J5          Open
    
  Connect J1 and J8 to Host PC using USB 3.0 Standard-A to Standard-B USB 
  cable & USB 2.0 Standard-A to Micro-B USB Cable.
    
  The connection between J8 and Host PC is used to use UART port 
  available on explorer kit. Refer to the following section
  Integrated Debugger -> UART in the SuperSpeed Explorer Kit User Guide for
  setup instructions.

  Refer SuperSpeed Explorer Kit User Guide for Importing a Project into
  Eclipse IDE. Using the given instructions the First FX3 App can be 
  compiled in Eclipse IDE.
  
  Using USB Control Center download the First FX3 App image to the Kit in 
  USB Loader mode.
  
  As this example doesn't use any USB functionality the device will not
  reappear in USB Control Center application after the device reboots.
  
  When the SW2 button is pressed or released the debug messages can be seen on
  UART.
[]

