aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex
Commit message (Expand)AuthorAgeFilesLines
* Cosmetic changesRocco Marco Guglielmi2018-03-111-2/+1
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11699 110e8d01-0319-4d1...Rocco Marco Guglielmi2018-03-111-2/+2
* Driver pre-compile time settings aligned for all drivers.Rocco Marco Guglielmi2018-03-116-153/+271
* Updated LIS3DSH driver and demosRocco Marco Guglielmi2018-03-102-333/+606
* Removed newline excessRocco Marco Guglielmi2018-03-104-4/+0
* Minor fixesRocco Marco Guglielmi2018-03-102-17/+12
* Updated LPS25H and added a thermometer interface to the driverRocco Marco Guglielmi2018-03-102-136/+747
* Improved EX driversRocco Marco Guglielmi2018-03-105-32/+50
* Restored masks in HTS221 driverRocco Marco Guglielmi2018-03-101-0/+7
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11683 110e8d01-0319-4d1...Rocco Marco Guglielmi2018-03-101-0/+2
* Removed unused masksRocco Marco Guglielmi2018-03-101-7/+0
* Minor fixesRocco Marco Guglielmi2018-03-103-8/+8
* Minor fixesRocco Marco Guglielmi2018-03-101-3/+3
* Minor fixes in HTS221 driverRocco Marco Guglielmi2018-03-101-2/+2
* Updated HTS221 Driver and related demoRocco Marco Guglielmi2018-03-092-322/+769
* Minor adjustments on L3GD20 and LSMS303DLHC driversRocco Marco Guglielmi2018-03-092-38/+38
* Updated L3GD20Rocco Marco Guglielmi2018-03-082-314/+593
* Improved LSM303DLHC driverRocco Marco Guglielmi2018-03-082-41/+47
* Minor documentation fixesRocco Marco Guglielmi2018-03-081
/*
 * This file is part of the flashrom project.
 *
 * Copyright (C) 2007, 2008 Carl-Daniel Hailfinger
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef __SPI_H__
#define __SPI_H__ 1

/*
 * Contains the generic SPI headers
 */

#define JEDEC_MAX_ADDR_LEN	0x04

/* Read Electronic ID */
#define JEDEC_RDID		0x9f
#define JEDEC_RDID_OUTSIZE	0x01
/* INSIZE may be 0x04 for some chips*/
#define JEDEC_RDID_INSIZE	0x03

/* Some ST M95X model */
#define ST_M95_RDID		0x83
#define ST_M95_RDID_3BA_OUTSIZE	0x04	/* 8b op, 24bit addr where size >64KiB */
#define ST_M95_RDID_2BA_OUTSIZE	0x03	/* 8b op, 16bit addr where size <=64KiB */
#define ST_M95_RDID_OUTSIZE_MAX 0x04	/* ST_M95_RDID_3BA_OUTSIZE */
#define ST_M95_RDID_INSIZE	0x03

/* Some Atmel AT25F* models have bit 3 as don't care bit in commands */
#define AT25F_RDID		0x15	/* 0x15 or 0x1d */
#define AT25F_RDID_OUTSIZE	0x01
#define AT25F_RDID_INSIZE	0x02

/* Read Electronic Manufacturer Signature */
#define JEDEC_REMS		0x90
#define JEDEC_REMS_OUTSIZE	0x04
#define JEDEC_REMS_INSIZE	0x02

/* Read Serial Flash Discoverable Parameters (SFDP) */
#define JEDEC_SFDP		0x5a
#define JEDEC_SFDP_OUTSIZE	0x05	/* 8b op, 24b addr, 8b dummy */
/*      JEDEC_SFDP_INSIZE : any length */

/* Read Electronic Signature */
ChibiOS/commit/os/ex?id=c170c51a12327ce1a403144eb7d3e5150ca69a2e'>More MFS code.
Giovanni Di Sirio2017-11-132-37/+170
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10986 35acf78f-673a-041...Giovanni Di Sirio2017-11-121-3/+3
* Simplified code.Giovanni Di Sirio2017-11-121-130/+72
* More MFS code.Giovanni Di Sirio2017-11-122-45/+188
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10980 35acf78f-673a-041...Giovanni Di Sirio2017-11-102-144/+264
* More MFS code.Giovanni Di Sirio2017-11-102-88/+285
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10978 35acf78f-673a-041...Giovanni Di Sirio2017-11-092-145/+240
* Add calibration data inside the BMP085 drive.Theodore Ateba2017-10-152-119/+109
* Minor doc improvementRocco Marco Guglielmi2017-09-241-1/+1