Commit Graph

  • 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
  • d54a12c449 add test for ehci register portsc hathach 2013-02-27 17:57:53 +07:00
  • c3c08a6106 add test for ehci register usbsts hathach 2013-02-27 17:31:51 +07:00
  • 8869d17d98 add test for EHCI register offset add test for EHCI usbcmd register structure hathach 2013-02-27 17:14:59 +07:00
  • b73e6c7a35 add test test_itd_structure & test_sitd_structure hathach 2013-02-27 16:50:05 +07:00
  • a6fac7180c add coded to test ehci alignment and structure layout (included bitfield) hathach 2013-02-27 16:19:40 +07:00
  • b1d33c7ffc rename tusbh_device_mount_succeed_cb add set configure and tusbh_device_mount_succeed_cb invocation refractor get_configure_number_for_device hathach 2013-02-27 12:42:32 +07:00
  • 5eca6d69c3 correct error using local p_interface_desc with subtask invoke (require static) hathach 2013-02-27 02:14:01 +07:00
  • 4023d07df0 add parsing configuration desc & invoke driver install subtask hathach 2013-02-27 01:57:40 +07:00
  • 49da210860 add osal subtask support add usbh_control_xfer_subtask as xfer and wait fix potential error when update device info & open control pipe for new address fix build error with hal_****.c add STATIC_ASSSERT to perform compile time checking with sizeof later update osal_queue_receive and osal_semaphore_wait for osal_none to support subtask hathach 2013-02-26 17:28:05 +07:00
  • ac744b0401 refractor use Compound Literal Reference for sending control request in enum task hathach 2013-02-22 17:14:34 +07:00
  • 5bacdc6c0f updating usbh init with class init hathach 2013-02-08 12:52:46 +07:00
  • 489b98cb93 add TUSB_CFG_HOST_CONTROLLER_START_INDEX update usbh_init and test code for TUSB_CFG_HOST_CONTROLLER_START_INDEX clean up some hathach 2013-02-08 12:12:10 +07:00
  • ef0e105da6 rename addr variable to avoid conflict with static variable hathach 2013-02-07 19:42:41 +07:00
  • 89f74d22a7 flatten enum task --> there is quite of code duplication hathach 2013-02-06 18:56:49 +07:00
  • e6ed1729b2 update enumeration up to get full configuration descriptor hathach 2013-02-06 18:12:26 +07:00
  • 060c4b3b30 refractor move device_addr0 into usbh_device_pool enum_entry contains speed and enum task will not carry out disconnection clean up hathach 2013-02-06 16:52:18 +07:00
  • 7961f04e17 remove hcd_addr0_close_Ignore add code to check error handling from enum task hathach 2013-02-06 13:50:17 +07:00
  • a253e4d648 fix TASK_ASSERT for osal_none.h add TASK_ASSERT test for osal_none integrate test project better with eclipse - assert message--> info windows - test fail --> error windows hathach 2013-02-06 13:15:12 +07:00
  • e20025b54d refractor move test enum to its own file add assert with handler add task assert with error catcher hathach 2013-02-06 12:03:01 +07:00
  • aeccdfde3f remove TUSB prefix for class enum definitions add most of HID USAGE TABLE and definitions etc ... hathach 2013-02-05 13:57:06 +07:00
  • aa040c4c98 rename device_info_pool to usbh_device_info_pool update enum task to post set address hathach 2013-02-04 21:52:50 +07:00
  • 93269b0343 fix osal_semaphore_wait & osal_queue_receive of osal_none's bug - not assign error to TUSB_ERROR_NON if succeed hathach 2013-02-04 20:54:52 +07:00
  • f88e9d045d add test file freeRTOS hathach 2013-02-04 18:07:26 +07:00
  • 5e8d70a184 complete define osal_freeRTOS for semaphore and queue hathach 2013-02-04 18:05:22 +07:00
  • dd9da7846a port osal_FreeRTOS, add some include to be able to mock & link change osal_none's queue_t member from uint16_t to uint8_t hathach 2013-02-04 17:13:26 +07:00
  • d71e244dff add TUSB_CFG_HOST_ENUM_BUFFER_SIZE add enum buffer getting serious with osal_freeRTOS hathach 2013-02-04 16:07:42 +07:00
  • 0a13e37ba2 resolve conflict between usbh & hcd hathach 2013-02-04 14:48:35 +07:00
  • 4f3b76caba rename test file for usbh hathach 2013-02-04 13:54:14 +07:00
  • 94486f55ec add usbh_hcd to hold common structure/typedef for usbh and hcd hathach 2013-02-04 13:51:20 +07:00
  • a5b29c5d33 refractor include chain with following policies - header file only include what it needs for its declarations. hathach 2013-02-04 13:13:07 +07:00
  • 5ec56120e6 rename usbd_host to usbh hathach 2013-02-04 12:29:50 +07:00
  • 5f8839fff8 refine ASSERT_DEFINE to allow special error_handler for os task add device_addr0 for enumeration task start to add osal port for freeRTOS hathach 2013-02-04 00:03:08 +07:00
  • 3ac88f1b4e refine OSAL_TASK_LOOP_BEGIN & OSAL_TASK_LOOP_END - add TASK_ASSERT & TASK_ASSERT_STATUS add more code for enumerate task add control requests & its type def add API for HCD - hcd_pipe_addr0_open - hcd_pipe_control_open - hcd_pipe_control_xfer - hcd_pipe_open - hcd_port_speed hathach 2013-02-02 15:36:20 +07:00
  • a25da9d3ee house keeping add some more logic for enum task hathach 2013-02-01 14:21:22 +07:00
  • 7fc3e4f8fe house keeping hathach 2013-02-01 12:46:17 +07:00
  • c24d461d19 add timeout to queue_receive and update test code for it hathach 2013-02-01 12:39:39 +07:00
  • aab92b40d2 change osal_timeout_t to uint32_t implement osal_tick_get & osal_tick_tock for osal_none implement timeout for osal_semaphore_wait hathach 2013-02-01 12:00:34 +07:00
  • 9e3785e7e1 add std=gnu99 for test build add hcd_init to usbh_init and update test code add TUSB_CFG_OS_TICK_PER_SECOND define for TUSB_OS_NONE change osal_semaphore_wait and osal_queue_receive API to have timeout effectively hathach 2013-02-01 10:33:43 +07:00
  • 1b963f6a71 change cmock ignore to args only implementing usbh_host.c hathach 2013-01-31 13:11:50 +07:00
  • bef17fb67f add version macros hathach 2013-01-31 11:47:07 +07:00
  • eca87e5ee5 add ASSERT_BIN8 and its test code add some common api for task in osal.h for mocking hathach 2013-01-31 11:05:33 +07:00
  • 658b2b970c change semaphore to volatile uint8_t add osal_queue_receive code and its test *NOTE* - consideration for semaphore & queue with hal_interrupt_disable/hal_interrupt_enable as safe guard hathach 2013-01-30 23:29:27 +07:00
  • c1bf187dad add osal queue service & its test code - create, send hathach 2013-01-30 17:53:37 +07:00
  • 9c9fa182d4 fix mocking osal api using ifdef start to add task_create macro API for osal_none hathach 2013-01-30 12:55:44 +07:00
  • 07048b943e add primitive_types.h for portable with uint8,16,32_t, and bool add osal_common.h to ease the complaint of MISRA 19.1 implement OSAL_NONE Task loop, semaphore wait/post and its test code hathach 2013-01-30 11:35:37 +07:00
  • 6db8af2023 update usbh_init and test hathach 2013-01-29 11:06:30 +07:00
  • 06f923c7bb add usbh_device_info_t to return device status add usbh_init and test code replace usbh_device_is_plugged in hid_host and test_hid_host with usbh_device_info_t hathach 2013-01-27 17:57:35 +07:00
  • 36dbd52870 house keeping hathach 2013-01-27 16:28:49 +07:00
  • b57e6e1121 configure unity a bit hathach 2013-01-27 16:26:25 +07:00
  • 9a1bda1633 house keeping hathach 2013-01-27 16:19:18 +07:00
  • 535f330026 update license year from 2012 to 2013 hathach 2013-01-27 13:50:40 +07:00
  • f613c32422 add STATIC for local variables hathach 2013-01-27 13:16:30 +07:00
  • a22cfb2dee remove violation MISRA 6.3 on errors hathach 2013-01-27 12:38:06 +07:00
  • 5feb1c90b4 add class_hid_keyboard_init and test code add define _TINY_USB_SOURCE_FILE_ to hide internal API from application hathach 2013-01-27 12:18:01 +07:00
  • d286c95765 add check device API for stack usage bool usbh_device_is_plugged(tusb_handle_device_t const device_hdl); hathach 2013-01-26 02:25:56 +07:00