dirs refactoring
This commit is contained in:
@@ -8,8 +8,9 @@ add_executable(
|
||||
)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../libs)
|
||||
|
||||
# linking configuration
|
||||
target_link_libraries(
|
||||
bs PRIVATE jtag_core
|
||||
bs PRIVATE script jtag_core bsdl_parser bus_over_jtag drivers os_interface natsort readline ncurses
|
||||
)
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _CMD_EXIT_H
|
||||
#define _CMD_EXIT_H
|
||||
|
||||
#include "jtag_core.h"
|
||||
#include "lib_jtag_core/jtag_core.h"
|
||||
|
||||
extern const char cmd_exit_help[];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _CMD_HELP_H
|
||||
#define _CMD_HELP_H
|
||||
|
||||
#include "jtag_core.h"
|
||||
#include "lib_jtag_core/jtag_core.h"
|
||||
|
||||
int cmd_help(jtag_core *jc, int argc, char *argv[]);
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#ifndef _LIST_PROBES_H
|
||||
#define _LIST_PROBES_H
|
||||
|
||||
#include "jtag_core.h"
|
||||
#include "lib_jtag_core/jtag_core.h"
|
||||
|
||||
const char cmd_list_probes_help[];
|
||||
extern const char cmd_list_probes_help[];
|
||||
|
||||
int cmd_list_probes(jtag_core *jc, int argc, char *argv[]);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _CMDS_SCAN_H
|
||||
#define _CMDS_SCAN_H
|
||||
|
||||
#include "jtag_core.h"
|
||||
#include "lib_jtag_core/jtag_core.h"
|
||||
|
||||
extern const char cmd_scan_help[];
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ const char cmd_select_probe_help[] = "Bla bla.";
|
||||
int cmd_select_probe(jtag_core *jc, int argc, char *argv[]) {
|
||||
int error = 0;
|
||||
|
||||
error = jtagcore_select_and_open_probe(jc, probe_id);
|
||||
// error = jtagcore_select_and_open_probe(jc, probe_id);
|
||||
if (error < 0) {
|
||||
printf("Impossible to open the selected probe.\n");
|
||||
return error;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _SELECT_PROBE_H
|
||||
#define _SELECT_PROBE_H
|
||||
|
||||
#include "jtag_core.h"
|
||||
#include "lib_jtag_core/jtag_core.h"
|
||||
|
||||
extern const char cmd_select_probe_help[];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _UTILS_H
|
||||
#define _UTILS_H
|
||||
|
||||
#include "jtag_core.h"
|
||||
#include "lib_jtag_core/jtag_core.h"
|
||||
|
||||
#define MAX_LINE 1024
|
||||
#define MAX_ARGS 16
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
|
||||
#include "jtag_core.h"
|
||||
#include "lib_jtag_core/jtag_core.h"
|
||||
#include "common.h"
|
||||
#include "args.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user