15 #ifndef SOURCE_BOARD_ST_STM32F4DISCOVERY_INCLUDE_DISTORTOS_BOARD_BUTTONS_HPP_ 16 #define SOURCE_BOARD_ST_STM32F4DISCOVERY_INCLUDE_DISTORTOS_BOARD_BUTTONS_HPP_ 22 #ifdef DISTORTOS_BOARD_BUTTONS_B1_ENABLE 23 #define DISTORTOS_BOARD_BUTTONS_B1_ENABLED 1 24 #else // !def DISTORTOS_BOARD_BUTTONS_B1_ENABLE 25 #define DISTORTOS_BOARD_BUTTONS_B1_ENABLED 0 26 #endif // !def DISTORTOS_BOARD_BUTTONS_B1_ENABLE 29 #define DISTORTOS_BOARD_BUTTONS_COUNT (DISTORTOS_BOARD_BUTTONS_B1_ENABLED) 31 #if defined(DISTORTOS_BOARD_BUTTONS_ENABLE) && DISTORTOS_BOARD_BUTTONS_COUNT != 0 55 #ifdef DISTORTOS_BOARD_BUTTONS_B1_ENABLE 58 #endif // def DISTORTOS_BOARD_BUTTONS_B1_ENABLE 65 #ifdef DISTORTOS_BOARD_BUTTONS_B1_ENABLE 70 #endif // def DISTORTOS_BOARD_BUTTONS_B1_ENABLE 83 #endif // defined(DISTORTOS_BOARD_BUTTONS_ENABLE) && DISTORTOS_BOARD_BUTTONS_COUNT != 0 85 #endif // SOURCE_BOARD_ST_STM32F4DISCOVERY_INCLUDE_DISTORTOS_BOARD_BUTTONS_HPP_ constexpr size_t buttonsUserIndex
alternative index of B1 (User) from buttons
Definition: buttons.hpp:68
const chip::ChipInputPin buttons[buttonsCount]
array with all buttons objects
Definition: ST_STM32F4DISCOVERY-buttons.cpp:32
Top-level namespace of distortos project.
Definition: buttons.hpp:33
constexpr size_t buttonsCount
count of buttons on the board
Definition: buttons.hpp:47
index of B1 (User) from buttons
Definition: buttons.hpp:57