Merge pull request #1375 from uestczyh222/master

Add USB driver to fire
This commit is contained in:
Bernard Xiong 2018-04-21 11:25:30 +08:00 committed by GitHub
commit d5da0601a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 10 deletions

View File

@ -397,7 +397,6 @@ endmenu
default n
#endmenu
if BOARD_RT1050_EVK
if RT_USING_USB_DEVICE
choice
prompt "select usb device controller"
@ -409,6 +408,5 @@ if RT_USING_USB_DEVICE
bool "set EHCI1 as device"
endchoice
endif
endif
endmenu

View File

@ -46,6 +46,15 @@ if GetDepend('RT_USING_LCD'):
if GetDepend('RT_USING_SDIO'):
src += ['drv_sdio.c']
# add usb device driver code
if GetDepend('RT_USING_USB_DEVICE'):
src += ['drv_usbd.c']
src += Glob('usb/device/*.c')
# add usb phy driver code
if GetDepend('RT_USING_USB_DEVICE'):
src += Glob('usb/phy/*.c')
CPPDEFINES += ['ENDIANNESS']
if GetDepend('BOARD_RT1050_EVK'):
src += ['hyper_flash_boot.c']
@ -53,14 +62,6 @@ if GetDepend('BOARD_RT1050_EVK'):
src += ['drv_eth.c', 'fsl_phy.c']
CPPDEFINES += ['FSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE']
if GetDepend('RT_USING_USB_DEVICE'):
src += Glob('usb/phy/*.c')
CPPDEFINES += ['ENDIANNESS']
if GetDepend('RT_USING_USB_DEVICE'):
src += ['drv_usbd.c']
src += Glob('usb/device/*.c')
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
Return('group')