This commit is contained in:
Bertrand Songis
2017-02-05 22:01:44 +01:00
committed by GitHub
parent 93781748c3
commit b0eeeb4dbc
15 changed files with 134 additions and 85 deletions
+9
View File
@@ -81,6 +81,13 @@ namespace Board {
unsigned int index;
unsigned int position;
};
enum Capability {
Pots,
Sliders,
Switches,
FactoryInstalledSwitches
};
}
// TODO remove all those constants
@@ -105,6 +112,8 @@ namespace Board {
int getEEpromSize(Board::Type board);
Board::SwitchInfo getSwitchInfo(Board::Type board, unsigned index);
int getBoardCapability(Board::Type board, Board::Capability capability);
#define IS_9X(board) (board==Board::BOARD_STOCK || board==Board::BOARD_M128)
#define IS_STOCK(board) (board==Board::BOARD_STOCK)
#define IS_2560(board) (board==Board::BOARD_GRUVIN9X || board==Board::BOARD_MEGA2560)