summaryrefslogtreecommitdiff
path: root/tinyusb/host/usbh.c
AgeCommit message (Collapse)Author
2018-06-18rename subfolder source to srchathach
2018-04-13rename CFG_TUSB_OS_TASK_PRIO to CFG_TUD_TASK_PRIO, TUC_DEVICE_STACKSIZE to ↵hathach
CFG_TUD_TASK_STACKSIZE
2018-04-12rename ASSERT_ERR to TU_ASSERT_ERR to prevent conflict with user codehathach
2018-04-10mass rename TUSB_CFG to CFG_TUSBhathach
2018-03-29rename ASSERT_STATUS to ASSERT_ERR, merge assertion.h to verify.hhathach
2018-03-29more verify and assert clean uphathach
2018-03-29assert clean uphathach
2018-03-29clean up assert and verifyhathach
2018-03-28rename ASSERT to TU_ASSERT to avoid name conflicthathach
2018-03-23shorten descriptor typehathach
2018-03-22rename osal SUBSTASK to STASKhathach
2018-03-21osal subtask renamehathach
2018-03-21rename TUSB_REQUEST to simply TUSB_REQ_hathach
2018-03-14rename OSAL_SUBTASK_INVOKEDhathach
2018-03-12more renamehathach
2018-03-11shorten TUSB_DESC_TYPE*hathach
2018-03-11tusb_type renamehathach
2018-03-11rename TUSB_DIR_OUT, TUSB_DIR_INhathach
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