Skip to content

Commit e767f7a

Browse files
committed
chore(usb): disable for HALv2 support
USB support is not compatible with current USB Device library. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 5ebe873 commit e767f7a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

libraries/USBDevice/inc/usbd_conf.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ extern "C" {
2929
/* Includes ------------------------------------------------------------------*/
3030
#include "stm32_def.h"
3131

32+
#if defined(USE_HALV2_DRIVER)
33+
#error "USB library is not yet compatible with HALv2 driver."
34+
#else
3235
#if !defined(USB_BASE) && !defined(USB_OTG_DEVICE_BASE)
3336
#error "This board does not support USB! Select 'None' in the 'Tools->USB interface' menu"
3437
#endif
@@ -39,7 +42,7 @@ extern "C" {
3942
#error "This board support only USB High Speed! Select 'High Speed' or 'High Speed in Full Speed mode' in the 'Tools->USB interface' menu"
4043
#endif
4144

42-
45+
#endif
4346
#include <stdio.h>
4447
#include <stdlib.h>
4548
#include <string.h>

0 commit comments

Comments
 (0)