Nut/OS  4.10.3
API Reference
spi_at45d_info.c
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2008-2011 by egnite GmbH
00003  *
00004  * All rights reserved.
00005  *
00006  * Redistribution and use in source and binary forms, with or without
00007  * modification, are permitted provided that the following conditions
00008  * are met:
00009  *
00010  * 1. Redistributions of source code must retain the above copyright
00011  *    notice, this list of conditions and the following disclaimer.
00012  * 2. Redistributions in binary form must reproduce the above copyright
00013  *    notice, this list of conditions and the following disclaimer in the
00014  *    documentation and/or other materials provided with the distribution.
00015  * 3. Neither the name of the copyright holders nor the names of
00016  *    contributors may be used to endorse or promote products derived
00017  *    from this software without specific prior written permission.
00018  *
00019  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00022  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
00023  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00024  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00025  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00026  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00027  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00028  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00029  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00030  * SUCH DAMAGE.
00031  *
00032  * For additional information see http://www.ethernut.de/
00033  */
00034 
00044 #include <dev/at45d.h>
00045 
00050 
00052 AT45D_INFO at45d_info[] = {
00053     { 8,  512,  256, 0x0D}, /* AT45DB011B  128kB  256B/pg */
00054     { 9,  512,  264, 0x0C}, /* AT45DB011B  128kB  264B/pg */
00055     { 8, 1025,  256, 0x15}, /* AT45DB021B  256kB  256B/pg */
00056     { 9, 1025,  264, 0x14}, /* AT45DB021B  256kB  264B/pg */
00057     { 8, 2048,  256, 0x1D}, /* AT45DB041B  512kB  256B/pg */
00058     { 9, 2048,  264, 0x1C}, /* AT45DB041B  512kB  264B/pg */
00059     { 8, 4096,  256, 0x25}, /* AT45DB081B    1MB  256B/pg */
00060     { 9, 4096,  264, 0x24}, /* AT45DB081B    1MB  264B/pg */
00061     { 9, 4096,  512, 0x2D}, /* AT45DB0161B   2MB  512B/pg */
00062     {10, 4096,  528, 0x2C}, /* AT45DB0161B   2MB  528B/pg */
00063     { 9, 8192,  512, 0x35}, /* AT45DB0321B   4MB  512B/pg */
00064     {10, 8192,  528, 0x34}, /* AT45DB0321B   4MB  528B/pg */
00065     {10, 8192, 1024, 0x39}, /* AT45DB0642    8MB 1024B/pg */
00066     {11, 8192, 1056, 0x38}, /* AT45DB0642    8MB 1056B/pg */
00067     {10, 8192, 1024, 0x3D}, /* AT45DB0642D   8MB 1024B/pg */
00068     {11, 8192, 1056, 0x3C}  /* AT45DB0642D   8MB 1056B/pg */
00069 };
00070 
00072 uint_fast8_t at45d_known_types = sizeof(at45d_info) / sizeof(AT45D_INFO);
00073