Skip to content

Commit b81795e

Browse files
committed
【添加】usb host
1 parent e0f743c commit b81795e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libraries/drivers/SConscript

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ if GetDepend(['BSP_USING_ONCHIP_RTC']):
4343
if GetDepend(['BSP_USING_USBD']):
4444
src += Glob('drv_usbd.c')
4545

46+
if GetDepend(['BSP_USING_USBH']):
47+
src += ['drv_usbh.c']
48+
4649
path = [cwd]
4750
path += [cwd + '/include']
4851
path += [cwd + '/include/config']

libraries/drivers/drv_usbh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include<rtthread.h>
1414
#include<rtdevice.h>
1515

16-
#ifdef BSP_USING_USBHOST
16+
#ifdef BSP_USING_USBH
1717

1818
static HCD_HandleTypeDef stm32_hhcd_fs;
1919
static struct rt_completion urb_completion;

0 commit comments

Comments
 (0)