#ifndef _ARENA_APP_H
#define _ARENA_APP_H
//-----------------------------------------------------------------------------
///
/// \brief  Libbiwak board description
///
///         Basic STM32F303 Nucleo board
///
/// \author Maximilian Seesslen <mes@seesslen.net>
///
//-----------------------------------------------------------------------------


#define  ARENA_USE_TIMER            1
#define  ARENA_USE_RTC              1

#define  ARENA_USE_OUTPUT           2
#define  ARENA_OUTPUT_1_NAME        Motor1
#define  ARENA_OUTPUT_1             ARENA_GPIO_1
#define  ARENA_OUTPUT_2_NAME        Motor2
#define  ARENA_OUTPUT_2             ARENA_GPIO_2

#define  ARENA_USE_UART          1
#define  ARENA_UART_1_NAME       Terminal

#define ARENA_USE_LED            ARENA_HAS_LED
#define ARENA_LED_1_NAME         Heartbeat
#define ARENA_LED_2_NAME         Status

#define ARENA_USE_BUTTON        1
#define ARENA_BUTTON_1_NAME      User
#define ARENA_USE_BUTTON_1_EXTI  1

#define ARENA_USE_RTC           1
//#define ARENA_USE_WATCHDOG   1
#ifdef ARENA_HAS_SPI
#define ARENA_USE_SPI           1
#endif
#define ARENA_USE_ADC           1
#define ARENA_USE_FLASH         1
//#define ARENA_USE_RETAIN        1
//#define ARENA_USE_SPI_FLASH  1

#define ARENA_USE_TSIC          1
#define ARENA_TSIC_1_GPIO        ARENA_GPIO_1
#define ARENA_USE_GPIO_1_EXTI    1

#ifdef ARENA_HAS_SPI
#define ARENA_USE_EADISPLAY     1
#define ARENA_EADISPLAY_CS_GPIO  ARENA_GPIO_2
#define ARENA_EADISPLAY_RS_GPIO  ARENA_GPIO_3
#endif

#ifdef ARENA_HAS_I2C
   #define ARENA_USE_I2C           1
   #define ARENA_USE_VOC           1
   #define ARENA_VOC_1              *i2c[0], 0xB5  // VOC sensor on i²C addr 0xB5
#endif

#define ARENA_DEBUG_UART         0


//---fin-----------------------------------------------------------------------
#endif // ? ! _ARENA_APP_H
