#ifndef _ARENA_APP_CONFIG_H_
#define _ARENA_APP_CONFIG_H_
//-----------------------------------------------------------------------------
//
// \brief   Libarena board description
//
//          IR-CLock; thats a board with IR-Receiver and an grafical
//          OLED-Display at SPI.
//
// \author  Maximilian Seesslen <mes@seesslen.net>
//
//-----------------------------------------------------------------------------


#define ARENA_USE_RTC              1
#define ARENA_USE_WATCHDOG         1
#define ARENA_USE_TIMER            1

// VOC sensor on i²C address 0xB5
#define ARENA_USE_I2C              1
#define ARENA_USE_VOC              1
#define ARENA_VOC_1                 *i2c[0], 0xB5
#undef ARENA_USE_I2C
#undef ARENA_USE_VOC

#define ARENA_USE_TSIC             1
#define ARENA_TSIC_0_GPIO           ARENA_GPIO_0
#define ARENA_USE_GPIO_0_EXTI       Y

#define ARENA_USE_OUTPUT            1
#define ARENA_OUTPUT_1_NAME            Buzzer1

#define ARENA_USE_LED              1
#define ARENA_LED_0_NAME            Heartbeat

#define ARENA_USE_UART             1
#define ARENA_DEBUG_UART            0

#define ARENA_USE_SPI              1

#define ARENA_USE_GDISPLAY         1
#define ARENA_GDISPLAY_0_CLASS      CGraphicDisplayNh
#define ARENA_GDISPLAY_0            *spi[0],                /* SPI bus */ \
                                    ARENA_GPIO_2,           /* ChipSelect */ \
                                    ARENA_GPIO_3            /* Data/Instr */
#define ARENA_GDISPLAY_0_PINS       CS->ARENA_GPIO_2_PIN, DC->ARENA_GPIO_3_PIN

#define ARENA_USE_FLASH             1
#define ARENA_USE_RETAIN            2
#define ARENA_RETAIN_1_NAME         Retain
#define ARENA_RETAIN_2_NAME         Settings

//#undef ARENA_USE_RETAIN
//#undef ARENA_USE_FLASH

#define ARENA_USE_IRINPUT           1
#define ARENA_IRINPUT_0             ARENA_GPIO_4
#define ARENA_USE_GPIO_4_EXTI       Y

//#define ARENA_USE_PWM               1
//#define ARENA_PWM_0                 ARENA_GPIO_5, eTimer2

//#define ARENA_WANT_CAN              1

//---fin-----------------------------------------------------------------------
#endif // ? ! _ARENA_APP_CONFIG_H_
