Merge pull request #4933 from chenyingchun0312/master
[bsp/stm32l496-st-nucleo] add usb device cdc configration
This commit is contained in:
commit
9dcade0b0c
|
@ -96,6 +96,10 @@ msh >
|
||||||
|
|
||||||
本章节更多详细的介绍请参考 [STM32 系列 BSP 外设驱动使用教程](../docs/STM32系列BSP外设驱动使用教程.md)。
|
本章节更多详细的介绍请参考 [STM32 系列 BSP 外设驱动使用教程](../docs/STM32系列BSP外设驱动使用教程.md)。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
5. USBD CDC使用,参考文章[STM32L496 USB CDC适配](https://club.rt-thread.org/ask/article/2959.html)
|
||||||
|
|
||||||
## 注意事项
|
## 注意事项
|
||||||
|
|
||||||
- 开机时如果不能打印 RT-Thread 版本信息,请重新选择 PC 端串口调试软件的串口号或将 BSP 中串口的 GPIO 速率调低
|
- 开机时如果不能打印 RT-Thread 版本信息,请重新选择 PC 端串口调试软件的串口号或将 BSP 中串口的 GPIO 速率调低
|
||||||
|
|
|
@ -6,12 +6,6 @@ src = Split('''
|
||||||
main.c
|
main.c
|
||||||
''')
|
''')
|
||||||
|
|
||||||
if GetDepend(['BSP_USING_SPI_LCD']):
|
|
||||||
src += ['lcd_sample.c']
|
|
||||||
|
|
||||||
if GetDepend(['PKG_USING_NRF24L01']):
|
|
||||||
src += ['nrf24l01_init.c']
|
|
||||||
|
|
||||||
CPPPATH = [str(Dir('#')), cwd]
|
CPPPATH = [str(Dir('#')), cwd]
|
||||||
|
|
||||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
|
@ -60,6 +60,11 @@ menu "On-chip Peripheral Drivers"
|
||||||
config BSP_USING_ON_CHIP_FLASH
|
config BSP_USING_ON_CHIP_FLASH
|
||||||
bool "Enable on-chip FLASH"
|
bool "Enable on-chip FLASH"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config BSP_USING_USBD
|
||||||
|
bool "Enable OTGFS as USB device"
|
||||||
|
select RT_USING_USB_DEVICE
|
||||||
|
default n
|
||||||
|
|
||||||
source "../libraries/HAL_Drivers/Kconfig"
|
source "../libraries/HAL_Drivers/Kconfig"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue