/* Determine if the data that at the ptr address with the length is len is empty.  */
u8 exFLASH_FindEmpty(u16 *ptr, u16 len)
/* Determine if the data that at the ptr address with the length is len is empty.  */
u8 exFLASH_FindEmpty(u16 *ptr, u16 len)
{
    u16 i;
    for (i = 0; i < (len / 2); i++) {
        if (*(ptr + i) != 0xffff)
            return 0;
    }
    return 1;
}