rename USB_MUSB_SUNXI with CONFIG_USB_MUSB_SUNXI

This commit is contained in:
sakumisu
2022-04-15 21:38:58 +08:00
parent 5346788a50
commit fde5f93659
4 changed files with 14 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#include "usbd_core.h"
#include "usb_musb_reg.h"
#ifdef USB_MUSB_SUNXI
#ifdef CONFIG_USB_MUSB_SUNXI
#define SUNXI_SRAMC_BASE 0x01c00000
#define SUNXI_USB0_BASE 0x01c13000
@@ -45,7 +45,7 @@ void USBD_IRQHandler(int, void *);
#define MUSB_IND_RXCOUNT_OFFSET 0x18
#define MUSB_FIFO_OFFSET 0x20
#endif // USB_MUSB_SUNXI
#endif // CONFIG_USB_MUSB_SUNXI
#ifndef USB_NUM_BIDIR_ENDPOINTS
#define USB_NUM_BIDIR_ENDPOINTS 8
@@ -631,7 +631,7 @@ static void handle_ep0(void)
}
}
#ifdef USB_MUSB_SUNXI
#ifdef CONFIG_USB_MUSB_SUNXI
void USBD_IRQHandler(int irq, void *args)
#else
void USBD_IRQHandler(void)