Skip to content

Commit 9dcade0

Browse files
authored
Merge pull request #4933 from chenyingchun0312/master
[bsp/stm32l496-st-nucleo] add usb device cdc configration
2 parents a6df439 + ceba960 commit 9dcade0

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

bsp/stm32/stm32l496-st-nucleo/README_zh.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ msh >
9696

9797
本章节更多详细的介绍请参考 [STM32 系列 BSP 外设驱动使用教程](../docs/STM32系列BSP外设驱动使用教程.md)
9898

99+
100+
101+
5. USBD CDC使用,参考文章[STM32L496 USB CDC适配](https://club.rt-thread.org/ask/article/2959.html)
102+
99103
## 注意事项
100104

101105
- 开机时如果不能打印 RT-Thread 版本信息,请重新选择 PC 端串口调试软件的串口号或将 BSP 中串口的 GPIO 速率调低

bsp/stm32/stm32l496-st-nucleo/applications/SConscript

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ src = Split('''
66
main.c
77
''')
88

9-
if GetDepend(['BSP_USING_SPI_LCD']):
10-
src += ['lcd_sample.c']
11-
12-
if GetDepend(['PKG_USING_NRF24L01']):
13-
src += ['nrf24l01_init.c']
14-
159
CPPPATH = [str(Dir('#')), cwd]
1610

1711
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)

bsp/stm32/stm32l496-st-nucleo/board/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ menu "On-chip Peripheral Drivers"
6060
config BSP_USING_ON_CHIP_FLASH
6161
bool "Enable on-chip FLASH"
6262
default n
63+
64+
config BSP_USING_USBD
65+
bool "Enable OTGFS as USB device"
66+
select RT_USING_USB_DEVICE
67+
default n
6368

6469
source "../libraries/HAL_Drivers/Kconfig"
6570

0 commit comments

Comments
 (0)