Commit Graph

6007 Commits

Author SHA1 Message Date
hathach 3ed29f5f3c add test & code for hcd_pipe_control_open 2013-03-05 14:26:36 +07:00
hathach 2c8596edeb abstract call chains from hal usb isr 2013-03-04 18:46:02 +07:00
hathach a259be6edf refractor
- remove TUSB_CFG_HOST_CONTROLLER_START_INDEX
2013-03-04 18:01:05 +07:00
hathach e1033b9b3c replace TUSB_CFG_HOST by MODE_HOST_SUPPORTED
move stuffs around
2013-03-04 17:07:14 +07:00
hathach 94c004724c allow configure host/device by controller basic
- make changes to adapt
add mcu_capacity.h
2013-03-04 16:21:41 +07:00
hathach 656da2992d add alignof to compilier specific
add static_assert support for IAR (built-in support)
2013-03-04 15:01:33 +07:00
hathach 5207875add sperate tests 2013-03-04 01:00:25 +07:00
hathach 9a8dc0a26d rename 2013-03-04 00:54:53 +07:00
hathach d644eaeb5c add test for hcd/host init
- TT control
- usb cmd
complete hcd/host initialization code
2013-03-04 00:46:40 +07:00
hathach 74e6b545e1 house keeping 2013-03-03 15:36:53 +07:00
hathach 0f7eb8c38d add test for hcd/host init period list 2013-03-03 15:32:04 +07:00
hathach 72b42054e5 refractor 2013-03-03 12:37:44 +07:00
hathach 356c329922 implement hcd_init controller_init
- add test for async list
2013-03-03 12:31:18 +07:00
hathach 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
2013-03-02 00:09:24 +07:00
hathach 68ff7365c5 rename ehci usb_int usb_sts usb/error field
move MCU define to tusb_option.h
2013-03-01 19:32:53 +07:00
hathach 795fe7468d start to add code for hcd_init test
change hcd_init signature (omit hostid)
2013-02-28 17:00:51 +07:00
hathach 82bd4719ce continue to strengthen include policy 2013-02-28 15:58:18 +07:00
hathach d6548d0063 strengthen include policy. Only limited headers are allowed to included from a header file. Missing needed to be included in *.c 2013-02-28 15:06:31 +07:00
hathach f56f6b6749 add timeout_timer.h to provide real tick timeout service for blocking control 2013-02-27 20:58:11 +07:00
hathach 594fc6771c make osal_tick_get, osal_tick_tock static inline 2013-02-27 20:13:49 +07:00
hathach 0c397c6b8d house keeping
- correct initialization call sequence
- move hcd_init to ehci.c
2013-02-27 18:49:28 +07:00
hathach d54a12c449 add test for ehci register portsc 2013-02-27 17:57:53 +07:00
hathach c3c08a6106 add test for ehci register usbsts 2013-02-27 17:31:51 +07:00
hathach 8869d17d98 add test for EHCI register offset
add test for EHCI usbcmd register structure
2013-02-27 17:14:59 +07:00
hathach b73e6c7a35 add test test_itd_structure & test_sitd_structure 2013-02-27 16:50:05 +07:00
hathach a6fac7180c add coded to test ehci alignment and structure layout (included bitfield) 2013-02-27 16:19:40 +07:00
hathach b1d33c7ffc rename tusbh_device_mount_succeed_cb
add set configure and tusbh_device_mount_succeed_cb invocation
refractor get_configure_number_for_device
2013-02-27 12:42:32 +07:00
hathach 5eca6d69c3 correct error using local p_interface_desc with subtask invoke (require static) 2013-02-27 02:14:01 +07:00
hathach 4023d07df0 add parsing configuration desc & invoke driver install subtask 2013-02-27 01:57:40 +07:00
hathach 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
2013-02-26 17:28:05 +07:00
hathach ac744b0401 refractor use Compound Literal Reference for sending control request in enum task 2013-02-22 17:14:34 +07:00
hathach 5bacdc6c0f updating usbh init with class init 2013-02-08 12:52:46 +07:00
hathach 489b98cb93 add TUSB_CFG_HOST_CONTROLLER_START_INDEX
update usbh_init and test code for TUSB_CFG_HOST_CONTROLLER_START_INDEX
clean up some
2013-02-08 12:12:10 +07:00
hathach ef0e105da6 rename addr variable to avoid conflict with static variable 2013-02-07 19:42:41 +07:00
hathach 89f74d22a7 flatten enum task --> there is quite of code duplication 2013-02-06 18:56:49 +07:00
hathach e6ed1729b2 update enumeration up to get full configuration descriptor 2013-02-06 18:12:26 +07:00
hathach 060c4b3b30 refractor move device_addr0 into usbh_device_pool
enum_entry contains speed and enum task will not carry out disconnection clean up
2013-02-06 16:52:18 +07:00
hathach 7961f04e17 remove hcd_addr0_close_Ignore
add code to check error handling from enum task
2013-02-06 13:50:17 +07:00
hathach 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
2013-02-06 13:15:12 +07:00
hathach e20025b54d refractor move test enum to its own file
add assert with handler
add task assert with error catcher
2013-02-06 12:03:01 +07:00
hathach aeccdfde3f remove TUSB prefix for class enum definitions
add most of HID USAGE TABLE and definitions etc ...
2013-02-05 13:57:06 +07:00
hathach aa040c4c98 rename device_info_pool to usbh_device_info_pool
update enum task to post set address
2013-02-04 21:52:50 +07:00
hathach 93269b0343 fix osal_semaphore_wait & osal_queue_receive of osal_none's bug
- not assign error to TUSB_ERROR_NON if succeed

add code up to set device address for enumeration
2013-02-04 20:54:52 +07:00
hathach f88e9d045d add test file freeRTOS 2013-02-04 18:07:26 +07:00
hathach 5e8d70a184 complete define osal_freeRTOS for semaphore and queue 2013-02-04 18:05:22 +07:00
hathach 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
2013-02-04 17:13:26 +07:00
hathach d71e244dff add TUSB_CFG_HOST_ENUM_BUFFER_SIZE
add enum buffer
getting serious with osal_freeRTOS
2013-02-04 16:07:42 +07:00
hathach 0a13e37ba2 resolve conflict between usbh & hcd 2013-02-04 14:48:35 +07:00
hathach 4f3b76caba rename test file for usbh 2013-02-04 13:54:14 +07:00
hathach 94486f55ec add usbh_hcd to hold common structure/typedef for usbh and hcd 2013-02-04 13:51:20 +07:00