remove target.h from flash.h

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.
This commit is contained in:
Zachary T Welch 2009-12-04 14:06:20 -08:00
parent 1527272fb2
commit d9dc604a4d
21 changed files with 31 additions and 20 deletions

View File

@ -27,7 +27,6 @@
#define FLASH_H
#include <flash/common.h>
#include <target/target.h>
struct image;

View File

@ -23,11 +23,11 @@
#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);

View File

@ -57,13 +57,9 @@
#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)

View File

@ -49,6 +49,7 @@
#include "config.h"
#endif
#include "imp.h"
#include "at91sam7.h"
#include <helper/binarybuffer.h>

View 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 */

View File

@ -23,6 +23,7 @@
#include "config.h"
#endif
#include "imp.h"
#include "cfi.h"
#include "non_cfi.h"
#include <target/armv4_5.h>

View File

@ -21,10 +21,10 @@
#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

View File

@ -21,7 +21,7 @@
#include "config.h"
#endif
#include <flash/flash.h>
#include "imp.h"
#include <target/image.h>
#include "hello.h"

View File

@ -21,6 +21,10 @@
// 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.

View File

@ -25,10 +25,11 @@
#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

View File

@ -31,6 +31,7 @@
#include "config.h"
#endif
#include "imp.h"
#include "lpc288x.h"
#include <helper/binarybuffer.h>

View File

@ -23,11 +23,11 @@
#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 */

View File

@ -21,8 +21,8 @@
#include "config.h"
#endif
#include "imp.h"
#include "ocl.h"
#include <flash/flash.h>
#include <target/embeddedice.h>

View File

@ -27,6 +27,7 @@
#include "config.h"
#endif
#include "imp.h"
#include "pic32mx.h"
#include <target/mips32.h>

View File

@ -28,10 +28,11 @@
#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)

View File

@ -24,10 +24,11 @@
#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);

View File

@ -24,6 +24,7 @@
#include "config.h"
#endif
#include "imp.h"
#include "str7x.h"
#include <target/armv4_5.h>
#include <helper/binarybuffer.h>

View File

@ -27,6 +27,7 @@
#include "config.h"
#endif
#include "imp.h"
#include "str9x.h"
#include <target/arm966e.h>
#include <target/algorithm.h>

View File

@ -24,6 +24,7 @@
#include "config.h"
#endif
#include "imp.h"
#include "str9xpec.h"
#include <target/arm7_9_common.h>

View File

@ -22,6 +22,7 @@
#endif
#include "tms470.h"
#include "imp.h"
/* ----------------------------------------------------------------------

View File

@ -27,6 +27,7 @@
#define GDB_SERVER_H
struct image;
#include <target/target.h>
#define GDB_BUFFER_SIZE 16384