diff options
Diffstat (limited to 'common/lb_common.c')
-rw-r--r-- | common/lb_common.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/lb_common.c b/common/lb_common.c index 289421d3bd..8803608328 100644 --- a/common/lb_common.c +++ b/common/lb_common.c @@ -68,6 +68,12 @@ static inline uint8_t controller_read(int ctrl_num, uint8_t reg) #define MAX_GREEN 0x55 #define MAX_BLUE 0x67 #endif +#ifdef BOARD_HOST +/* For testing only */ +#define MAX_RED 0xff +#define MAX_GREEN 0xff +#define MAX_BLUE 0xff +#endif /* How we'd like to see the driver chips initialized. The controllers have some * auto-cycling capability, but it's not much use for our purposes. For now, @@ -114,6 +120,10 @@ static const uint8_t led_to_isc[] = { 0x18, 0x15, 0x18, 0x15 }; #ifdef BOARD_SAMUS static const uint8_t led_to_isc[] = { 0x15, 0x18, 0x15, 0x18 }; #endif +#ifdef BOARD_HOST +/* For testing only */ +static const uint8_t led_to_isc[] = { 0x15, 0x18, 0x15, 0x18 }; +#endif /* Scale 0-255 into max value */ static inline uint8_t scale_abs(int val, int max) |