summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-10-14 21:08:04 +0800
committersakumisu <[email protected]>2022-10-14 21:08:04 +0800
commit7bcd8d0532774b6875713fa999ece2374c2ad870 (patch)
treef0aff81e23e847e63485f0d005cad3b00d14b06d
parent86081b1e89b5ef1803b9f6ca2fda29cf66ebeb8f (diff)
remove duplicate macros
-rw-r--r--class/msc/usbd_msc.c4
-rw-r--r--common/usb_mem.h7
2 files changed, 0 insertions, 11 deletions
diff --git a/class/msc/usbd_msc.c b/class/msc/usbd_msc.c
index 708f8d09..2ca1a837 100644
--- a/class/msc/usbd_msc.c
+++ b/class/msc/usbd_msc.c
@@ -10,10 +10,6 @@
#include "usb_osal.h"
#endif
-#ifndef CONFIG_USBDEV_MSC_BLOCK_SIZE
-#define CONFIG_USBDEV_MSC_BLOCK_SIZE 512
-#endif
-
#define MSC_THREAD_OP_READ_MEM 1
#define MSC_THREAD_OP_WRITE_MEM 2
#define MSC_THREAD_OP_WRITE_DONE 3
diff --git a/common/usb_mem.h b/common/usb_mem.h
index 3377ba62..17b8c950 100644
--- a/common/usb_mem.h
+++ b/common/usb_mem.h
@@ -25,13 +25,6 @@ void *usb_hc_malloc_align(size_t align, size_t size);
#endif
-#ifndef CONFIG_USB_ALIGN_SIZE
-#define CONFIG_USB_ALIGN_SIZE 4
-#endif
-
-#ifndef USB_NOCACHE_RAM_SECTION
-#define USB_NOCACHE_RAM_SECTION
-#endif
#define USB_MEM_ALIGNX __attribute__((aligned(CONFIG_USB_ALIGN_SIZE)))
#if (CONFIG_USB_ALIGN_SIZE > 4)