nasdio: This application accesses the card information from the connected SD/SDIO card.

This application supports only the ConnectCore 9P 9215 development board.

Running this sample application requires external hardware to interconnect to 
your Digi JumpStart Kit Development board.  This readme provides instructions 
based on the Digi FIM Application Kit (Digi P/N DG-ACC-FIM).

Please note it is not mandatory to use the FIM Application kit to successfully 
run this application; prototype hardware can be built up in its place.  
However, the FIM Application Kit provides a standard reference design platform 
with all the hardware components and accessory items necessary for immediate 
prototyping of NET+OS applications with FIM-based I/O capabilities.

The FIM Application Kit (Digi P/N DG-ACC-FIM) supports the ConnectCore 9P  9215, 
Digi Connect ME 9210, and NS9210/9215 chip development platforms.  
Complete documentation and schematics for the FIM Application Kit are available 
in the "Application Kit" section on the Digi technical support website at 
www.digi.com/support.

Please also visit the www.digiembedded.com for additional information and purchase options.

Connecting and configuring your FIM Application Kit board
-----------------------------------------------------------------------

The application requires FIM0 to be configured as SDIO-Card and connected 
to the SD-CARD section of the FIM Application board.  

Please refer to the FIM Application Kit Quick Start Guide and the Hardware Reference
Manual (HRM) for guidance on how connect and configure your FIM Application Kit board.

FIM0 Configuration
------------------

1. In gpio.h, make sure GPIO pins are set up as follows:
    #define BSP_GPIO_MUX_IOP_0_GEN_IO_0    BSP_GPIO_MUX_USE_2ND_ALTERNATE_PATH
    #define BSP_GPIO_MUX_IOP_0_GEN_IO_1    BSP_GPIO_MUX_USE_2ND_ALTERNATE_PATH
    #define BSP_GPIO_MUX_IOP_0_GEN_IO_2    BSP_GPIO_MUX_USE_2ND_ALTERNATE_PATH
    #define BSP_GPIO_MUX_IOP_0_GEN_IO_3    BSP_GPIO_MUX_USE_2ND_ALTERNATE_PATH
    #define BSP_GPIO_MUX_IOP_0_CTL_IO_0    BSP_GPIO_MUX_USE_PRIMARY_PATH
    #define BSP_GPIO_MUX_IOP_0_CTL_IO_1    BSP_GPIO_MUX_USE_PRIMARY_PATH

    These will set up GPIO pins for SDIO for FIM0.

2. Make sure the configuration file sdioTable.c in the platform directory 
   selects FIM0.  Edit the file and make sure it contains the following statements.

    NaSdioTable_t naSdioTable[] = 
    {
        {
            NA_IOP_PROCESSOR_PIC0,
            (NaIopProgram_t *) &naSdioIopDriver,
            VOLTAGE_RANGE_SUPPORTED_BY_NS9215,
            naSdioGetSemaphore,
            naSdioReleaseSemaphore,
            naSdioCreateSemaphore
        },
    };


You can use SD or SDIO cards with this sample. If you are using SDIO card then
the sample tries to extract the CIS info from the card. You must insert the card
before running the application.


This application does the following
1. Initializes SDIO card
2. Prints out card type, bus width and SD/SDIO RCA
3. If the device supports IO then 
	a. Enables function 1 and waits until host completes its initialization
	b. Reads the function function 1 interface code 
	c. Reads the function 1 CIS address
	b. Prints out one or more of following information stored in CIS
		i. Manufacturer identification string tuple (ID: 0x20)
		ii. Function identification tuple (ID: 0x21)
		iii. Function extension tuple
		iv. SDIO standard function tuple 

This sample application is tested against following SDIO GPS cards
1. Pharos GPS   (iGPS-SD)
2. Glbalsat GPS (SD-502)
3. Spectec GPS  (SDG-810) 

The following files are provided with this application:

appconf.h           sets application configuration settings
.\32b\image.gpj     used to build the big endian Green Hills version of the
                    application.  The build script creates a version that
                    can be debugged with Multi, and the file image.bin 
                    which can be written into a ROM that uses the bootloader.
makefile            Make file for the GNU toolset.
project.gpj         
readme              this file
root.c              contains the applicationStart() function, that
                    creates an application thread
naftpapp.c          contains the RAM based FTP application code
project.gpj         contains the generic project build script

In addition, the following files in the BSP directory are built
as part of this application:

reset.s         contains the reset code
appconf_api.c   contains run time access to the application configuration


