summaryrefslogtreecommitdiff
path: root/tinyusb/class/hid_device.c
AgeCommit message (Collapse)Author
2018-03-06move class fileshathach
2018-03-06clean uphathach
2018-03-06rename to hal_dcd_pipe_xfer()hathach
2018-03-06change hal_dcd_pipe_open() signature to return boolhathach
- remove endpointhandle_is_valid()
2018-03-06remove class code in pipe open()hathach
2018-03-06rename to hal_dcd_control_xfer() and hal_dcd_control_stall()hathach
2018-03-02add tud_mount_cb, tud_umount_cbhathach
remove device class/interface callback
2018-03-01rename tud_configured() to mounted()hathach
2018-03-01device API renamehathach
2014-04-17clean up STATIC_VARhathach
2014-03-23use internal buffer for hid report descriptor as well.hathach
2014-03-23remove IAD_DESC_REQUIREDhathach
add compiler guard for exceeding number of endpoints for lpc11/13u
2014-03-22rename dcd_11u_13u_qhd_t::total_bytes to nbytes to prevent confusionhathach
introduce scsi_data to mscd_interface_t to make tusbd_msc_scsi_cb buffer's address no longer to be required in USB ram section --> save usb ram for lpc11/13u
2014-03-21clean ATTR_USB_MIN_ALIGNMENT on application and most of device except the ↵hathach
msc_device.c
2014-03-21clean up some device warningshathach
move led_blinking_task and led_blinking_set_interval to board.c
2014-03-18finish descriptor refractor for hid keyboard & mousehathach
2014-03-18app descriptor renamehathach
2014-03-10change IAR TUSB_CFG_ATTR_USBRAM to _Pragma("location=\".ahb_sram1\"") ↵hathach
instead of @ .ahb_sram1 so that we can place it before the variable for a cleaner code change pipe xfer API buffer from void* to uint8_t* change FIFO_DEF to have a separated buffer to be compatible with IAR\ refractor IAR data alignment pragma
2013-12-09add keyboard led maskhathach
make usbd control request to subtask add get/set report via control pipe to hidd enforce soft DMA to control pipe for lpc11u (lpc17xx not yet) temp add led_blinking_set_interval to change led blinking interval refractor dcd_pipe_control_xfer to have interrupt on complete option add get/set report support of moused_app and keyboardd_app, keyboard LED will make LED blink faster
2013-12-02refractor hid device driverhathach
2013-12-01change class_ixr to class_cbhathach
use IAD whenever enable CDC to make sure windows driver can detect change keyboard, mouse send report to int_on_complete = true
2013-11-21add class mounted callback for hid mouse/keyboard & refractor mouse/keyboard apphathach
2013-11-21refractor usbd-dcd callback, add bus event isrhathach
2013-11-15separate data & status from dcd_pipe_control_xferhathach
2013-11-14complete double buffering for queueing xfer for lpc11u/13u requried by msc ↵hathach
device
2013-11-13fix potential issue with stall endpointshathach
NOTE: cannot able to STALL control OUT endpoints --> unsupported with data out request may got to an issue. clean up configure, add max string descriptor configure as windows sometimes ask for string @ index 238 !!!
2013-11-13able to build and run cdc device demo on lpc11uxxhathach
2013-11-11technically, mouse + keyboard device demo also work on lpc13uxxhathach
2013-11-11adding support for lpc13uxxhathach
2013-11-06added hid device hidd_isr callbackhathach
refractor keyboard dev demo app
2013-11-01implement msc device classhathach
usbd auto stall control for not supported return from class control request usbd implement xfer isr callback mechanism DCD - implement dcd multiple qtd support - dcd dcd_pipe_stall - implement dcd_pipe_queue_xfer - xfer_complete_isr - flush control endpoint if received new setup while previous transfer is not complete change msc_cmd_block_wrapper_t flags field to dir force full speed for easy testing NOTEs: somehow unable to get endpoint IN interrupt with ioc
2013-10-30refractor hid devicehathach
add check dcd_pipe_open if endpoint is already used refractor usbd : parse and auto open class driver
2013-10-30fix dcd_data declared with TUSB_CFG_ATTR_USBRAMhathach
fix lpc43xx UM: non-control unused endpoint type should be set to different than control in ENDPTCTRL add hid mouse device fix mouse descriptor with vertical wheel support
2013-10-29able to enumerate mouse + keyboard (missing timing at set configured though)hathach
2013-10-29change device driver init to open (when configured)hathach
fix HID_REQUEST_CONTROL_SET_REPORT handle
2013-10-29temporarily implementation of dcd_pipe_is_busyhathach
2013-10-29able to fully enumerated with keyboardhathach
2013-10-29implementing sw device stackhathach
2013-10-27make device keyboard buildable & runnable with ea4357hathach
2013-10-25more doxygen workhathach
rename tusb_mouse_report_t (keyboard) to hid_mouse_report_t (keyboard)
2013-07-04no big deal, only rename tusb_std_request_t to tusb_control_request_thathach
2013-06-21[host lpc43xx] adding support for host custom classhathach
refractor usbh class driver indexing opt out periodic list code in EHCI (need to refractor/group later) [device lpc176x] rename dcd_endpoint_configure to dcd_pipe_open add usbd_pipe_open to manage pipe
2013-06-14add dcd_pipe_control_readhathach
2013-06-14implement hidd_control_request including std & class specific to interface ↵hathach
number. refractor usbd_setup_received
2013-06-12add coreid to hidd_inithathach
temporarily implement hidd_init using dcd from lpc17xx add more test for dcd lp176x implement dcd_endpoint_configure
2013-06-12clean uphathach
2013-06-04re-create ngx4330.hhathach
remove some rom driver dependency on upper layer introduce CAP_DEVICE_ROMDRIVER to overwrite TUSB_CFG_DEVICE_USE_ROM_DRIVER within the lib add support for lpc175x_6x - able to build and blink led on lpcxpresso1769 with device (without any class enabled)
2013-06-03add TUSB_CFG_PROUDCT_ID checkhathach
move USB_MAX_EP_NUM to device dependency - lpc43 --> 6 - lpc11/13 --> 5
2013-06-03refractor device mouse main.c & tusbd_hid_mouse_send_reporthathach
2013-06-03refractor tusb_descriptorshathach
usbd device_class_driver added & tested HID mouse for device (work together with hid keyboard) rename DEVICE_ROM_REG_BASE, DEVICE_ROM_DRIVER_ADDR