X-Git-Url: http://git.rrze.uni-erlangen.de/gitweb/?p=moodlight.git;a=blobdiff_plain;f=eepromdata.h;fp=eepromdata.h;h=96e4268809b1db77c832ebaf9d4cfb2d15fceb5c;hp=0000000000000000000000000000000000000000;hb=ff29bc2b3dbad7885497cfd9aa2b3aa98cc4ebb0;hpb=dfbc0cefbdd8cdc0aecbad960c804cb1128d5b32 diff --git a/eepromdata.h b/eepromdata.h new file mode 100644 index 0000000..96e4268 --- /dev/null +++ b/eepromdata.h @@ -0,0 +1,18 @@ +/* $Id: eepromdata.h,v 1.1 2010/07/24 20:55:48 simimeie Exp $ + * Defines the contents of the EEPROM. + * The EEPROM contains settings and can also contain "programs" for the LEDs. + * Usually you only need to reprogram the eeprom after changing values here, + * unless compiler version changed and thus the data got reordered. + */ + +#define EEPROM __attribute__ ((section (".eeprom"))) + +/* The default brightness */ +uint8_t EEPROM ee_defledbrightness = 128; + +/* All the rest of the memory is used for storing LED "programs". + * For the following to work, needs to be included before this file - + * which usually should be the case anyways. + * Formula is: E2END + 1 - (number of bytes used by other stuff in EEPROM) */ +uint8_t EEPROM ee_ledprograms[E2END + 1 - 1]; +