OP-1156 fix path logic to not deviate from correct altitude too much
[librepilot.git] / flight / pios / inc / pios_flash_jedec_catalog.h
blobcb15fa8b983620946c566cdbd52950650bd3fac7
1 /**
2 ******************************************************************************
4 * @addtogroup PIOS PIOS Core hardware abstraction layer
5 * @{
6 * @addtogroup PIOS_FLASH JEDEC devices catalog
7 * @{
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
24 * for more details.
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[] =
39 { // m25p16
40 .expect_manufacturer = JEDEC_MANUFACTURER_ST,
41 .expect_memorytype = 0x20,
42 .expect_capacity = 0x15,
43 .sector_erase = 0xD8,
44 .chip_erase = 0xC7,
46 { // m25px16
47 .expect_manufacturer = JEDEC_MANUFACTURER_ST,
48 .expect_memorytype = 0x71,
49 .expect_capacity = 0x15,
50 .sector_erase = 0xD8,
51 .chip_erase = 0xC7,
53 { // w25x
54 .expect_manufacturer = JEDEC_MANUFACTURER_WINBOND,
55 .expect_memorytype = 0x30,
56 .expect_capacity = 0x13,
57 .sector_erase = 0x20,
58 .chip_erase = 0x60
60 { // 25q16
61 .expect_manufacturer = JEDEC_MANUFACTURER_WINBOND,
62 .expect_memorytype = 0x40,
63 .expect_capacity = 0x15,
64 .sector_erase = 0x20,
65 .chip_erase = 0x60
68 const uint32_t pios_flash_jedec_catalog_size = NELEMENTS(pios_flash_jedec_catalog);
71 #endif /* PIOS_FLASH_JEDEC_CATALOG_H_ */