dirs refactoring

This commit is contained in:
2025-02-16 11:27:46 +01:00
parent 5ddc9fe9b4
commit 054165ed84
65 changed files with 182 additions and 709 deletions

View File

@@ -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
)

View File

@@ -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[];

View File

@@ -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[]);

View File

@@ -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[]);

View File

@@ -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[];

View File

@@ -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;

View File

@@ -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[];

View File

@@ -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

View File

@@ -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"