From 8a86faf49dbe09abaf1cb2a72ae4cfe42a8812f1 Mon Sep 17 00:00:00 2001 From: SId Price Date: Sat, 18 Jun 2022 16:30:05 -0600 Subject: [PATCH] Rename cl_utils.* to cli.*, and fix references File "serial_unix.c" edited but Linux build not done (Windows only dev environment) --- src/platforms/hosted/Makefile.inc | 2 +- src/platforms/hosted/bmp_hosted.h | 2 +- src/platforms/hosted/bmp_remote.c | 2 +- src/platforms/hosted/{cl_utils.c => cli.c} | 2 +- src/platforms/hosted/{cl_utils.h => cli.h} | 4 ++-- src/platforms/hosted/cmsis_dap.h | 2 +- src/platforms/hosted/ftdi_bmp.h | 2 +- src/platforms/hosted/platform.c | 3 +-- src/platforms/hosted/serial_unix.c | 2 +- src/platforms/hosted/serial_win.c | 2 +- 10 files changed, 11 insertions(+), 12 deletions(-) rename src/platforms/hosted/{cl_utils.c => cli.c} (99%) rename src/platforms/hosted/{cl_utils.h => cli.h} (97%) diff --git a/src/platforms/hosted/Makefile.inc b/src/platforms/hosted/Makefile.inc index 4becd3e..582a9e6 100644 --- a/src/platforms/hosted/Makefile.inc +++ b/src/platforms/hosted/Makefile.inc @@ -72,7 +72,7 @@ ifneq ($(HOSTED_BMP_ONLY), 1) endif endif -SRC += timing.c cl_utils.c utils.c +SRC += timing.c cli.c utils.c SRC += bmp_remote.c remote_swdptap.c remote_jtagtap.c ifneq ($(HOSTED_BMP_ONLY), 1) SRC += bmp_libusb.c stlinkv2.c diff --git a/src/platforms/hosted/bmp_hosted.h b/src/platforms/hosted/bmp_hosted.h index 65eefcf..4783f2c 100644 --- a/src/platforms/hosted/bmp_hosted.h +++ b/src/platforms/hosted/bmp_hosted.h @@ -1,7 +1,7 @@ #if !defined(__BMP_LIBUSB_H) #define __BMP_LIBUSB_H -#include "cl_utils.h" +#include "cli.h" #if HOSTED_BMP_ONLY != 1 # include diff --git a/src/platforms/hosted/bmp_remote.c b/src/platforms/hosted/bmp_remote.c index 8a586e2..621abd4 100644 --- a/src/platforms/hosted/bmp_remote.c +++ b/src/platforms/hosted/bmp_remote.c @@ -25,7 +25,7 @@ #include "remote.h" #include "target.h" #include "bmp_remote.h" -#include "cl_utils.h" +#include "cli.h" #include "hex_utils.h" #include diff --git a/src/platforms/hosted/cl_utils.c b/src/platforms/hosted/cli.c similarity index 99% rename from src/platforms/hosted/cl_utils.c rename to src/platforms/hosted/cli.c index 47fc16f..350aa50 100644 --- a/src/platforms/hosted/cl_utils.c +++ b/src/platforms/hosted/cli.c @@ -33,7 +33,7 @@ #include "cortexm.h" #include "command.h" -#include "cl_utils.h" +#include "cli.h" #include "bmp_hosted.h" #ifndef O_BINARY diff --git a/src/platforms/hosted/cl_utils.h b/src/platforms/hosted/cli.h similarity index 97% rename from src/platforms/hosted/cl_utils.h rename to src/platforms/hosted/cli.h index ff43610..b858694 100644 --- a/src/platforms/hosted/cl_utils.h +++ b/src/platforms/hosted/cli.h @@ -21,8 +21,8 @@ /* This file implements the interface to command line command for PC-Hosted * platforms. */ -#if !defined(__CL_UTILS_H) -#define __CL_UTILS_H +#if !defined(__CLI_H) +#define __CLI_H #include "cortexm.h" diff --git a/src/platforms/hosted/cmsis_dap.h b/src/platforms/hosted/cmsis_dap.h index cd834d8..dcb3ddf 100644 --- a/src/platforms/hosted/cmsis_dap.h +++ b/src/platforms/hosted/cmsis_dap.h @@ -20,7 +20,7 @@ #define __CMSIS_DAP_H_ #include "adiv5.h" -#include "cl_utils.h" +#include "cli.h" #if defined(CMSIS_DAP) int dap_init(bmp_info_t *info); diff --git a/src/platforms/hosted/ftdi_bmp.h b/src/platforms/hosted/ftdi_bmp.h index e5553a4..e18e669 100644 --- a/src/platforms/hosted/ftdi_bmp.h +++ b/src/platforms/hosted/ftdi_bmp.h @@ -22,7 +22,7 @@ #ifndef __FTDI_BMP_H #define __FTDI_BMP_H -#include "cl_utils.h" +#include "cli.h" #include "jtagtap.h" #include "bmp_hosted.h" diff --git a/src/platforms/hosted/platform.c b/src/platforms/hosted/platform.c index 3766693..b5b701c 100644 --- a/src/platforms/hosted/platform.c +++ b/src/platforms/hosted/platform.c @@ -26,7 +26,7 @@ #include "target_internal.h" #include "adiv5.h" #include "timing.h" -#include "cl_utils.h" +#include "cli.h" #include "gdb_if.h" #include @@ -40,7 +40,6 @@ #include "ftdi_bmp.h" #include "jlink.h" #include "cmsis_dap.h" -#include "cl_utils.h" bmp_info_t info; diff --git a/src/platforms/hosted/serial_unix.c b/src/platforms/hosted/serial_unix.c index 2365399..563b1fd 100644 --- a/src/platforms/hosted/serial_unix.c +++ b/src/platforms/hosted/serial_unix.c @@ -27,7 +27,7 @@ #include #include "remote.h" -#include "cl_utils.h" +#include "cli.h" #include "cortexm.h" static int fd; /* File descriptor for connection to GDB remote */ diff --git a/src/platforms/hosted/serial_win.c b/src/platforms/hosted/serial_win.c index b08e87e..e28c9f7 100644 --- a/src/platforms/hosted/serial_win.c +++ b/src/platforms/hosted/serial_win.c @@ -20,7 +20,7 @@ #include "general.h" #include #include "remote.h" -#include "cl_utils.h" +#include "cli.h" static HANDLE hComm;