From 381abb457a04d37afa0549258f82497734a8445d Mon Sep 17 00:00:00 2001 From: CLARATION Date: Thu, 25 Jun 2026 22:07:11 -0700 Subject: [PATCH] refactor(usb): rename shim --- src/m8/checkm8.c | 2 +- src/m8/checkm8.h | 2 +- src/m8/run.c | 2 +- src/pongo/pongo_helper.c | 2 +- src/pongo/pongo_helper.h | 2 +- src/usb/{usb_shim.c => shim.c} | 2 +- src/usb/{usb_shim.h => shim.h} | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename src/usb/{usb_shim.c => shim.c} (98%) rename src/usb/{usb_shim.h => shim.h} (100%) diff --git a/src/m8/checkm8.c b/src/m8/checkm8.c index 9d34ba0..9344a61 100644 --- a/src/m8/checkm8.c +++ b/src/m8/checkm8.c @@ -9,7 +9,7 @@ #include "dfu.h" #include "../utils.h" -#include "../usb/usb_shim.h" +#include "../usb/shim.h" static struct { uint8_t b_len, b_descriptor_type; diff --git a/src/m8/checkm8.h b/src/m8/checkm8.h index 44c83aa..abb7464 100644 --- a/src/m8/checkm8.h +++ b/src/m8/checkm8.h @@ -5,7 +5,7 @@ #include "payload.h" -#include "../usb/usb_shim.h" +#include "../usb/shim.h" #define EP0_MAX_PACKET_SZ (0x40) #define USB_MAX_STRING_DESCRIPTOR_IDX (10) diff --git a/src/m8/run.c b/src/m8/run.c index 0673eec..7475480 100644 --- a/src/m8/run.c +++ b/src/m8/run.c @@ -8,7 +8,7 @@ #include #include "../utils.h" -#include "../usb/usb_shim.h" +#include "../usb/shim.h" #include "../pongo/pongo_helper.h" #include "checkm8.h" diff --git a/src/pongo/pongo_helper.c b/src/pongo/pongo_helper.c index 39f408f..fb1ce36 100644 --- a/src/pongo/pongo_helper.c +++ b/src/pongo/pongo_helper.c @@ -6,7 +6,7 @@ #include #include -#include "../usb/usb_shim.h" +#include "../usb/shim.h" #include "../utils.h" #include "../m8/dfu.h" diff --git a/src/pongo/pongo_helper.h b/src/pongo/pongo_helper.h index 5f6c0c0..aad1316 100644 --- a/src/pongo/pongo_helper.h +++ b/src/pongo/pongo_helper.h @@ -1,7 +1,7 @@ #ifndef USB_PONGO_H #define USB_PONGO_H -#include "../usb/usb_shim.h" +#include "../usb/shim.h" #define CMD_LENGTH_MAX 512 diff --git a/src/usb/usb_shim.c b/src/usb/shim.c similarity index 98% rename from src/usb/usb_shim.c rename to src/usb/shim.c index 2e85189..6410dc4 100644 --- a/src/usb/usb_shim.c +++ b/src/usb/shim.c @@ -1,4 +1,4 @@ -#include "usb_shim.h" +#include "shim.h" #include #include diff --git a/src/usb/usb_shim.h b/src/usb/shim.h similarity index 100% rename from src/usb/usb_shim.h rename to src/usb/shim.h