text: /**
   * \file
   *
   * \brief Unit test configuration.
   *
   * Copyright (c) 2014 Atmel Corporation. All rights reserved.
   *
   * \asf_license_start
   *
   * \page License
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions are met:
   *
   * 1. Redistributions of source code must retain the above copyright notice,
   *    this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright notice,
   *    this list of conditions and the following disclaimer in the documentation
   *    and/or other materials provided with the distribution.
   *
   * 3. The name of Atmel may not be used to endorse or promote products derived
   *    from this software without specific prior written permission.
   *
   * 4. This software may only be redistributed and used in connection with an
   *    Atmel microcontroller product.
   *
   * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
   * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
   * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
   * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   * POSSIBILITY OF SUCH DAMAGE.
   *
   * \asf_license_stop
   *
   */
   /**
   * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
   */
  
  #ifndef CONF_TEST_H
  #define CONF_TEST_H
  
  /** Perform unit tests using SPI */
  #define CONF_TEST_SPI         SPI
  /** unit test SPI ID */
  #define CONF_TEST_SPI_ID      ID_SPI
  /** unit test SPI NPCS */
  #define CONF_TEST_SPI_NPCS    1
  /** unit test SPI handler in vector table */
  #define CONF_TEST_SPI_HANDLER SPI_Handler
  
  /** USART Interface  : Console UART */
  #define CONF_TEST_USART      CONSOLE_UART
  /** Baudrate setting : 115200 */
  #define CONF_TEST_BAUDRATE   115200
  /** Char setting     : 8-bit character length (don't care for UART) */
  #define CONF_TEST_CHARLENGTH 0
  /** Parity setting   : No parity check */
  #define CONF_TEST_PARITY     UART_MR_PAR_NO
  /** Stopbit setting  : No extra stopbit, i.e., use 1 (don't care for UART */
  #define CONF_TEST_STOPBITS   false
  
  #define SPI_WPSR_WPVS_Msk SPI_WPSR_WPVSRC_Msk
  
  /** \brief SPI DataFlash settings.
   *  Define \ref CONF_TEST_DF to enable DataFlash test.
   */
  /** DataFlash test enable */
  #define CONF_TEST_DF
  /** DataFlash NPCS (using CONF_TEST_SPI for SPI) */
  #define CONF_TEST_DF_NPCS        3
  /** DataFlash ID expected (AT25DF321A) */
  #define CONF_TEST_DF_ID          0x0001471F
  /** DataFlash Page Size */
  #define CONF_TEST_DF_PAGE_SIZE   256
  /** DataFlash address to test (last block) */
  #define CONF_TEST_DF_ADDRESS     (4*1024*1024-4*1024)
  
  #endif /* CONF_TEST_H_INCLUDED */
  