summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-16 00:35:24 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-16 00:35:24 -0800
commitb695cb75220100cd9bbfaec5bd1740958454130d (patch)
tree6308a8f1358e96fd4d88c3241b0b24b63f64aaf5 /src/flash
parent8193f17c3aeb948ca8f70ed3361e8b2bccefffed (diff)
downloadopenocd_libswd-b695cb75220100cd9bbfaec5bd1740958454130d.tar.gz
openocd_libswd-b695cb75220100cd9bbfaec5bd1740958454130d.tar.bz2
openocd_libswd-b695cb75220100cd9bbfaec5bd1740958454130d.tar.xz
openocd_libswd-b695cb75220100cd9bbfaec5bd1740958454130d.zip
#include "target.h" less wildly
Don't include "target.h" from more headers than necessary. This avoids needless interdependencies and duplicated include paths. Don't needlessly include it in source files, either. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/at91sam3.c1
-rw-r--r--src/flash/lpc3180_nand_controller.h2
-rw-r--r--src/flash/mflash.c1
-rw-r--r--src/flash/mflash.h2
4 files changed, 2 insertions, 4 deletions
diff --git a/src/flash/at91sam3.c b/src/flash/at91sam3.c
index 0f2be3c1..4507888f 100644
--- a/src/flash/at91sam3.c
+++ b/src/flash/at91sam3.c
@@ -62,7 +62,6 @@
#include <stddef.h>
#include "types.h"
#include "flash.h"
-#include "target.h"
#include "membuf.h"
#include "at91sam3.h"
#include "time_support.h"
diff --git a/src/flash/lpc3180_nand_controller.h b/src/flash/lpc3180_nand_controller.h
index b965be98..0891cedf 100644
--- a/src/flash/lpc3180_nand_controller.h
+++ b/src/flash/lpc3180_nand_controller.h
@@ -20,8 +20,6 @@
#ifndef LPC3180_NAND_CONTROLLER_H
#define LPC3180_NAND_CONTROLLER_H
-#include "target.h"
-
enum lpc3180_selected_controller
{
LPC3180_NO_CONTROLLER,
diff --git a/src/flash/mflash.c b/src/flash/mflash.c
index c2d04ca4..49dc432f 100644
--- a/src/flash/mflash.c
+++ b/src/flash/mflash.c
@@ -22,6 +22,7 @@
#endif
#include "mflash.h"
+#include "target.h"
#include "time_support.h"
#include "fileio.h"
#include "log.h"
diff --git a/src/flash/mflash.h b/src/flash/mflash.h
index ed4a2cdd..358d2536 100644
--- a/src/flash/mflash.h
+++ b/src/flash/mflash.h
@@ -20,7 +20,7 @@
#ifndef _MFLASH_H
#define _MFLASH_H
-#include "target.h"
+struct command_context;
typedef unsigned long mg_io_uint32;
typedef unsigned short mg_io_uint16;