Commit Graph

91 Commits

Author SHA1 Message Date
hathach 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
2013-03-12 12:06:40 +07:00
hathach 38ff7123b4 add semaphore reset & queue flush API for osal
add semaphore reset when opening control pipe
2013-03-12 00:10:52 +07:00
hathach 8eaad2326b add semphore reset & queue flush API
modify test to check control pipe semaphore created with usbh_init
2013-03-11 12:00:25 +07:00
hathach c1ceec067f add isr empty function for hidh and msch and usbh 2013-03-10 19:42:50 +07:00
hathach 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);
2013-03-10 17:51:53 +07:00
hathach 8457585464 add class code to hcd_pipe_open to facilitate usb_complete callback 2013-03-09 21:37:49 +07:00
hathach 96c92afb32 rename init_qtd, init_qhd 2013-03-09 15:43:14 +07:00
hathach b833203528 house keeping 2013-03-09 14:38:35 +07:00
hathach ef9eb1f2fa - fix wrong class code for TUSB_CLASS_APPLICATION_SPECIFIC 2013-03-09 14:31:37 +07:00
hathach 2364b09f80 add int_on_complete parameter to hcd_pipe_xfer for TD chain class request
fix control transfer request: remove get_control_request_ptr()
2013-03-09 14:19:40 +07:00
hathach 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
2013-03-09 13:11:02 +07:00
hathach 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
2013-03-07 19:54:00 +07:00
hathach 644f0d3932 make "used" member of ehci_qtd_t into reserved place of buffer[1] (with assert check in hcd init) 2013-03-07 17:59:07 +07:00
hathach 1b610cf26f refractor list_insert 2013-03-07 16:40:01 +07:00
hathach 6d30ae1f32 guard check for open iso pipe 2013-03-07 16:10:16 +07:00
hathach 66586ffb08 re-layout ehci_data_t to get better memory consumption 2013-03-07 16:06:28 +07:00
hathach ef08654e73 add prototype for hcd_pipe(control)_close
- update test code for enum task respectively
2013-03-06 22:41:14 +07:00
hathach 5c3bd1f8dc add code & test for hcd_pipe_open interrupt
high and non-highspeed
2013-03-06 22:21:42 +07:00
hathach 7557a807a9 basically finish code for control transfer & test code 2013-03-06 16:32:01 +07:00
hathach f38fed3529 pass test for setup TD 2013-03-06 15:39:37 +07:00
hathach 685fb97086 rename fields in ehci_qtd_t 2013-03-06 15:08:09 +07:00
hathach 959311532e refractor
- rename some field in ehci_qhd/qtd_t
- code test for open pipe
2013-03-06 14:55:02 +07:00
hathach ef1cef5019 refractor ehci_data_t
separate tests for pipe open & pipe xfer
2013-03-06 14:25:26 +07:00
hathach 97a4a41b82 refractor
- remove unnecessary assign next pointer of asyn/period head in hcd_controller_init
2013-03-06 11:24:20 +07:00
hathach c2b9e1ef83 add some code & testcode for hcd_pipe_control_xfer 2013-03-06 03:03:59 +07:00
hathach 71fcf20a95 fix error
- remove p_qhd->qtd_overlay.halted = 1;
2013-03-06 01:46:01 +07:00
hathach 5b401cc517 refractor hcd_open 2013-03-06 00:29:10 +07:00
hathach b3775b631b add test & code for open bulk transfer to hcd_pipe_open() 2013-03-05 23:08:00 +07:00
hathach c0bbc2aded refractor tests 2013-03-05 15:23:12 +07:00
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 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 356c329922 implement hcd_init controller_init
- add test for async list
2013-03-03 12:31:18 +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 0c397c6b8d house keeping
- correct initialization call sequence
- move hcd_init to ehci.c
2013-02-27 18:49:28 +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