/**
******************** (C) COPYRIGHT 2017 STMicroelectronics *******************
* @file readme.txt
* @author MCD Application Team
* @version V4.1.0
* @date 26-May-2017
* @brief Description of the USB Custom_HID Demo.
******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
Example description
===================
This Demo provides a description of how to use the USB-FS-Device on the STM32F10xxx,
STM32F37xxx, STM32F30xxx and STM32L15xxx devices.
The STM32 device is enumerated as HID compliant device, that uses the native PC
Host USB-FS-Device HID driver.
8MHZ Cristal should be mounted on boards to recognize USB device.
To test the example, you need to:
1)- Start the "USB HID Demonstrator" PC applet and connect STM32 USB to PC
2)- The device should be detected and shown in the USB HID target box
3)- Press Graphic View button
4)- You can Select "use SET_FEATURE" or "use SET_REPORT" in order to use SET_REPORT request to send HID Report
for LED control
5)- Make sure that following report ID are configured: LED1 ID (0x1) , LED2 ID(0x2),
LED3 ID(0x3), LED4 ID(0x4), and BUTTON1_ID(0x5)
6)- Select LEDs to switch on/off on the EVAL board => a SET_REPORT request will be sent
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
+ \EWARM: contains preconfigured projects for EWARM toolchain
+ \MDK-ARM: contains preconfigured projects for MDK-ARM toolchain
+ \SW4STM32: contains preconfigured projects for STM32 System Workbench for toolchain
+ \src: contains the Demo firmware source files
Hardware environment
====================
This example runs these STMicroelectronics evaluation boards and can be easily tailored to any other hardware:
- STM3210B-EVAL
- STM3210E-EVAL
- STM32L152-EVAL
- STM32F373C_EVAL
- STM32F303C_EVAL
- STM32F303E_EVAL
- STM32L152D-EVAL
- STM3210B-EVAL Set-up
- Jumper JP1 (USB disconnect) should be connected in position 2-3.
- STM3210E-EVAL Set-up
- Jumper JP14 (USB disconnect) should be connected in position 2-3.
- STM32L152-EVAL Set-up
- Jumpers JP18 and JP19 should be connected.
- Jumper JP17 should be connected in position 5-6 (PB12 connector)
- Note that Joystick Right and Left buttons are used for this Demo.
- STM32L152D-EVAL Set-up
- LCD Glass should be mounted On IO position for Potentiometer usage.
- JP13 should be connected to ADC input.
How to use it
=============
In order to make the program work, you must do the following :
- Open your preferred toolchain
- Rebuild all files and load your image into target memory
- In the workspace toolbar select the project configuration:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices
- STM32L152-EVAL: to configure the project for STM32 Medium-Density Low-Power devices
- STM32L152D-EVAL: to configure the project for STM32 High-Density Low-Power devices
- STM32373C-EVAL: to configure the project for STM32F37xxx devices
- STM32303C-EVAL: to configure the project for STM32F303xx devices.
- STM32303E-EVAL: to configure the project for STM32F303xE devices
- Run the application
************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE******
没有合适的资源?快使用搜索试试~ 我知道了~
Custom_HID_STM32模拟打印机接口_stm32f103HID_
共190个文件
d:29个
o:29个
crf:28个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
4星 · 超过85%的资源 7 下载量 179 浏览量
2021-10-02
17:53:51
上传
评论 2
收藏 6.03MB ZIP 举报
温馨提示
使用STM32F103的USB接口模拟打印机接收上位机数据实验
资源推荐
资源详情
资源评论
收起资源包目录
Custom_HID_STM32模拟打印机接口_stm32f103HID_ (190个子文件)
Project.uvguix.Administrator 139KB
STM3210E-EVAL.axf 423KB
system_stm32f10x.c 30KB
hw_config.c 25KB
system_stm32l1xx.c 21KB
usb_prop.c 17KB
usb_desc.c 16KB
system_stm32f30x.c 15KB
system_stm32f37x.c 15KB
stm32_it.c 14KB
usb_pwr.c 10KB
usb_istr.c 8KB
usb_endp.c 5KB
main.c 5KB
STM32L152-EVAL_custom.cfg 371B
STM3210B-EVAL_Custom.cfg 371B
STM3210E-EVAL_HD.cfg 368B
.cproject 13KB
.cproject 13KB
.cproject 12KB
.cproject 12KB
.cproject 12KB
.cproject 12KB
.cproject 12KB
.cproject 12KB
usb_regs.crf 389KB
usb_core.crf 388KB
usb_prop.crf 386KB
hw_config.crf 385KB
usb_istr.crf 384KB
stm32_it.crf 383KB
usb_pwr.crf 382KB
usb_int.crf 382KB
usb_desc.crf 381KB
main.crf 381KB
usb_endp.crf 381KB
usb_mem.crf 380KB
usb_sil.crf 380KB
usb_init.crf 380KB
stm3210e_eval.crf 369KB
stm32f10x_adc.crf 359KB
stm32f10x_rcc.crf 358KB
stm32f10x_flash.crf 358KB
stm32f10x_i2c.crf 357KB
stm32f10x_usart.crf 357KB
stm32f10x_sdio.crf 356KB
stm32f10x_spi.crf 355KB
stm32f10x_gpio.crf 355KB
stm32f10x_dma.crf 355KB
system_stm32f10x.crf 353KB
stm32f10x_pwr.crf 352KB
stm32f10x_exti.crf 352KB
misc.crf 352KB
hw_config.d 4KB
stm32_it.d 4KB
usb_istr.d 4KB
usb_prop.d 4KB
usb_desc.d 4KB
usb_endp.d 4KB
usb_init.d 4KB
usb_regs.d 4KB
usb_core.d 4KB
usb_sil.d 4KB
usb_pwr.d 4KB
usb_mem.d 4KB
usb_int.d 4KB
main.d 4KB
stm3210e_eval.d 3KB
stm32f10x_usart.d 3KB
stm32f10x_flash.d 3KB
stm32f10x_exti.d 3KB
stm32f10x_gpio.d 3KB
stm32f10x_sdio.d 3KB
stm32f10x_i2c.d 3KB
stm32f10x_dma.d 3KB
stm32f10x_rcc.d 3KB
stm32f10x_pwr.d 3KB
stm32f10x_adc.d 3KB
stm32f10x_spi.d 3KB
system_stm32f10x.d 3KB
misc.d 3KB
startup_stm32f10x_hd.d 62B
Project_STM3210E-EVAL.dep 103KB
Custom_HID.ewd 352KB
Custom_HID.ewp 224KB
Custom_HID.eww 904B
platform_config.h 10KB
usb_conf.h 5KB
usb_desc.h 4KB
stm32f10x_conf.h 4KB
usb_prop.h 4KB
stm32f37x_conf.h 4KB
stm32f30x_conf.h 4KB
stm32l1xx_conf.h 4KB
usb_istr.h 4KB
usb_pwr.h 3KB
hw_config.h 3KB
stm32_it.h 3KB
RTE_Components.h 260B
STM3210E-EVAL.htm 72KB
共 190 条
- 1
- 2
资源评论
- weixin_451776342024-01-02没啥用处,浪费时间 #毫无价值
- qq_345925702022-12-19不咋地,挂羊头卖狗肉
- qq_328784572022-03-10感谢楼主。
- m0_705057032022-06-18用户下载后在一定时间内未进行评价,系统默认好评。
- m0_603186052021-12-14用户下载后在一定时间内未进行评价,系统默认好评。
浊池
- 粉丝: 48
- 资源: 4783
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功