distortos  v0.6.0
object-oriented C++ RTOS for microcontrollers
distortos::board Namespace Reference

Board-related code of distortos project. More...

Enumerations

enum  { buttonsB1Index }
 
enum  { ledsLd3Index, ledsLd4Index, ledsLd5Index, ledsLd6Index }
 

Variables

constexpr size_t buttonsCount {DISTORTOS_BOARD_BUTTONS_COUNT}
 count of buttons on the board More...
 
constexpr size_t buttonsUserIndex {buttonsB1Index}
 alternative index of B1 (User) from buttons More...
 
const chip::ChipInputPin buttons [buttonsCount]
 array with all buttons objects More...
 
constexpr size_t ledsCount {DISTORTOS_BOARD_LEDS_COUNT}
 count of leds on the board More...
 
constexpr size_t ledsOrangeIndex {ledsLd3Index}
 alternative index of Ld3 (Orange) from leds More...
 
constexpr size_t ledsGreenIndex {ledsLd4Index}
 alternative index of Ld4 (Green) from leds More...
 
constexpr size_t ledsRedIndex {ledsLd5Index}
 alternative index of Ld5 (Red) from leds More...
 
constexpr size_t ledsBlueIndex {ledsLd6Index}
 alternative index of Ld6 (Blue) from leds More...
 
chip::ChipOutputPin leds [ledsCount]
 array with all leds objects More...
 

Detailed Description

Board-related code of distortos project.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
buttonsB1Index 

index of B1 (User) from buttons

◆ anonymous enum

anonymous enum
Enumerator
ledsLd3Index 

index of Ld3 (Orange) from leds

ledsLd4Index 

index of Ld4 (Green) from leds

ledsLd5Index 

index of Ld5 (Red) from leds

ledsLd6Index 

index of Ld6 (Blue) from leds

Variable Documentation

◆ buttons

const chip::ChipInputPin distortos::board::buttons
Initial value:
{
chip::ChipInputPin{chip::Pin::pa0, chip::PinPull::none, false},
}

array with all buttons objects

◆ buttonsCount

constexpr size_t distortos::board::buttonsCount {DISTORTOS_BOARD_BUTTONS_COUNT}

count of buttons on the board

◆ buttonsUserIndex

constexpr size_t distortos::board::buttonsUserIndex {buttonsB1Index}

alternative index of B1 (User) from buttons

◆ leds

chip::ChipOutputPin distortos::board::leds
Initial value:
{
chip::ChipOutputPin{chip::Pin::pd13, false, chip::PinOutputSpeed::low, chip::PinPull::none, false, false},
chip::ChipOutputPin{chip::Pin::pd12, false, chip::PinOutputSpeed::low, chip::PinPull::none, false, false},
chip::ChipOutputPin{chip::Pin::pd14, false, chip::PinOutputSpeed::low, chip::PinPull::none, false, false},
chip::ChipOutputPin{chip::Pin::pd15, false, chip::PinOutputSpeed::low, chip::PinPull::none, false, false},
}

array with all leds objects

◆ ledsBlueIndex

constexpr size_t distortos::board::ledsBlueIndex {ledsLd6Index}

alternative index of Ld6 (Blue) from leds

◆ ledsCount

constexpr size_t distortos::board::ledsCount {DISTORTOS_BOARD_LEDS_COUNT}

count of leds on the board

◆ ledsGreenIndex

constexpr size_t distortos::board::ledsGreenIndex {ledsLd4Index}

alternative index of Ld4 (Green) from leds

◆ ledsOrangeIndex

constexpr size_t distortos::board::ledsOrangeIndex {ledsLd3Index}

alternative index of Ld3 (Orange) from leds

◆ ledsRedIndex

constexpr size_t distortos::board::ledsRedIndex {ledsLd5Index}

alternative index of Ld5 (Red) from leds