summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-01-11 22:42:51 +0800
committersakumisu <[email protected]>2022-01-11 22:42:51 +0800
commit3e9b420ebdbb0e26f2e030006df3d2476c73eb3e (patch)
tree71a726dd8ac74ec73654da5beb93f9b56d013ea4
parent6180db5d8a6767d3558cb05c74eea4fb72619db6 (diff)
rename usb ip header file
-rw-r--r--port/ch32/usb_ch32_reg.h (renamed from port/ch32/usb_ch32_regs.h)4
-rw-r--r--port/ch32/usb_dc.c2
-rw-r--r--port/fsdev/usb_dc_fsdev.c2
-rw-r--r--port/fsdev/usb_fsdev_reg.h (renamed from port/fsdev/usb_fsdev_regs.h)0
-rw-r--r--port/mm32/usb_dc.c2
-rw-r--r--port/mm32/usb_mm32_reg.h (renamed from port/mm32/usb_mm32_regs.h)4
-rw-r--r--port/synopsys/usb_dc_synopsys.c2
-rw-r--r--port/synopsys/usb_synopsys_reg.h (renamed from port/synopsys/usb_synopsys_regs.h)4
8 files changed, 10 insertions, 10 deletions
diff --git a/port/ch32/usb_ch32_regs.h b/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
index 896a0fea..896a0fea 100644
--- a/port/fsdev/usb_fsdev_regs.h
+++ b/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
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
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 */
/**