summaryrefslogtreecommitdiff
path: root/tinyusb/device/usbd.c
AgeCommit message (Collapse)Author
2018-02-28osal clean uphathach
- task create, task def macros
2017-08-03clean uphathach
2015-05-01formattinghathach
2014-04-24added all assert check to osal_queue_send and osal_semaphore_posthathach
2014-04-24correct dcd_pipe_is_busy to use list_qtd_idx[] instead of qtd_overlayhathach
flush usbd_queue_hdl when bus_reset add assert check for osal_queue_send increase ENUM_QUEUE_DEPTH for usbh change osal_freeRTOS.h implementation to - correctly waiting forever for semaphore wait, queue & mutex - not use ISR safe version since it is not as generic as we want
2014-04-21clean up code at usbd_setup_received_isrhathach
2014-04-21minor adjustment to dcd_lpc43xx.chathach
usbd still defer setup received and handle in usbd task since the problem is caused by usb mini otg on the board EA4357.
2014-04-09remove OSAL_VAR for the simplicityhathach
clean up osal.h
2014-04-04remove RF1GHZNODE from board/readme.mdhathach
dcd_lpc43xx.c - assign ENDPTPRIME with = instead of |= - fix bug with control transfer the determination of complete transferred --> fix keyboard + msc causes fast blinking add osal_semaphore_reset(usbd_control_xfer_sem_hdl) when bus_reset
2014-03-31refractor usbd_task as wrapper for body taskhathach
IAR device_freertos works well except for CDC with typing many characters (like Keil)
2014-03-23finished using usbd_enum_buffer for all std descriptorshathach
2014-03-23remove TUSB_CFG_DEVICE_STRING_DESCRIPTOR_COUNThathach
refractor descriptor to array of pointer, adding interface descriptor as well
2014-03-23adding usbd_enum_buffer to usbdhathach
remove string descriptor USB RAM requirement
2014-03-19change OSAL_TASK_FUNCTION to adapt with cmsis rtxhathach
2014-03-18finish descriptor refractor for hid keyboard & mousehathach
2014-03-18refractor descriptor passing for device with user-friendly structureshathach
2014-03-18app descriptor renamehathach
2014-03-18clean up tusb_descriptorshathach
2014-03-14fix out of range array in usbdhathach
2014-03-14fix warning for device os nonehathach
2014-03-12fix iar warninghathach
2014-03-10change desc_str_table to array of pointer of uint8_t* to be compatible with ↵hathach
IAR (lack of support for VLA initialization) IAR device os none works with ea4357
2014-02-19some code clean uphathach
NOTE: host on ea4357 does not work anymore
2014-01-24clean up warningshathach
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-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-26change endian conversion to native to be & be to nativehathach
completely deferred xfer isr event to usbd task complete read10, write10 sequence for large data transfer
2013-11-25refractor usbd taskhathach
move control request data into task event adding tusbd_msc_read10_cb, tusbd_msc_write10_cb (not fully supported)
2013-11-25change MCU to TUSB_CFG_MCUhathach
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-20fixed dcd lpc17xx queue transfer & IOC handlinghathach
able to run MSC demo
2013-11-18get lpc17xx running through enumeration (with control data < 64)hathach
2013-11-15IAD supporthathach
2013-11-15add semaphore for control xfer for > 64 support for some mcu such as ↵hathach
lpc11u/lpc17xx
2013-11-15refractor usbd's get descriptorhathach
2013-11-15separate data & status from dcd_pipe_control_xferhathach
2013-11-15refractor usbd, first step to make get configuration as sub taskhathach
2013-11-15add usbd_task to handle event task eg setup receivedhathach
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-11adding support for lpc13uxxhathach
2013-11-08add windows driver for cdchathach
add simple echo cdc serial demo add cdc device send/receive API refractor descriptor refractor cdc.h add usbd driver function - init - bus_reset
2013-11-07clean up tusb_descriptorshathach
2013-11-06refractor dcd_controller_reset & hcd_controller_reset to hal_controller_resethathach
2013-11-01add dcd pipe clear stallhathach
- tusb_error_t dcd_pipe_clear_stall(uint8_t coreid, uint8_t edpt_addr) but does not take endpoint_handle_t as input complete msc device driver add usbd clear stall endpoint
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-30clean uphathach
2013-10-30refractor hid devicehathach
add check dcd_pipe_open if endpoint is already used refractor usbd : parse and auto open class driver