2014-07-23 01:02:14 +00:00
# ifndef LEDMAP_IN_EEPROM_H
# define LEDMAP_IN_EEPROM_H
2014-11-25 09:23:16 +00:00
# include "ledmap.h"
2014-07-23 01:02:14 +00:00
# ifndef EECONFIG_LEDMAP_IN_EEPROM
# define EECONFIG_LEDMAP_IN_EEPROM 7
# endif
2014-11-25 09:23:16 +00:00
# define EECONFIG_LEDMAP (uint16_t*)EECONFIG_LEDMAP_IN_EEPROM
# define LEDMAP_SIZE (sizeof(uint16_t) * LED_COUNT)
2014-07-23 01:02:14 +00:00
2014-11-25 09:23:16 +00:00
# define LEDMAP_UNCONFIGURED 0xFFFF
2014-08-03 02:27:54 +00:00
2014-07-23 01:02:14 +00:00
# ifdef LEDMAP_IN_EEPROM_ENABLE
# define ledmap_get_code ledmap_in_eeprom_get_code
void ledmap_in_eeprom_init ( void ) ;
2014-07-24 06:03:58 +00:00
void write_ledmap_to_eeprom ( void ) ;
2014-11-25 09:23:16 +00:00
ledmap_t ledmap_in_eeprom_get_code ( uint8_t index ) ;
2014-07-23 01:02:14 +00:00
# else
# define ledmap_in_eeprom_init()
2014-07-24 06:03:58 +00:00
# define write_ledmap_to_eeprom()
2014-07-23 01:02:14 +00:00
# define ledmap_in_eeprom_get_code()
# endif
# endif