/* The example of the function of read and write.  */
void AT25FS0xReadWrite(void)
/* The example of the function of read and write.  */
void AT25FS0xReadWrite(void)
{
    unsigned long i;
    unsigned short ulID;
    xSysCtlClockSet(50000000, xSYSCTL_OSC_MAIN | xSYSCTL_XTAL_12MHZ);
    UartInit(); 
    AT25FS0xInit(10000000);
    ulID = AT25FS0xIDcodeGet();
    i = ulID;
    UartPrintfNumber(ulID);
    UartPrintfChar('\n');
    UartPrintfChar('\r');
    for(i = 0; i < Length; i++)
    {
        ucWriteData[i] = i;      
    }
    AT25FS0xChipErase();
    AT25FS0xWrite(ucWriteData, 100, Length);
    SysCtlDelay(50000000);
    AT25FS0xDataRead(ucReadData, 100, Length);
    for(i = 0; i < Length; i++)
    {
        UartPrintfChar(ucReadData[i]);      
    }
}