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