remove target.h from flash.h
authorZachary T Welch <zw@superlucidity.net>
Fri, 4 Dec 2009 22:06:20 +0000 (14:06 -0800)
committerZachary T Welch <zw@superlucidity.net>
Sat, 5 Dec 2009 00:56:23 +0000 (16:56 -0800)
The flash.h header does not require the target.h header file, but
its implementation source files do.  Move it to flash/nor/imp.h.

21 files changed:
src/flash/flash.h
src/flash/nor/aduc702x.c
src/flash/nor/at91sam3.c
src/flash/nor/at91sam7.c
src/flash/nor/avrf.c
src/flash/nor/cfi.c
src/flash/nor/ecos.c
src/flash/nor/faux.c
src/flash/nor/imp.h
src/flash/nor/lpc2000.c
src/flash/nor/lpc288x.c
src/flash/nor/lpc2900.c
src/flash/nor/ocl.c
src/flash/nor/pic32mx.c
src/flash/nor/stellaris.c
src/flash/nor/stm32x.c
src/flash/nor/str7x.c
src/flash/nor/str9x.c
src/flash/nor/str9xpec.c
src/flash/nor/tms470.c
src/server/gdb_server.h

index 1e1be85ec2f1945ebae24c3c01296d9ca67b60b0..8cd50f68253cade7cd92c5afa336ebb2d9a963d6 100644 (file)
@@ -27,7 +27,6 @@
 #define FLASH_H
 
 #include <flash/common.h>
-#include <target/target.h>
 
 struct image;
 
index 66969127b3d63c3cf5a4bd524670063abb1ce601..1b9f5c083571deca7fdeb187a3fd9cc73fffca90 100644 (file)
 #include "config.h"
 #endif
 
-#include <flash/flash.h>
-#include <target/armv4_5.h>
+#include "imp.h"
 #include <helper/binarybuffer.h>
 #include <helper/time_support.h>
 #include <target/algorithm.h>
+#include <target/armv4_5.h>
 
 
 static int aduc702x_build_sector_list(struct flash_bank *bank);
index dd4f3471cc538f2ffbfa3638ebc4908336379ca3..1194e25f1a7e840c24ffaa4055144fa4f3b87dc1 100644 (file)
 #endif
 
 
-#include <stdio.h>
-#include <string.h>
-#include <stddef.h>
-#include <helper/types.h>
-#include <flash/flash.h>
-#include <helper/membuf.h>
+#include "imp.h"
 #include "at91sam3.h"
+#include <helper/membuf.h>
 #include <helper/time_support.h>
 
 #define REG_NAME_WIDTH  (12)
index 3201737da9b0e86cce2d1d49a957c3b204f61d15..97d6b568b074d2c2e2a6046db6b6d24ae2c715cc 100644 (file)
@@ -49,6 +49,7 @@
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "at91sam7.h"
 #include <helper/binarybuffer.h>
 
index fbc92772bc4e120ec509bf40dfea2faaca773c54..6c2d17fe5d782241144f654acd410e71e3bb485b 100644 (file)
@@ -21,9 +21,9 @@
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "avrf.h"
 #include <target/avrt.h>
-#include <flash/flash.h>
 
 
 /* AVR_JTAG_Instructions */
index 61b5d4cf913b2992089d99e32818043bcfc1d040..c00d65f170da5e50a62aae84d5c31253c4be5507 100644 (file)
@@ -23,6 +23,7 @@
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "cfi.h"
 #include "non_cfi.h"
 #include <target/armv4_5.h>
index 8f8f746ebefc25453dc845d6ac514a25282f765d..799015ef61ab917422656a60cb7b8246f72cf2f4 100644 (file)
 #include "config.h"
 #endif
 
-#include <flash/flash.h>
+#include "imp.h"
 #include <target/embeddedice.h>
-#include <target/image.h>
 #include <target/algorithm.h>
+#include <target/image.h>
 
 
 #if 0
index c996522c58388050392c574de65fa965351f528d..948f305572a17e1b204bb98074b2989bfea591d8 100644 (file)
@@ -21,7 +21,7 @@
 #include "config.h"
 #endif
 
-#include <flash/flash.h>
+#include "imp.h"
 #include <target/image.h>
 #include "hello.h"
 
index ade7297a4ff7a7fb39c45dc494933534464ace72..84ef8715bb5fd2dcd2da6ed529d0715302bba187 100644 (file)
 
 // this is an internal header
 #include "core.h"
