Most files in the tree seem to have ended up including this,
and *quite* needlessly ... only code implementing or using
downloadable algorithms actually needs these declarations.
So take it out of the header files which included it, and put
it in files which use it ... reduce needless interdependencies.
Also: "algorithm.h" doesn't need to include "types.h" again;
it already comes from a different header.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
16 files changed:
#include "armv4_5.h"
#include "binarybuffer.h"
#include "time_support.h"
#include "armv4_5.h"
#include "binarybuffer.h"
#include "time_support.h"
static int aduc702x_build_sector_list(struct flash_bank *bank);
static int aduc702x_build_sector_list(struct flash_bank *bank);
#include "arm_nandio.h"
#include "armv4_5.h"
#include "arm_nandio.h"
#include "armv4_5.h"
{
struct target *target = nand->target;
struct armv4_5_algorithm algo;
{
struct target *target = nand->target;
struct armv4_5_algorithm algo;
- struct arm *armv4_5 = target->arch_info;
- struct reg_param reg_params[3];
+ struct arm *armv4_5 = target->arch_info;
+ struct reg_param reg_params[3];
uint32_t target_buf;
uint32_t exit = 0;
int retval;
uint32_t target_buf;
uint32_t exit = 0;
int retval;
#include "non_cfi.h"
#include "armv4_5.h"
#include "binarybuffer.h"
#include "non_cfi.h"
#include "armv4_5.h"
#include "binarybuffer.h"
#define CFI_MAX_BUS_WIDTH 4
#define CFI_MAX_BUS_WIDTH 4
#include "flash.h"
#include "embeddedice.h"
#include "image.h"
#include "flash.h"
#include "embeddedice.h"
#include "image.h"
#include "armv4_5.h"
#include "armv7m.h"
#include "binarybuffer.h"
#include "armv4_5.h"
#include "armv7m.h"
#include "binarybuffer.h"
/* flash programming support for NXP LPC17xx and LPC2xxx devices
/* flash programming support for NXP LPC17xx and LPC2xxx devices
#include "flash.h"
#include "binarybuffer.h"
#include "armv4_5.h"
#include "flash.h"
#include "binarybuffer.h"
#include "armv4_5.h"
#include "stellaris.h"
#include "armv7m.h"
#include "binarybuffer.h"
#include "stellaris.h"
#include "armv7m.h"
#include "binarybuffer.h"
#define DID0_VER(did0) ((did0 >> 28)&0x07)
#define DID0_VER(did0) ((did0 >> 28)&0x07)
#include "stm32x.h"
#include "armv7m.h"
#include "binarybuffer.h"
#include "stm32x.h"
#include "armv7m.h"
#include "binarybuffer.h"
static int stm32x_mass_erase(struct flash_bank *bank);
static int stm32x_mass_erase(struct flash_bank *bank);
#include "str7x.h"
#include "armv4_5.h"
#include "binarybuffer.h"
#include "str7x.h"
#include "armv4_5.h"
#include "binarybuffer.h"
struct str7x_mem_layout mem_layout_str7bank0[] = {
struct str7x_mem_layout mem_layout_str7bank0[] = {
#include "str9x.h"
#include "arm966e.h"
#include "str9x.h"
#include "arm966e.h"
static uint32_t bank1start = 0x00080000;
static uint32_t bank1start = 0x00080000;
#ifndef ALGORITHM_H
#define ALGORITHM_H
#ifndef ALGORITHM_H
#define ALGORITHM_H
enum param_direction
{
PARAM_IN,
enum param_direction
{
PARAM_IN,
#include "arm_simulator.h"
#include "time_support.h"
#include "target_type.h"
#include "arm_simulator.h"
#include "time_support.h"
#include "target_type.h"
#include "arm7_9_common.h"
#include "time_support.h"
#include "arm_simulator.h"
#include "arm7_9_common.h"
#include "time_support.h"
#include "arm_simulator.h"
#include "breakpoints.h"
#include "arm_disassembler.h"
#include "binarybuffer.h"
#include "breakpoints.h"
#include "arm_disassembler.h"
#include "binarybuffer.h"
char* armv4_5_core_reg_list[] =
char* armv4_5_core_reg_list[] =
#include "breakpoints.h"
#include "armv7m.h"
#include "breakpoints.h"
#include "armv7m.h"
#define ARRAY_SIZE(x) ((int)(sizeof(x)/sizeof((x)[0])))
#define ARRAY_SIZE(x) ((int)(sizeof(x)/sizeof((x)[0])))
#include "command.h"
struct reg;
#include "command.h"
struct reg;
struct command_context;
struct breakpoint;
struct watchpoint;
struct command_context;
struct breakpoint;
struct watchpoint;
+struct mem_param;
+struct reg_param;
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)