Skip to content

Instantly share code, notes, and snippets.

@jcw
jcw / bootCheck.ino
Created Mar 6, 2012
Identify which boot loader is loaded in the ATmega328
View bootCheck.ino
// Detect which type of boot loader is present, using a fixed built-in table
// 2012-03-06 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <avr/pgmspace.h>
#include <util/crc16.h>
#define VERSION "2"
// list of all known boot loaders with their unique signatures
struct { word crc; const char* desc; } signatures[] = {