#ifndef BOARDH
#define BOARDH

#define HARDWAREVERSION 11

#ifndef UNIT_TEST

  #if HARDWAREVERSION==11
  
    #define LED3        PB2     //D3
    #define LED2        PB8     //D4
    #define LED1        PB7     //D5

    #define DETECT3     PA6     //A5
    #define DETECT2     PA5     //A4
    #define DETECT1     PA4     //A3

    #define SWITCH3     PA7     //A6 TOGGLE1
    #define SWITCH32    PA2     //A7 MOMENTARY1
    #define SWITCH2     PA1     //A1 TOGGLE1
    #define SWITCH22    PA3     //A2 MOMENTARY1
    #define SWITCH1     PB6     //D11 TOGGLE1
    #define SWITCH12    PB5     //D12 MOMENTARY1

    #define LD3LED      PB3
    #define WAKEUPPIN   PA2

    #define REDLEDRES
    #define YELLOWLEDRES
    #define GREENLEDRES

  #elif HARDWAREVERSION==10

    #define LED3        PB0     //D3
    #define LED2        PB7     //D4
    #define LED2        PB6     //D5

    #define DETECT3     PA6     //A5
    #define DETECT2     PA5     //A4
    #define DETECT1     PA4     //A3

    #define SWITCH3     PA7     //A6 TOGGLE1
    #define SWITCH32    PA2     //A7 MOMENTARY1
    #define SWITCH2     PA1     //A1 TOGGLE1
    #define SWITCH22    PA3     //A2 MOMENTARY1
    #define SWITCH1     PB5     //D11 TOGGLE1
    #define SWITCH12    PB4     //D12 MOMENTARY1

    #define LD3LED      PB3
    #define WAKEUPPIN   PA2

    #define REDLEDRES
    #define YELLOWLEDRES
    #define GREENLEDRES
  #else
    #error No hardware version defined

  #endif

#else

  #define LED1        0     //D3
  #define LED2        1     //D4
  #define LED3        2     //D5

  #define DETECT1     3     //A5
  #define DETECT2     4     //A4
  #define DETECT3     5     //A3

  #define SWITCH1     6     //A6 TOGGLE1
  #define SWITCH12    7     //A7 MOMENTARY1
  #define SWITCH2     8     //A1 TOGGLE1
  #define SWITCH22    9     //A2 MOMENTARY1
  #define SWITCH3     10     //D11 TOGGLE1
  #define SWITCH32    11     //D12 MOMENTARY1

  #define LD3LED      12
  #define WAKEUPPIN   13

  #define REDLEDRES
  #define YELLOWLEDRES
  #define GREENLEDRES

#endif //unit_test


#endif //BOARDH