aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/spi.h
diff options
context:
space:
mode:
authorMarc Schink <openocd-dev@marcschink.de>2015-09-21 21:07:46 +0200
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2016-05-24 22:30:55 +0100
commitd4b7cbff88bb5eb14fececdbd8e2a0b3e58ce6e0 (patch)
tree78f8488d823e6abc4774529de947572e955a525e /src/flash/nor/spi.h
parentd0e763ac7ef6aa17b17bd00ccdfbccfb4eacda69 (diff)
downloadriscv-openocd-d4b7cbff88bb5eb14fececdbd8e2a0b3e58ce6e0.zip
riscv-openocd-d4b7cbff88bb5eb14fececdbd8e2a0b3e58ce6e0.tar.gz
riscv-openocd-d4b7cbff88bb5eb14fececdbd8e2a0b3e58ce6e0.tar.bz2
Make #include guard naming consistent
Change-Id: Ie13e8af0bb74ed290f811dcad64ad06c9d8cb4fa Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/2956 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/flash/nor/spi.h')
-rw-r--r--src/flash/nor/spi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/flash/nor/spi.h b/src/flash/nor/spi.h
index 73ec17e..a184998 100644
--- a/src/flash/nor/spi.h
+++ b/src/flash/nor/spi.h
@@ -19,6 +19,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
+#ifndef OPENOCD_FLASH_NOR_SPI_H
+#define OPENOCD_FLASH_NOR_SPI_H
+
/* data structure to maintain flash ids from different vendors */
struct flash_device {
char *name;
@@ -54,3 +57,5 @@ extern const struct flash_device flash_devices[];
#define SPIFLASH_PAGE_PROGRAM 0x02 /* Page Program */
#define SPIFLASH_FAST_READ 0x0B /* Fast Read */
#define SPIFLASH_READ 0x03 /* Normal Read */
+
+#endif /* OPENOCD_FLASH_NOR_SPI_H */