Explorar o código

rename usb ip header file

sakumisu %!s(int64=4) %!d(string=hai) anos
pai
achega
3e9b420ebd

+ 2 - 2
port/ch32/usb_ch32_regs.h → 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 */
 

+ 1 - 1
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

+ 1 - 1
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

+ 0 - 0
port/fsdev/usb_fsdev_regs.h → port/fsdev/usb_fsdev_reg.h


+ 1 - 1
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)

+ 2 - 2
port/mm32/usb_mm32_regs.h → 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 */
 

+ 1 - 1
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

+ 2 - 2
port/synopsys/usb_synopsys_regs.h → 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 */
 /**