---------------------------------------------------------------------
void AutoMountEventHandler( SYS_FS_EVENT event,	void* eventData, uintptr_t context )
{
    switch(event)
    {
    case SYS_FS_EVENT_MOUNT:
    case SYS_FS_EVENT_MOUNT_WITH_NO_FILESYSTEM:
        if(strcmp((const char *)eventData, SYS_FS_MEDIA_IDX0_MOUNT_NAME_VOLUME_IDX0) == 0)
        {
            SYS_CMD_MESSAGE("Mount SD card success!\r\n");
        }
        break;

    case SYS_FS_EVENT_UNMOUNT:
        if(strcmp((const char *)eventData, SYS_FS_MEDIA_IDX0_MOUNT_NAME_VOLUME_IDX0) == 0)
        {
            SYS_CMD_MESSAGE("Unmount SD card!\r\n");
        }
        break;

    case SYS_FS_EVENT_ERROR:
        break;
    }
}


---------------------------------------------------------------------
    SYS_FS_EventHandlerSet(AutoMountEventHandler, (uintptr_t)NULL);

---------------------------------------------------------------------