JoyStickMouse

所属分类:USB编程
开发工具:C/C++
文件大小:2272KB
下载次数:191
上传日期:2010-09-16 15:10:44
上 传 者liwang0806
说明:  基于STM32F103ZET6 实现USB的HID功能,是学习USB入门比较好的代码,工程文件可直接运行
(very good!)

文件列表:
JoyStickMouse\STM32_USB-FS-Device_Driver\src\usb_core.c (31059, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\src\usb_init.c (3109, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\src\usb_int.c (6511, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\src\usb_mem.c (3504, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\src\usb_regs.c (29187, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\inc\usb_core.h (9295, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\inc\usb_def.h (2835, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\inc\usb_init.h (2560, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\inc\usb_int.h (1743, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\inc\usb_lib.h (1819, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\inc\usb_mem.h (1836, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\inc\usb_regs.h (28981, 2009-04-25)
JoyStickMouse\STM32_USB-FS-Device_Driver\inc\usb_type.h (2838, 2009-04-25)
JoyStickMouse\Source\src\hw_config.c (9813, 2010-05-20)
JoyStickMouse\Source\src\main.c (1423, 2010-05-18)
JoyStickMouse\Source\src\stm32f10x_it.c (8473, 2010-05-16)
JoyStickMouse\Source\src\usb_desc.c (5814, 2010-05-18)
JoyStickMouse\Source\src\usb_istr.c (3752, 2010-05-20)
JoyStickMouse\Source\src\usb_prop.c (11988, 2010-05-22)
JoyStickMouse\Source\src\usb_pwr.c (4507, 2010-05-21)
JoyStickMouse\Source\inc\hw_config.h (1089, 2010-05-18)
JoyStickMouse\Source\inc\platform_config.h (5494, 2009-04-25)
JoyStickMouse\Source\inc\stm32f10x_conf.h (3450, 2009-04-25)
JoyStickMouse\Source\inc\stm32f10x_it.h (2006, 2009-04-25)
JoyStickMouse\Source\inc\usb_conf.h (1480, 2010-05-18)
JoyStickMouse\Source\inc\usb_desc.h (1914, 2010-05-18)
JoyStickMouse\Source\inc\usb_istr.h (2609, 2009-04-25)
JoyStickMouse\Source\inc\usb_prop.h (1794, 2010-05-18)
JoyStickMouse\Source\inc\usb_pwr.h (1231, 2010-05-19)
JoyStickMouse\Project\JoyStickMouse.Opt (5622, 2009-04-25)
JoyStickMouse\Project\STM32DBG.ini (2036, 2009-04-25)
JoyStickMouse\Project\JoyStickMouse_STM3210E-EVAL.dep (29147, 2010-05-13)
JoyStickMouse\Project\JoyStickMouse_uvproj.bak (19225, 2010-05-13)
JoyStickMouse\Project\JLinkLog.txt (65058, 2010-05-25)
JoyStickMouse\Project\JoyStickMouse_uvopt.bak (82820, 2010-05-22)
JoyStickMouse\Project\JoyStickMouse.uvopt (82821, 2010-05-25)
JoyStickMouse\Project\List\startup_stm32f10x_hd.lst (61159, 2010-05-12)
JoyStickMouse\Project\List\STM3210E-EVAL.map (87978, 2010-05-12)
JoyStickMouse\Project\List\STM32F103ZE.map (86711, 2010-05-25)
... ...

/******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V3.0.0 * Date : 04/06/2009 * Description : Description of the USB JoyStickMouse Demo. ******************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ Example description =================== This Demo provides a description of how to use the USB-FS-Device on the STM32F10x devices. The STM32F10x device is enumerated as an USB-FS-Device Joystick Mouse, that uses the native PC Host USB-FS-Device HID driver. The Joystick mounted on the STM3210B-EVAL and STM3210E-EVAL boards is used to emulate the Mouse directions. More details about this Demo implementation is given in the User manual "UM0424 STM32F10xxx USB development kit", available for download from the ST microcontrollers website: www.st.com/stm32 Directory contents ================== + \inc: contains the Demo firmware header files + \EWARMv5: contains pre-configured projects for EWARM5 toolchain + \RIDE: contains pre-configured projects for RIDE toolchain + \RVMDK: contains pre-configured projects for RVMDK toolchain + \src: contains the Demo firmware source files Hardware environment ==================== This example runs on STMicroelectronics STM3210B-EVAL and STM3210E-EVAL evaluation boards and can be easily tailored to any other hardware. To select the STMicroelectronics evaluation board used to run the example, uncomment the corresponding line in platform_config.h file. How to use it ============= + RVMDK - Open the JoyStickMouse.Uv2 project - In the build toolbar select the project config: - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - Rebuild all files: Project->Rebuild all target files - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) Note: The intialization file "STM32DBG.ini" is used to allow debugging in stop mode. + EWARM5 - Open the JoyStickMouse.eww workspace. - In the workspace toolbar select the project config: - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - Rebuild all files: Project->Rebuild all - Load project image: Project->Debug - Run program: Debug->Go(F5) + RIDE - Open the JoyStickMouse.rprj project. - In the configuration toolbar(Project->properties) select the project config: - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - Rebuild all files: Project->build project - Load project image: Debug->start(ctrl+D) - Run program: Debug->Run(ctrl+F9) NOTE: - Low-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 32 and 128 Kbytes. - High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. ******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者