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

Declaration of LEDs for STM32F4DISCOVERY. More...

#include "distortos/distortosConfiguration.h"
#include <cstddef>
Include dependency graph for leds.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_LD3_LED_ENABLE   1
 indicates whether LD3 LED (orange) is enabled (1) or not (0) More...
 
#define DISTORTOS_BOARD_LD4_LED_ENABLE   1
 indicates whether LD4 LED (green) is enabled (1) or not (0) More...
 
#define DISTORTOS_BOARD_LD5_LED_ENABLE   1
 indicates whether LD5 LED (red) is enabled (1) or not (0) More...
 
#define DISTORTOS_BOARD_LD6_LED_ENABLE   1
 indicates whether LD6 LED (blue) is enabled (1) or not (0) More...
 
#define DISTORTOS_BOARD_TOTAL_LEDS
 total number of LEDs on the board More...
 

Enumerations

enum  { distortos::board::ld3LedIndex, distortos::board::ld4LedIndex, distortos::board::ld5LedIndex, distortos::board::ld6LedIndex }
 

Variables

constexpr size_t distortos::board::totalLeds {DISTORTOS_BOARD_TOTAL_LEDS}
 total number of LEDs on the board More...
 
constexpr size_t distortos::board::orangeLedIndex {ld3LedIndex}
 alternative index of LD3 LED (orange) More...
 
constexpr size_t distortos::board::greenLedIndex {ld4LedIndex}
 alternative index of LD4 LED (green) More...
 
constexpr size_t distortos::board::redLedIndex {ld5LedIndex}
 alternative index of LD5 LED (red) More...
 
constexpr size_t distortos::board::blueLedIndex {ld6LedIndex}
 alternative index of LD6 LED (blue) More...
 
chip::ChipOutputPin distortos::board::leds [totalLeds]
 array with all LED objects More...
 

Detailed Description

Declaration of LEDs 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_LD3_LED_ENABLE

#define DISTORTOS_BOARD_LD3_LED_ENABLE   1

indicates whether LD3 LED (orange) is enabled (1) or not (0)

◆ DISTORTOS_BOARD_LD4_LED_ENABLE

#define DISTORTOS_BOARD_LD4_LED_ENABLE   1

indicates whether LD4 LED (green) is enabled (1) or not (0)

◆ DISTORTOS_BOARD_LD5_LED_ENABLE

#define DISTORTOS_BOARD_LD5_LED_ENABLE   1

indicates whether LD5 LED (red) is enabled (1) or not (0)

◆ DISTORTOS_BOARD_LD6_LED_ENABLE

#define DISTORTOS_BOARD_LD6_LED_ENABLE   1

indicates whether LD6 LED (blue) is enabled (1) or not (0)

◆ DISTORTOS_BOARD_TOTAL_LEDS

#define DISTORTOS_BOARD_TOTAL_LEDS
Value:
DISTORTOS_BOARD_LD5_LED_ENABLE + DISTORTOS_BOARD_LD6_LED_ENABLE)
#define DISTORTOS_BOARD_LD4_LED_ENABLE
indicates whether LD4 LED (green) is enabled (1) or not (0)
Definition: leds.hpp:28
#define DISTORTOS_BOARD_LD6_LED_ENABLE
indicates whether LD6 LED (blue) is enabled (1) or not (0)
Definition: leds.hpp:42
#define DISTORTOS_BOARD_LD3_LED_ENABLE
indicates whether LD3 LED (orange) is enabled (1) or not (0)
Definition: leds.hpp:21

total number of LEDs on the board