Added ifndef to allow overriding of default defines.
This commit is contained in:
@@ -49,8 +49,12 @@
|
||||
/*#define SEEPROM_PAGE_SIZE 64 */
|
||||
/*#define SEEPROM_WORD_ADDRESS_16BIT 1 */
|
||||
/* SEEPROM is 24C16 */
|
||||
#ifndef SEEPROM_PAGE_SIZE
|
||||
#define SEEPROM_PAGE_SIZE 16
|
||||
#endif
|
||||
#ifndef SEEPROM_WORD_ADDRESS_16BIT
|
||||
#define SEEPROM_WORD_ADDRESS_16BIT 0
|
||||
#endif
|
||||
|
||||
#define SEEPROM_I2C_ADDRESS 0xA0
|
||||
#define SEEPROM_I2C_CLOCK 400000L
|
||||
|
||||
@@ -33,7 +33,9 @@ static uint8_t Address_Switch;
|
||||
static uint8_t Buttons;
|
||||
static struct itimer Debounce_Timer;
|
||||
|
||||
#ifndef BDK_V1_HACK
|
||||
#define BDK_V1_HACK 0
|
||||
#endif
|
||||
|
||||
#if BDK_V1_HACK
|
||||
/* version 1 BDK workaournd for floating inputs */
|
||||
|
||||
Reference in New Issue
Block a user