Commit Graph

  • 45db7b4a53 able to build test hidh hack include in hid_host_keyboard.h hathach 2013-03-25 13:51:44 +07:00
  • ddeec330fa separate hidh_keyboard from hid_host move test hid related to its own folder hathach 2013-03-25 13:08:40 +07:00
  • 56cd8be75e change website from tinyusb.net to tinyusb.org hathach 2013-03-25 11:46:30 +07:00
  • 20a22d956d changing the hcd_pipe_close behavior - bulk/int/iso pipe can only be closed as part of unmount/safe remove process add test for interrupt_close hathach 2013-03-25 10:56:51 +07:00
  • b15694bc5f fix potential bug when insert new queue head to list hathach 2013-03-24 22:24:27 +07:00
  • 62f5ec8a0f period_frame_list0 is not existed if period list is not required hathach 2013-03-24 21:53:41 +07:00
  • c7c993d6cc refractor hidh keyboard changing class hidh behavior hathach 2013-03-24 21:40:49 +07:00
  • a1b17be681 add class flags change keyboard_info_pool to keyboard_data hathach 2013-03-24 17:29:07 +07:00
  • 92c137243d refractor - rename usbh_device_info_pool to usbh_devices - create a struct for control pipe in usbh_device_info_t hathach 2013-03-24 16:44:59 +07:00
  • ea04815bbc rename sem_hdl in usbh_device_info_t control_sem_hdl hathach 2013-03-24 16:22:58 +07:00
  • 55ce5cc4a2 add TUSB_DEVICE_STATE_INVALID_PARAMETER to tusb_device_state_t hathach 2013-03-24 16:05:50 +07:00
  • 439a3134b9 refractor - rename tusbh_device_status_get to tusbh_device_get_state - replace tusbh_device_status_t by tusb_device_state_t hathach 2013-03-24 16:02:45 +07:00
  • ce63980386 clean up: - refractor tusb_handle_device_t device_hdl to uint8_t dev_addr hathach 2013-03-24 15:50:49 +07:00
  • 9c5ffa9932 house keeping hathach 2013-03-24 14:32:54 +07:00
  • e6630af5a4 clean up hathach 2013-03-23 23:43:25 +07:00
  • 0c5e0ef0f3 - add control_pipe_status for usbh_device_info_t to reflect the status transfer of control pipe - fix bug with hcd_port_reset + remove regs->portsc_bit.port_enable in the wait loop as device unplugged can cause this to always fails - correct the timeout for hcd_controll_stop/reset 16 uframes ~ 2 ms - potentially fix bugs device unplugged when new address is not assigned hathach 2013-03-23 18:36:43 +07:00
  • 44e09cc397 enhance some tests add test for usbh_isr error invoke fix bug if device unplugged before is set to new address - clean up & close control addr0 in usbh_device_unplugged_isr hathach 2013-03-23 17:31:51 +07:00
  • 4adfc6a6d8 change signature usbh_isr to add tusb_bus_event_t parameter change singature of call_isr as well hathach 2013-03-23 15:00:56 +07:00
  • e6b8166a58 house keeping hathach 2013-03-23 14:18:17 +07:00
  • e14864759d refractor - rename TUSB_DEVICE_STATE_READY to TUSB_DEVICE_STATE_CONFIGURED - move device_state to core/tusb_types.h - remove usbh_device_hcd_data_cleaned_up_cb, hcd now set the state directly hathach 2013-03-23 12:13:02 +07:00
  • d7ba86c85e refractor - rename usbh_device_info_t.status to state - rename enum TUSB_DEVICE_STATUS_* to TUSB_DEVICE_STATE_* hathach 2013-03-23 11:34:51 +07:00
  • 0c6d406ddf - house keeping - add controller id for hal_interrupt_enable/disable hathach 2013-03-23 10:56:41 +07:00
  • ae9b9ead7a continue clean up ehci hathach 2013-03-23 10:23:37 +07:00
  • 58b252b3f1 clean up ehci hathach 2013-03-23 10:14:47 +07:00
  • 8beb749761 clean up hathach 2013-03-23 09:57:08 +07:00
  • 660440d69c refractor extract to function qtd_remove_1st_from_qhd hathach 2013-03-23 02:56:17 +07:00
  • eddaa8394b fix issue with Interrupt Async Advance - only acknowledge interrupt that we check hathach 2013-03-23 02:51:41 +07:00
  • 53a4164b39 use DO PING for highspeed out bulk hathach 2013-03-22 21:50:07 +07:00
  • 397d62db10 fix bug: adjust all bulk queue head from ehci_data.device hathach 2013-03-22 21:21:00 +07:00
  • f6acca6664 add callback for hcd when it cleaned up all cache data for a device (previously mark as removing). hathach 2013-03-22 18:55:45 +07:00
  • 6b276d09bf house keeping for pipe API test code hathach 2013-03-22 17:45:03 +07:00
  • 45c94c2aa9 test code clean up hathach 2013-03-22 17:36:59 +07:00
  • cf98cdeaa2 refractoring test code hathach 2013-03-22 17:34:59 +07:00
  • 9d4327f5bd start to clean up test code hathach 2013-03-22 17:10:38 +07:00
  • dbaf6c0d30 - fix bug when unplugged unmounted-already device (mostly plugged when power on) - add hal_debugger_is_attached & hal_debugger_breakpoint - assert will suspend (place breakpoint) if the condition is failed and debugger is attached. Otherwise, a message to uart is printed - fix get control qhd function when dev_addr is not zero (shifted 1) - fix wrong logic for unsupported class hathach 2013-03-22 17:08:51 +07:00
  • cd2915e78c house keeping hathach 2013-03-13 21:45:06 +07:00
  • 9bc30f7694 add some test for usbh_hcd integration - add tests for pipe_close (while TDs are active) - add tests for device unplugged add tesst & implement the async_advance_isr to clean up "REMOVING" queue head - add helper find previous qhd - add remove qhd from async list - add is_removing field for async advance isr to clean up add pipe close for control pipe & bulk pipe (with tests) add helper get qhd from pipe_handle hathach 2013-03-13 21:42:19 +07:00
  • dbd3d9618d refractor rename field inactive_next_xact of ehci_qhd_t hathach 2013-03-13 12:29:44 +07:00
  • 1a932e7437 refractor ehci test files adding some code for async_advance_isr add test for async_advance_isr hathach 2013-03-13 12:25:27 +07:00
  • 97c436a16e add usbh_pipe_control_close (in conjunction with usbh pipe control open) close control pipe when unplugged hathach 2013-03-13 11:20:02 +07:00
  • 97c9001d40 add hard fault handler to bsp.c rename class_install_subtask to class_open_subtask add class_close for unmount adding code for usbh_device_unplugged_isr & invoke it in hcd_isr hathach 2013-03-13 10:57:30 +07:00
  • 63765b37c7 forget to add test file for ehci isr hathach 2013-03-13 00:17:02 +07:00
  • 79e277d323 go through all the enumeration (up to get full configuration) - fix init_qhd for address 0 (clear queue head --> ehci controller halted) - fix bug in usbh_init missing address0 for semaphore create hathach 2013-03-13 00:02:45 +07:00
  • d2bd80109e add semaphore post in usbh_isr for control pipe add osal_queue_send in usbh_device_plugged add macro for placing breakpoint macros fix ehci init: - regs->cmd or (add run_stop) - enable port power in portsc add tusb_task_runner in main loop hathach 2013-03-12 20:04:29 +07:00
  • 60c2caf84a implement port hcd_port_connect_status clean up hathach 2013-03-12 16:46:47 +07:00
  • 80facf6f2e add isr api for usbh_hcd - void usbh_device_plugged_isr(uint8_t hostid, tusb_speed_t speed); - void usbh_device_unplugged_isr(uint8_t hostid); hathach 2013-03-12 16:42:19 +07:00
  • c6b220c327 update keil file hathach 2013-03-12 15:08:35 +07:00
  • 453ea39865 add project file for keil fix binary.h compiler specific add hal_init code to reset & set usbmode --> able to get USB ISR remove const qualifier from return function of - get_operational_register - get_period_frame_list - get_async_head - get_period_head - get_control_qhd add stub for - hcd_port_connect_status - hcd_port_speed hathach 2013-03-12 12:06:40 +07:00
  • 38ff7123b4 add semaphore reset & queue flush API for osal add semaphore reset when opening control pipe hathach 2013-03-12 00:10:52 +07:00
  • 8eaad2326b add semphore reset & queue flush API modify test to check control pipe semaphore created with usbh_init hathach 2013-03-11 12:00:25 +07:00
  • c1ceec067f add isr empty function for hidh and msch and usbh hathach 2013-03-10 19:42:50 +07:00
  • 3b0b48e01a - add test code for bulk xfer isr - fix mismatch type func return hathach 2013-03-10 19:28:38 +07:00
  • 0e845947ce rename hathach 2013-03-10 18:17:57 +07:00
  • c1848b8114 add code for ehci interrupt handler - interrupt source identifying - for async list process refractor control_xfer to use insert_qtd_to_qhd - add test for control xfer interrupt processing - add code for faking ehci controller async list scheduling & processing - add prototype for void usbh_isr(pipe_handle_t pipe_hdl, uint8_t class_code); hathach 2013-03-10 17:51:53 +07:00
  • 889f267e12 rename file hathach 2013-03-10 07:21:54 +07:00
  • 8457585464 add class code to hcd_pipe_open to facilitate usb_complete callback hathach 2013-03-09 21:37:49 +07:00
  • 96c92afb32 rename init_qtd, init_qhd hathach 2013-03-09 15:43:14 +07:00
  • b833203528 house keeping hathach 2013-03-09 14:38:35 +07:00
  • ef9eb1f2fa - fix wrong class code for TUSB_CLASS_APPLICATION_SPECIFIC hathach 2013-03-09 14:31:37 +07:00
  • 2364b09f80 add int_on_complete parameter to hcd_pipe_xfer for TD chain class request fix control transfer request: remove get_control_request_ptr() hathach 2013-03-09 14:19:40 +07:00
  • b1db85dedf - addd p_qtd_list_tail to qhd structure for easy queue TD - move control_request from ehci_data to usbh_device_info_pool - add test for bulk transfer double (2 consecutive xfers) - use table (array) structure for class driver, currently included - refractor extract to function insert_qtd_to_qhd + init function + install_subtask --> all class driver function must be declared with WEAK hathach 2013-03-09 13:11:02 +07:00
  • b146730306 add test code & hcd_pipe_xfer for bulk transfer - test cross 4k boundary test for bulk transfer rename p_qtd_list to p_qtd_list_head hathach 2013-03-07 19:54:00 +07:00
  • 644f0d3932 make "used" member of ehci_qtd_t into reserved place of buffer[1] (with assert check in hcd init) hathach 2013-03-07 17:59:07 +07:00
  • 1b610cf26f refractor list_insert hathach 2013-03-07 16:40:01 +07:00
  • 6d30ae1f32 guard check for open iso pipe hathach 2013-03-07 16:10:16 +07:00
  • 66586ffb08 re-layout ehci_data_t to get better memory consumption hathach 2013-03-07 16:06:28 +07:00
  • ef08654e73 add prototype for hcd_pipe(control)_close - update test code for enum task respectively hathach 2013-03-06 22:41:14 +07:00
  • 5c3bd1f8dc add code & test for hcd_pipe_open interrupt high and non-highspeed hathach 2013-03-06 22:21:42 +07:00
  • 7557a807a9 basically finish code for control transfer & test code hathach 2013-03-06 16:24:32 +07:00
  • f38fed3529 pass test for setup TD hathach 2013-03-06 15:39:37 +07:00
  • 685fb97086 rename fields in ehci_qtd_t hathach 2013-03-06 15:08:09 +07:00
  • 959311532e refractor - rename some field in ehci_qhd/qtd_t - code test for open pipe hathach 2013-03-06 14:55:02 +07:00
  • ef1cef5019 refractor ehci_data_t separate tests for pipe open & pipe xfer hathach 2013-03-06 14:25:26 +07:00
  • 97a4a41b82 refractor - remove unnecessary assign next pointer of asyn/period head in hcd_controller_init hathach 2013-03-06 11:24:20 +07:00
  • c2b9e1ef83 add some code & testcode for hcd_pipe_control_xfer hathach 2013-03-06 03:03:59 +07:00
  • 71fcf20a95 fix error - remove p_qhd->qtd_overlay.halted = 1; hathach 2013-03-06 01:46:01 +07:00
  • 5b401cc517 refractor hcd_open hathach 2013-03-06 00:29:10 +07:00
  • b3775b631b add test & code for open bulk transfer to hcd_pipe_open() hathach 2013-03-05 23:08:00 +07:00
  • c0bbc2aded refractor tests hathach 2013-03-05 15:23:12 +07:00
  • 3ed29f5f3c add test & code for hcd_pipe_control_open hathach 2013-03-05 14:26:36 +07:00
  • 2c8596edeb abstract call chains from hal usb isr hathach 2013-03-04 18:46:02 +07:00
  • a259be6edf refractor - remove TUSB_CFG_HOST_CONTROLLER_START_INDEX hathach 2013-03-04 18:01:05 +07:00
  • e1033b9b3c replace TUSB_CFG_HOST by MODE_HOST_SUPPORTED move stuffs around hathach 2013-03-04 17:07:14 +07:00
  • 94c004724c allow configure host/device by controller basic - make changes to adapt add mcu_capacity.h hathach 2013-03-04 16:21:41 +07:00
  • 656da2992d add alignof to compilier specific add static_assert support for IAR (built-in support) hathach 2013-03-04 15:01:33 +07:00
  • 5207875add sperate tests hathach 2013-03-04 01:00:25 +07:00
  • 9a8dc0a26d rename hathach 2013-03-04 00:54:53 +07:00
  • d644eaeb5c add test for hcd/host init - TT control - usb cmd complete hcd/host initialization code hathach 2013-03-04 00:46:40 +07:00
  • 74e6b545e1 house keeping hathach 2013-03-03 15:36:53 +07:00
  • 0f7eb8c38d add test for hcd/host init period list hathach 2013-03-03 15:32:04 +07:00
  • 72b42054e5 refractor hathach 2013-03-03 12:37:44 +07:00
  • 356c329922 implement hcd_init controller_init - add test for async list hathach 2013-03-03 12:31:18 +07:00
  • 5d3e9c4b96 add "mocking" version of LPC43xx.h - redirect LPC_USB0_BASE & LPC_USB1_BASE to the address of test object add test for ehci initialization usbint register hathach 2013-03-02 00:09:24 +07:00
  • 68ff7365c5 rename ehci usb_int usb_sts usb/error field move MCU define to tusb_option.h hathach 2013-03-01 19:32:53 +07:00
  • 795fe7468d start to add code for hcd_init test change hcd_init signature (omit hostid) hathach 2013-02-28 17:00:51 +07:00
  • 82bd4719ce continue to strengthen include policy hathach 2013-02-28 15:58:18 +07:00
  • d6548d0063 strengthen include policy. Only limited headers are allowed to included from a header file. Missing needed to be included in *.c hathach 2013-02-28 15:03:18 +07:00
  • f56f6b6749 add timeout_timer.h to provide real tick timeout service for blocking control hathach 2013-02-27 20:58:11 +07:00
  • 594fc6771c make osal_tick_get, osal_tick_tock static inline hathach 2013-02-27 20:13:49 +07:00
  • 0c397c6b8d house keeping - correct initialization call sequence - move hcd_init to ehci.c hathach 2013-02-27 18:49:28 +07:00