From 3e9b420ebdbb0e26f2e030006df3d2476c73eb3e Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Tue, 11 Jan 2022 22:42:51 +0800 Subject: [PATCH] rename usb ip header file --- port/ch32/{usb_ch32_regs.h => usb_ch32_reg.h} | 4 ++-- port/ch32/usb_dc.c | 2 +- port/fsdev/usb_dc_fsdev.c | 2 +- port/fsdev/{usb_fsdev_regs.h => usb_fsdev_reg.h} | 0 port/mm32/usb_dc.c | 2 +- port/mm32/{usb_mm32_regs.h => usb_mm32_reg.h} | 4 ++-- port/synopsys/usb_dc_synopsys.c | 2 +- port/synopsys/{usb_synopsys_regs.h => usb_synopsys_reg.h} | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) rename port/ch32/{usb_ch32_regs.h => usb_ch32_reg.h} (99%) rename port/fsdev/{usb_fsdev_regs.h => usb_fsdev_reg.h} (100%) rename port/mm32/{usb_mm32_regs.h => usb_mm32_reg.h} (99%) rename port/synopsys/{usb_synopsys_regs.h => usb_synopsys_reg.h} (99%) diff --git a/port/ch32/usb_ch32_regs.h b/port/ch32/usb_ch32_reg.h similarity index 99% rename from port/ch32/usb_ch32_regs.h rename to port/ch32/usb_ch32_reg.h index 50cd72dc..c48cf2cd 100644 --- a/port/ch32/usb_ch32_regs.h +++ b/port/ch32/usb_ch32_reg.h @@ -1,5 +1,5 @@ -#ifndef _USB_CH32_REGS_H -#define _USB_CH32_REGS_H +#ifndef _USB_CH32_REG_H +#define _USB_CH32_REG_H #define __IO volatile /* defines 'read / write' permissions */ diff --git a/port/ch32/usb_dc.c b/port/ch32/usb_dc.c index 38c9aa2d..26f0f813 100644 --- a/port/ch32/usb_dc.c +++ b/port/ch32/usb_dc.c @@ -1,5 +1,5 @@ #include "usbd_core.h" -#include "usb_ch32_regs.h" +#include "usb_ch32_reg.h" #ifndef USB_NUM_BIDIR_ENDPOINTS #define USB_NUM_BIDIR_ENDPOINTS 8 diff --git a/port/fsdev/usb_dc_fsdev.c b/port/fsdev/usb_dc_fsdev.c index 8d173b1d..e767dbe2 100644 --- a/port/fsdev/usb_dc_fsdev.c +++ b/port/fsdev/usb_dc_fsdev.c @@ -1,5 +1,5 @@ #include "usbd_core.h" -#include "usb_fsdev_regs.h" +#include "usb_fsdev_reg.h" #ifndef USBD_IRQHandler #define USBD_IRQHandler USB_LP_CAN1_RX0_IRQHandler //use actual usb irq name instead diff --git a/port/fsdev/usb_fsdev_regs.h b/port/fsdev/usb_fsdev_reg.h similarity index 100% rename from port/fsdev/usb_fsdev_regs.h rename to port/fsdev/usb_fsdev_reg.h diff --git a/port/mm32/usb_dc.c b/port/mm32/usb_dc.c index 6794f5ac..f0230583 100644 --- a/port/mm32/usb_dc.c +++ b/port/mm32/usb_dc.c @@ -1,5 +1,5 @@ #include "usbd_core.h" -#include "usb_mm32_regs.h" +#include "usb_mm32_reg.h" #define USB_GET_EPX_INT_STATE(ep_idx) (*(volatile uint32_t *)(&USB->rEP1_INT_STATE + (ep_idx - 1))) #define USB_SET_EPX_INT_STATE(ep_idx, val) (*(volatile uint32_t *)(&USB->rEP1_INT_STATE + (ep_idx - 1)) = val) diff --git a/port/mm32/usb_mm32_regs.h b/port/mm32/usb_mm32_reg.h similarity index 99% rename from port/mm32/usb_mm32_regs.h rename to port/mm32/usb_mm32_reg.h index bb328d39..11001f4d 100644 --- a/port/mm32/usb_mm32_regs.h +++ b/port/mm32/usb_mm32_reg.h @@ -1,5 +1,5 @@ -#ifndef __USB_REG_H__ -#define __USB_REG_H__ +#ifndef __USB_MM32_REG_H__ +#define __USB_MM32_REG_H__ #define __IO volatile /*!< Defines 'read / write' permissions */ diff --git a/port/synopsys/usb_dc_synopsys.c b/port/synopsys/usb_dc_synopsys.c index 404f09fe..2c65dc51 100644 --- a/port/synopsys/usb_dc_synopsys.c +++ b/port/synopsys/usb_dc_synopsys.c @@ -1,5 +1,5 @@ #include "usbd_core.h" -#include "usb_synopsys_regs.h" +#include "usb_synopsys_reg.h" /*!< USB registers base address */ #define USB_OTG_HS_PERIPH_BASE 0x40040000UL diff --git a/port/synopsys/usb_synopsys_regs.h b/port/synopsys/usb_synopsys_reg.h similarity index 99% rename from port/synopsys/usb_synopsys_regs.h rename to port/synopsys/usb_synopsys_reg.h index 28e34cec..d3acceb9 100644 --- a/port/synopsys/usb_synopsys_regs.h +++ b/port/synopsys/usb_synopsys_reg.h @@ -1,5 +1,5 @@ -#ifndef __USB_DW_REG_H__ -#define __USB_DW_REG_H__ +#ifndef __USB_SYNOPSYS_REG_H__ +#define __USB_SYNOPSYS_REG_H__ #define __IO volatile /*!< Defines 'read / write' permissions */ /**