- add eepromdata.h
[moodlight.git] / eepromdata.h
diff --git a/eepromdata.h b/eepromdata.h
new file mode 100644 (file)
index 0000000..96e4268
--- /dev/null
@@ -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, <avr/io.h> 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];
+
This page took 0.050221 seconds and 4 git commands to generate.