|
|
|
|
|
|
|
|
#include <stdbool.h> |
|
|
#include <stdbool.h> |
|
|
#include <avr/eeprom.h> |
|
|
#include <avr/eeprom.h> |
|
|
#include "kimera.h" |
|
|
#include "kimera.h" |
|
|
|
|
|
#include "debug.h" |
|
|
|
|
|
|
|
|
uint8_t mux_mapping[MUX_COUNT] = { |
|
|
uint8_t mux_mapping[MUX_COUNT] = { |
|
|
MUX_FOR_ROW, MUX_FOR_COL, MUX_FOR_COL, MUX_FOR_COL |
|
|
MUX_FOR_ROW, MUX_FOR_COL, MUX_FOR_COL, MUX_FOR_COL |
|
|
|
|
|
|
|
|
col_max_count = 0; |
|
|
col_max_count = 0; |
|
|
|
|
|
|
|
|
mux_config = eeprom_read_byte(EECONFIG_MUX_MAPPING); |
|
|
mux_config = eeprom_read_byte(EECONFIG_MUX_MAPPING); |
|
|
if (mux_config & (1<<7)) { |
|
|
|
|
|
|
|
|
if (mux_config == 0 || (mux_config & (1<<7))) { |
|
|
error++; |
|
|
error++; |
|
|
return error; |
|
|
return error; |
|
|
} |
|
|
} |