2011-09-15 06:34 AM
Hi all,
I am beginner to STM32 and USB. I want to tailor the USB demo (four leds, 2 buttons and potentiometer) to my stm32 sk (board from IAR). I don't understand how to change the report descriptor to my case 6 les, 4 buttons... I have a found a tool in usb.org which helps to do this staff but I don't understand how to use it. Is there a tutorial that could help me. Po Panda2011-09-19 11:29 AM
2011-09-23 07:36 AM
Hi,
I have attached usb_desc.c and usb_desc.h files, where I haveadapted example from ST for USB HID device. I configure 4 output reports (from PC e.g. to control LEDs) with IDs 0x01, 0x02, 0x03 and 0x04, and4 input reports (to PC e.g. state of button or potentiometer) with IDs 0x05, 0x06, 0x07 and 0x All reports are 64 bytes and minimum and maximum values are from 0 to I have usedEP1_IN (0x81) andEP1_OUT (0x01). It's very important to set right size of the descriptors. If this is important to you I can write code and set descriptors for your application, but you should give me specs. Regards ________________ Attachments : usb_desc.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0Z4&d=%2Fa%2F0X0000000baw%2FYdMfsQlgazuUTmzFu95_qQfh6E1Y04O5guWdmmytqT4&asPdf=falseusb_desc.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0bE&d=%2Fa%2F0X0000000bay%2FCll7Ng1jUrZnJHg8U2Xix0G7XtRILW9YSjEBn2RbnDE&asPdf=false