/* Function: IsFlashBusy Arguments: None. Description: Check status register WIP bit. If WIP bit = 1: return TRUE ( Busy ) = 0: return FALSE ( Ready ). Return Message: TRUE, FALSE  */
bool IsFlashBusy(void)
/* Function: IsFlashBusy Arguments: None. Description: Check status register WIP bit. If WIP bit = 1: return TRUE ( Busy ) = 0: return FALSE ( Ready ). Return Message: TRUE, FALSE  */
bool IsFlashBusy(void)
{
    uint8_t  gDataBuffer;
    MX25_RDSR( &gDataBuffer );
    if( (gDataBuffer & FLASH_WIP_MASK)  == FLASH_WIP_MASK )
        return TRUE;
    else
        return FALSE;
}