summaryrefslogtreecommitdiff
path: root/tinyusb/host/usbh.c
AgeCommit message (Collapse)Author
2018-03-05reame SUBTASK_EXIT to SUBTASK_RETURNhathach
2018-03-01more clean uphathach
2018-03-01osal macro clean uphathach
2018-03-01more osal clean uphathach
2018-03-01change osal_task_create signaturehathach
2018-03-01clean up osal semaphore/queue/mutexhathach
2018-02-28refactor osal queue APIhathach
2018-02-28more clean uphathach
2015-05-01tusbh_device_ to tuh_device_hathach
2014-04-28make freertos source unmodified to ease the upgrade process laterhathach
use CGU_GetPCLKFrequency as configCPU_CLOCK_HZ for lpc43xx using with freeRTOS move portmarco.h include to FreeRTOSConfig.h to have untouched version of freertos add a readme.md to vendor/freertos refractor usbh.c, increase POWER_STABLE_DELAY = 500, RESET_DELAY = 200 fix bug with hub, only handle 1 port at a time when reading hub status change endpoint --> other port will be handled in the next cycle
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-18move osal_queue_send of osal_none to osal_none.chathach
2014-04-17clean up STATIC_VARhathach
2014-03-19#define SVCall_Handler SVC_Handler in lpcxpresso startup for lpc175x_6x & ↵hathach
lpc11uxx for better compatiable with other lib & toolchain. added lpc176x xpresso with cmsis rtx
2014-03-19change OSAL_TASK_FUNCTION to adapt with cmsis rtxhathach
2014-03-18app descriptor renamehathach
2014-03-14clean more warningshathach
2014-03-14clean up warning in lpcxpressohathach
remove -Wpacked -Wpadded in gcc
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-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
2014-02-28refractor remove tusbh_msc_is_failedhathach
increase usbh enum task from 150 to 200 due to stack overflow when mounting msc device added task for msc host freeRTOS with stack = 300 (still cannot execute copy command)
2014-02-28EHCI: immediately reset port when device connected. This proves to help ↵hathach
prevent duplication connection event (also with OHCI) increase delay after reset to 100 ms (NXP's EHCI does not work with 50ms) --> fix all duplication connection with OHCI & EHCI
2014-02-20fix the duplicated plug connection status change with lpc17xx by using ↵hathach
immediate reset on isr. However Khanh's G5 mouse is not enumerated !! remove TUSB_CFG_CONFIGURATION_MAX from config file fix some warning
2013-12-19remove immediately reset when device plug.hathach
check to make sure device is still plug after initial delay (200ms) before reset remove blocking waiting when reset in ehci.c
2013-12-19fix plug & unplug issue by reseting port immediately instead of waiting for ↵hathach
usbh enumeration task to do so
2013-12-18implement hcd_pipe_close, able to plug & unplug device from ohci lpc17xxhathach
2013-12-16implement ohcihathach
- hcd_port_reset - hcd_port_connect_status - hcd_port_speed_get - hcd_pipe_control_open - hcd_pipe_control_xfer - done_queue_isr for control xfer able to go through enumeration with MSC device
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-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-27static assert to check OSAL_QUEUE_DEF's queue_depth parameter < 256hathach
enable HOST_HCD_XFER_INTERRUPT by default (previously only enabled with HID), as it is widely used implement tusbh_cdc_is_busy add compilation switch in usbh enumeration for hub rewrite CDC serial application to address usb-serial race condition
2013-10-16refractor hub apihathach
fix all test build errors
2013-10-02update freertos projecthathach
temp hack to fix problem with no TD on status endpoint of hub in case of error
2013-10-01- move disconnection handle to enum task --> move tusbh_xxx_unmount is ↵hathach
invoked in non-isr context
2013-10-01ignore multiple level of hubhathach
2013-10-01handle unplug the hub itselfhathach
2013-10-01refractor hubhathach
2013-10-01refractor hubhathach
2013-09-30hack ehci advance async to handle disconnect via hubhathach
2013-09-30refractor hubhathach
2013-09-30refractor hubhathach
2013-09-30able to mount one device on the hubhathach
2013-09-24allow a limited model to deal with stalled pipe/transactionhathach
added stall clear & able to mount the stupid toshiba thumb drive add HCD pipe API - bool hcd_pipe_is_busy(pipe_handle_t pipe_hdl); - bool hcd_pipe_is_stalled(pipe_handle_t pipe_hdl); - uint8_t hcd_pipe_get_endpoint_addr(pipe_handle_t pipe_hdl); - tusb_error_t hcd_pipe_clear_stall(pipe_handle_t pipe_hdl); remove tusbh_device_mount_failed_cb (not neccessary for user)
2013-09-21house keeping, clean up warningshathach
2013-09-21house keepinghathach
2013-09-21remove ATTR_WEAK for all necessary driver callbackhathach
fix ceedling tests
2013-09-20start to add msc host, fix dangerous problem with unstable device when ↵hathach
plugged --> 200 ms delay. 50ms delay after each port reset
2013-09-20refine hid host driverhathach
2013-09-19starting to add support for IAR workbenchhathach