Remove KEYSCANNER_PROPS_BOILERPLATE macro, which was only used in one place right now

pull/860/head
Jesse Vincent 5 years ago
parent 0a9441334c
commit a5081b1b38
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -43,7 +43,8 @@
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
#define ATMEGA_KEYSCANNER_BOILERPLATE \
KEYSCANNER_PROPS_BOILERPLATE(kaleidoscope::Device::KeyScannerProps); \
const uint8_t kaleidoscope::Device::KeyScannerProps::matrix_rows; \
const uint8_t kaleidoscope::Device::KeyScannerProps::matrix_columns; \
constexpr uint8_t kaleidoscope::Device::KeyScannerProps::matrix_row_pins[matrix_rows]; \
constexpr uint8_t kaleidoscope::Device::KeyScannerProps::matrix_col_pins[matrix_columns]; \
template<> \

@ -27,10 +27,6 @@
static constexpr uint8_t matrix_columns = COLS_; \
typedef MatrixAddr<matrix_rows, matrix_columns> KeyAddr;
#define KEYSCANNER_PROPS_BOILERPLATE(BOARD) \
const uint8_t BOARD::matrix_rows; \
const uint8_t BOARD::matrix_columns;
namespace kaleidoscope {
namespace driver {
namespace keyscanner {
@ -38,7 +34,6 @@ namespace keyscanner {
struct BaseProps {
static constexpr uint8_t matrix_rows = 0;
static constexpr uint8_t matrix_columns = 0;
typedef MatrixAddr<matrix_rows, matrix_columns> KeyAddr;
};

Loading…
Cancel
Save