#ifndef __LIBARENA_BOARD_H
#define __LIBARENA_BOARD_H
//-----------------------------------------------------------------------------
///
/// \brief  Libbiwak board description
///
///         Can bridge needs radio module, spi, led, uart, can
///
/// \author Maximilian Seesslen <mes@seesslen.net>
///
//-----------------------------------------------------------------------------


#define ARENA_USE_UART              1
#define ARENA_USE_TIMER             1
#define ARENA_USE_RTC               1
#define ARENA_USE_SPI               1

#define ARENA_USE_LED               2
#undef  ARENA_LED_0_NAME
#define ARENA_LED_0_NAME            Heartbeat
#define ARENA_LED_1                 ARENA_GPIO_4
#define ARENA_LED_1_NAME            Transmit
#define ARENA_LED_1_PINS            ARENA_GPIO_4_PINS

#define ARENA_USE_LED_HEARTBEAT     eLedIndexUser1

#define ARENA_DEBUG_UART            0

#define ARENA_USE_OUTPUT            1
#define ARENA_OUTPUT_0              ARENA_GPIO_5
#undef  ARENA_OUTPUT_0_NAME
#define ARENA_OUTPUT_0_NAME         ARef
#define ARENA_USE_GPIO_5_EXTI       Y     // ?

/*
#define ARENA_OUTPUT_0              ARENA_GPIO_0
#undef  ARENA_OUTPUT_0_NAME
#define ARENA_OUTPUT_0_NAME         NssConfig

#define ARENA_OUTPUT_1              ARENA_GPIO_1
#undef  ARENA_OUTPUT_1_NAME
#define ARENA_OUTPUT_1_NAME         NssData

#define ARENA_OUTPUT_2              ARENA_GPIO_2
#undef  ARENA_OUTPUT_2_NAME
#define ARENA_OUTPUT_2_NAME         Reset

#define ARENA_INPUT_0               ARENA_GPIO_3
#undef  ARENA_INPUT_0_NAME
#define ARENA_INPUT_0_NAME          Irq0
#define ARENA_USE_GPIO_3_EXTI       Y
*/
#define ARENA_USE_INPUT             1
#define ARENA_INPUT_0               ARENA_GPIO_6
#undef  ARENA_INPUT_0_NAME
#define ARENA_INPUT_0_NAME          TransferMode


#define ARENA_USE_ADC               1
//#define ARENA_USE_ADC_CHANNELS      4
#define ARENA_USE_ADC_LINES         4

#define ARENA_USE_RFM               1
#define ARENA_RFM_0                 spi[0], \
                                    ARENA_GPIO_3, \
                                    ARENA_GPIO_0, \
                                    ARENA_GPIO_1, \
                                    ARENA_GPIO_2, \
                                    led[ eLedIndexTransmit ]

#define ARENA_RFM_0_PINS            IRQ_1->ARENA_GPIO_3_PINS, \
                                    NssConfig->ARENA_GPIO_0_PINS, \
                                    NssData->ARENA_GPIO_1_PINS, \
                                    Reset->ARENA_GPIO_2_PINS, \
                                    led->eLedIndexTransmit

#define ARENA_USE_CAN               1

#define ARENA_USE_SHIFT             1
#define ARENA_SHIFT_0               ARENA_GPIO_6, \
                                    ARENA_GPIO_7, \
                                    ARENA_GPIO_8
#define ARENA_SHIFT_0_PINS          Clock->ARENA_GPIO_6_PINS, \
                                    Data->ARENA_GPIO_7_PINS, \
                                    Store->ARENA_GPIO_8_PINS


//---fin-----------------------------------------------------------------------
#endif // ? ! __LIBARENA_BOARD_H
