2 ******************************************************************************
4 * @addtogroup PIOS PIOS Core hardware abstraction layer
6 * @addtogroup PIOS_FLASH JEDEC devices catalog
9 * @file pios_flash_jedec_catalog.h
10 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2013.
11 * @brief Driver for talking to most JEDEC flash chips
12 * @see The GNU Public License (GPL) Version 3
14 *****************************************************************************/
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 3 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful, but
22 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
26 * You should have received a copy of the GNU General Public License along
27 * with this program; if not, write to the Free Software Foundation, Inc.,
28 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #ifndef PIOS_FLASH_JEDEC_CATALOG_H_
33 #define PIOS_FLASH_JEDEC_CATALOG_H_
34 #include <pios_flash_jedec_priv.h>
36 // this structure contains the catalog of all "known" flash chip used
37 const struct pios_flash_jedec_cfg pios_flash_jedec_catalog
[] =
40 .expect_manufacturer
= JEDEC_MANUFACTURER_ST
,
41 .expect_memorytype
= 0x20,
42 .expect_capacity
= 0x15,
47 .expect_manufacturer
= JEDEC_MANUFACTURER_ST
,
48 .expect_memorytype
= 0x71,
49 .expect_capacity
= 0x15,
54 .expect_manufacturer
= JEDEC_MANUFACTURER_WINBOND
,
55 .expect_memorytype
= 0x30,
56 .expect_capacity
= 0x13,
61 .expect_manufacturer
= JEDEC_MANUFACTURER_WINBOND
,
62 .expect_memorytype
= 0x40,
63 .expect_capacity
= 0x15,
68 const uint32_t pios_flash_jedec_catalog_size
= NELEMENTS(pios_flash_jedec_catalog
);
71 #endif /* PIOS_FLASH_JEDEC_CATALOG_H_ */