Browse Source

update(port/fsdev): assert for fsdev log

Signed-off-by: sakumisu <1203593632@qq.com>
sakumisu 6 months ago
parent
commit
85e420eb54
1 changed files with 4 additions and 0 deletions
  1. 4 0
      port/fsdev/usb_dc_fsdev.c

+ 4 - 0
port/fsdev/usb_dc_fsdev.c

@@ -5,6 +5,10 @@
  */
 #include "usbd_core.h"
 
+#if (CONFIG_USB_DBG_LEVEL >= USB_DBG_LOG)
+#error "fsdev cannot enable USB_DBG_LOG"
+#endif
+
 #ifndef CONFIG_USBDEV_FSDEV_PMA_ACCESS
 #error "please define CONFIG_USBDEV_FSDEV_PMA_ACCESS in usb_config.h"
 #endif