USB

所属分类:USB编程
开发工具:C/C++
文件大小:21618KB
下载次数:5
上传日期:2016-11-29 14:19:11
上 传 者hua186078
说明:  1. USB底层驱动代码 2. 基于STM32平台 3. 包括HID等内容
(1 USB underlying driver code 2 based on STM32 platform 3 including HID and other content)

文件列表:
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\CMSIS END USER LICENCE AGREEMENT.pdf (24914, 2014-01-21)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Include\stm32f0xx.h (409949, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Include\system_stm32f0xx.h (2222, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Release_Notes.html (38630, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f030.s (10068, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f031.s (9866, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f042.s (10703, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f051.s (10703, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f072.s (11163, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s (10703, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx_ld.s (9870, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7\startup_stm32f030.s (8237, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7\startup_stm32f031.s (8057, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7\startup_stm32f042.s (8577, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7\startup_stm32f051.s (8677, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7\startup_stm32f072.s (9013, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7\startup_stm32f0xx.s (8670, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f030.s (10333, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f031.s (10071, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f042.s (10902, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f051.s (11340, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f072.s (11687, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f0xx.s (11340, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f0xx_ld.s (10074, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c (12651, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f030.s (7826, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f031.s (7649, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f042.s (8116, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f051.s (8269, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f072.s (8601, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f0xx.s (8264, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f0xx_ld.s (7619, 2014-01-24)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Documentation\Core\html\annotated.html (11118, 2014-01-21)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Documentation\Core\html\annotated.js (1082, 2014-01-21)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Documentation\Core\html\bc_s.png (671, 2014-01-21)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Documentation\Core\html\bdwn.png (147, 2014-01-21)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Documentation\Core\html\check.png (922, 2014-01-21)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Documentation\Core\html\classes.html (11104, 2014-01-21)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Documentation\Core\html\closed.png (132, 2014-01-21)
USB\STM32F0x2_USB_FS_Device_Lib_V1.0.0hid_less_than_64byte\STM32F0x2_USB-FS-Device_Lib V1.0.0hid less than 64byte\Libraries\CMSIS\Documentation\Core\html\cmsis.css (20532, 2014-01-21)
... ...

实验器材: 探索者STM32F4开发板 实验目的: 学习STM32的USB HOST功能使用,实现对U盘的读写 硬件资源: 1,DS0(连接在PF9),DS1(连接在PF10) 2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面) 3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A6接RS) 4,USB_HOST接口(通过跳线帽将D-/D+连接在PA11/PA12上) 实验现象: 本实验代码,开机后,检测字库,然后初始化USB HOST,并不断轮询。当检测并识别U盘后, 在LCD上面显示U盘总容量和剩余容量,此时便可以通过USMART调用FATFS相关函数,来测试 U盘数据的读写了,方法同FATFS实验一模一样。当U盘没插入的时候,DS0闪烁,提示程序运 行,当U盘插入后,DS1闪烁,提示可以通过USMART测试了。 注意事项: 1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源). 2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!! 3,本实验需要用跳线帽短接P11的D+和PA12,以及D-和PA11。 4,本实验USB_SLAVE接口不要插任何设备。 5,请自备U盘/USB读卡器(配SD卡)一个。 正点原子@ALIENTEK 2014-10-25 广州市星翼电子科技有限公司 电话:020-38271790 传真:020-36773971 购买:http://shop62103354.taobao.com http://shop62057469.taobao.com 公司网站:www.alientek.com 技术论坛:www.openedv.com

近期下载者

相关文件


收藏者