source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/hardware/arduino/avr/firmwares/wifishield/wifiHD/src/CONFIG/conf_at45dbx.h @ 4837

Last change on this file since 4837 was 4837, checked in by daduve, 2 years ago

Adding new version

File size: 3.1 KB
Line 
1/* This header file is part of the ATMEL AVR-UC3-SoftwareFramework-1.7.0 Release */
2
3/*This file is prepared for Doxygen automatic documentation generation.*/
4/*! \file *********************************************************************
5 *
6 * \brief AT45DBX configuration file.
7 *
8 * This file contains the possible external configuration of the AT45DBX.
9 *
10 * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32
11 * - Supported devices:  All AVR32 devices with an SPI module can be used.
12 * - AppNote:
13 *
14 * \author               Atmel Corporation: http://www.atmel.com \n
15 *                       Support and FAQ: http://support.atmel.no/
16 *
17 ******************************************************************************/
18
19/* Copyright (c) 2009 Atmel Corporation. All rights reserved.
20 *
21 * Redistribution and use in source and binary forms, with or without
22 * modification, are permitted provided that the following conditions are met:
23 *
24 * 1. Redistributions of source code must retain the above copyright notice, this
25 * list of conditions and the following disclaimer.
26 *
27 * 2. Redistributions in binary form must reproduce the above copyright notice,
28 * this list of conditions and the following disclaimer in the documentation
29 * and/or other materials provided with the distribution.
30 *
31 * 3. The name of Atmel may not be used to endorse or promote products derived
32 * from this software without specific prior written permission.
33 *
34 * 4. This software may only be redistributed and used in connection with an Atmel
35 * AVR product.
36 *
37 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
38 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
39 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
40 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
41 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
42 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
45 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
46 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
47 *
48 */
49
50#ifndef _CONF_AT45DBX_H_
51#define _CONF_AT45DBX_H_
52
53
54#include "conf_access.h"
55
56#if AT45DBX_MEM == DISABLE
57  #error conf_at45dbx.h is #included although AT45DBX_MEM is disabled
58#endif
59
60
61#include "at45dbx.h"
62
63
64//_____ D E F I N I T I O N S ______________________________________________
65
66//! Size of AT45DBX data flash memories to manage.
67#define AT45DBX_MEM_SIZE            AT45DBX_1MB
68
69//! Number of AT45DBX components to manage.
70#define AT45DBX_MEM_CNT             1
71
72//! First chip select used by AT45DBX components on the SPI module instance.
73//! AT45DBX_SPI_NPCS0_PIN always corresponds to this first NPCS, whatever it is.
74#define AT45DBX_SPI_FIRST_NPCS      AT45DBX_SPI_NPCS
75
76//! SPI master speed in Hz.
77#define AT45DBX_SPI_MASTER_SPEED    12000000
78
79//! Number of bits in each SPI transfer.
80#define AT45DBX_SPI_BITS            8
81
82
83#endif  // _CONF_AT45DBX_H_
Note: See TracBrowser for help on using the repository browser.