/**
 * \file
 *
 * \brief User board configuration template
 *
 */
/*
 * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
 */

#ifndef CONF_BOARD_H
#define CONF_BOARD_H

#define CONF_BOARD_USB_PORT
/** USB VBus monitoring pin definition. */
#define PIN_USB_VBUS    {PIO_PB14, PIOB, ID_PIOB, PIO_INPUT, PIO_PULLUP}
#define USB_VBUS_FLAGS    (PIO_INPUT | PIO_DEBOUNCE | PIO_IT_EDGE)
#define USB_VBUS_PIN_IRQn (PIOB_IRQn)
#define USB_VBUS_PIN      (PIO_PB14_IDX)
#define USB_VBUS_PIO_ID   (ID_PIOB)
#define USB_VBUS_PIO_MASK (PIO_PB14)

/** PWM Out pin definitions. */
#define PIN_PWM_L_GPIO     PIO_PD24_IDX
#define PIN_PWM_L_FLAGS    (IOPORT_MODE_MUX_A)
#define PIN_PWM_L_CHANNEL  PWM_CHANNEL_0
#define PIN_PWM_H_GPIO     PIO_PD20_IDX
#define PIN_PWM_H_FLAGS    (IOPORT_MODE_MUX_A)
#define PIN_PWM_H_CHANNEL  PWM_CHANNEL_0

/** Rotary Encoder Pins. */
#define ENCODER_A         PIO_PD26_IDX
#define ENCODER_B         PIO_PD27_IDX
#define ENCODER_PUSH      PIO_PD28_IDX


#endif // CONF_BOARD_H
