add config file checksum function to support xcfg and RAW file without device connection.

Form Atmel Taiwan AE Team,

Please review my pull request, thanks.

Purpose : add a checksum function to support xcfg and raw file without device connection.