+// common flash internals
+#include <flash/common.h>
+// almost all drivers will need this file
+#include <target/target.h>
 
 /**
  * Adds a new NOR bank to the global list of banks.
index 295e3e7f1434d475a1a98a5bfc66238b6a6377b6..d824c37abefc7443dfb5c0a835dbc3c0d5e96128 100644 (file)
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "lpc2000.h"
-#include <target/armv7m.h>
 #include <helper/binarybuffer.h>
 #include <target/algorithm.h>
+#include <target/armv7m.h>
 
 
 /* flash programming support for NXP LPC17xx and LPC2xxx devices
index 252a8133f7069eced7f35e37c9e8dc10ed26a7a6..5cb36d07de64277f219e28dfb60ed90a7325912e 100644 (file)
@@ -31,6 +31,7 @@
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "lpc288x.h"
 #include <helper/binarybuffer.h>
 
index dc466f8e2b1625cc8b06303b9df86d2eea46548b..0b42d48c2fd02ca3bcbbd62d147d81d2b66bd061 100644 (file)
 #endif
 
 
-#include <target/image.h>
-#include <flash/flash.h>
+#include "imp.h"
 #include <helper/binarybuffer.h>
-#include <target/armv4_5.h>
 #include <target/algorithm.h>
+#include <target/armv4_5.h>
+#include <target/image.h>
 
 
 /* 1024 bytes */
index 6e3ad1c9a767282dd957e6e1051df444b51a2dc0..961537e088e004461219090344a4849d7afa34bf 100644 (file)
@@ -21,8 +21,8 @@
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "ocl.h"
-#include <flash/flash.h>
 #include <target/embeddedice.h>
 
 
index d2289b297ffabec997f5e9bf496526e7178fa585..7d98af31142d4adf6c493099a31ee9d6d318164c 100644 (file)
@@ -27,6 +27,7 @@
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "pic32mx.h"
 #include <target/mips32.h>
 
index f0028ea64b2ba3864118f20978438e0063554bf9..39885429872b1363c88c46a968e712f6d94b7d91 100644 (file)
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "stellaris.h"
-#include <target/armv7m.h>
 #include <helper/binarybuffer.h>
 #include <target/algorithm.h>
+#include <target/armv7m.h>
 
 
 #define DID0_VER(did0) ((did0 >> 28)&0x07)
index 37925470f6ffda5afa72763070f55124e1c3cbe5..9e761f91ca15f1f2108a9bf52409608b02c85ea6 100644 (file)
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "stm32x.h"
-#include <target/armv7m.h>
 #include <helper/binarybuffer.h>
 #include <target/algorithm.h>
+#include <target/armv7m.h>
 
 
 static int stm32x_mass_erase(struct flash_bank *bank);
index c5a1c345c81f411c7480f4b64b4e99effae4939a..4f93ec9a84698052ac36a4a18c7e7bc7c8a4c99a 100644 (file)
@@ -24,6 +24,7 @@
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "str7x.h"
 #include <target/armv4_5.h>
 #include <helper/binarybuffer.h>
index 045ab20bbe1732c4bdd2c3d5da7c4046e8fb295c..36096ff5312f9ff2860abf89d7e74aa9c1f1907f 100644 (file)
@@ -27,6 +27,7 @@
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "str9x.h"
 #include <target/arm966e.h>
 #include <target/algorithm.h>
index 87a4b062520f1de8b85407eff73ace3d4710a06a..734f2d1524ebb9d5f24dd47eb2faf39b1d48f3d2 100644 (file)
@@ -24,6 +24,7 @@
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "str9xpec.h"
 #include <target/arm7_9_common.h>
 
index 59659346971096e10bab562c91dd9b74002293c6..7efcbd4b918620217fb9341f30715064aba052d4 100644 (file)
@@ -22,6 +22,7 @@
 #endif
 
 #include "tms470.h"
+#include "imp.h"
 
 
 /* ----------------------------------------------------------------------
index 041497510cd15b8ec865a13c807d29d8d0d47c1c..05666a59bb6bff343b329c763d7c749a6d96de0b 100644 (file)
@@ -27,6 +27,7 @@
 #define GDB_SERVER_H
 
 struct image;
+#include <target/target.h>
 
 #define GDB_BUFFER_SIZE        16384
 

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)