distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
buttons.hpp File Reference

Declaration of buttons for STM32F4DISCOVERY. More...

#include "distortos/distortosConfiguration.h"
#include <cstddef>
Include dependency graph for buttons.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 distortos
 Top-level namespace of distortos project.
 
 distortos::chip
 Chip-related code of distortos project.
 
 distortos::board
 Board-related code of distortos project.
 

Macros

#define DISTORTOS_BOARD_B1_BUTTON_ENABLE   1
 indicates whether B1 button is enabled (1) or not (0) More...
 
#define DISTORTOS_BOARD_TOTAL_BUTTONS   DISTORTOS_BOARD_B1_BUTTON_ENABLE
 total number of buttons on the board More...
 

Enumerations

enum  { distortos::board::b1ButtonIndex }
 

Variables

constexpr size_t distortos::board::totalButtons {DISTORTOS_BOARD_TOTAL_BUTTONS}
 total number of buttons on the board More...
 
const chip::ChipInputPin distortos::board::buttons [totalButtons]
 array with all button objects More...
 

Detailed Description

Declaration of buttons for STM32F4DISCOVERY.

Author
Copyright (C) 2016-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Macro Definition Documentation

◆ DISTORTOS_BOARD_B1_BUTTON_ENABLE

#define DISTORTOS_BOARD_B1_BUTTON_ENABLE   1

indicates whether B1 button is enabled (1) or not (0)

◆ DISTORTOS_BOARD_TOTAL_BUTTONS

#define DISTORTOS_BOARD_TOTAL_BUTTONS   DISTORTOS_BOARD_B1_BUTTON_ENABLE

total number of buttons on the board