rename usb ip header file
This commit is contained in:
@@ -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,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,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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,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
|
||||
|
||||
@@ -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 */
|
||||
/**
|
||||
Reference in New Issue
Block a user