Browse Source

Audit and eliminate redundant #include directives in src/{pld,svf,xsvf}.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1710 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.2.0
zwelch 15 years ago
parent
commit
0b6c73ae83
6 changed files with 3 additions and 54 deletions
  1. +0
    -13
      src/pld/pld.c
  2. +1
    -6
      src/pld/virtex2.c
  3. +1
    -3
      src/pld/virtex2.h
  4. +0
    -8
      src/pld/xilinx_bit.c
  5. +0
    -12
      src/svf/svf.c
  6. +1
    -12
      src/xsvf/xsvf.c

+ 0
- 13
src/pld/pld.c View File

@@ -21,23 +21,10 @@
#include "config.h"
#endif

#include "replacements.h"

#include "pld.h"

#include "jtag.h"
#include "command.h"
#include "log.h"
#include "time_support.h"

#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>

#include <sys/time.h>
#include <time.h>

/* pld drivers
*/


+ 1
- 6
src/pld/virtex2.c View File

@@ -22,14 +22,9 @@
#endif

#include "virtex2.h"

#include "pld.h"
#include "xilinx_bit.h"
#include "command.h"
#include "log.h"
#include "jtag.h"
#include "pld.h"

#include <stdlib.h>

int virtex2_register_commands(struct command_context_s *cmd_ctx);
int virtex2_pld_device_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct pld_device_s *pld_device);


+ 1
- 3
src/pld/virtex2.h View File

@@ -20,9 +20,7 @@
#ifndef VIRTEX2_H
#define VIRTEX2_H

#include "types.h"
#include "pld.h"
#include "xilinx_bit.h"
#include "jtag.h"

typedef struct virtex2_pld_device_s
{


+ 0
- 8
src/pld/xilinx_bit.c View File

@@ -22,19 +22,11 @@
#endif

#include "xilinx_bit.h"

#include "pld.h"
#include "log.h"

#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>

#include <sys/time.h>
#include <time.h>

int read_section(FILE *input_file, int length_size, char section, u32 *buffer_length, u8 **buffer)
{


+ 0
- 12
src/svf/svf.c View File

@@ -33,21 +33,9 @@
#endif

#include "svf.h"

#include "jtag.h"
#include "command.h"
#include "log.h"
#include "time_support.h"

#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>

#include <sys/time.h>
#include <time.h>

// SVF command
typedef enum


+ 1
- 12
src/xsvf/xsvf.c View File

@@ -42,20 +42,9 @@
#endif

#include "xsvf.h"

#include "jtag.h"
#include "command.h"
#include "log.h"

#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <assert.h>

#include <sys/time.h>
#include <time.h>
#include <assert.h>


/* XSVF commands, from appendix B of xapp503.pdf */


Loading…
Cancel
Save