Commit Graph

16 Commits

Author SHA1 Message Date
hathach 97c436a16e add usbh_pipe_control_close (in conjunction with usbh pipe control open)
close control pipe when unplugged
2013-03-13 11:20:02 +07:00
hathach 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
2013-03-12 20:04:29 +07:00
hathach ef9eb1f2fa - fix wrong class code for TUSB_CLASS_APPLICATION_SPECIFIC 2013-03-09 14:31:37 +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 b3775b631b add test & code for open bulk transfer to hcd_pipe_open() 2013-03-05 23:08:00 +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 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 a5b29c5d33 refractor include chain with following policies
- header file only include what it needs for its declarations.
2013-02-04 13:13:07 +07:00
hathach 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
2013-02-02 15:36:20 +07:00
hathach 9a1bda1633 house keeping 2013-01-27 16:19:18 +07:00
hathach 535f330026 update license year from 2012 to 2013 2013-01-27 13:50:40 +07:00
hathach 38ce3f7534 start to support
- usbd host
- osal

some global define
#define TUSB_CFG_HOST_CONTROLLER_NUM
#define TUSB_CFG_HOST_DEVICE_MAX
#define TUSB_CFG_CONFIGURATION_MAX

rename & refractor HID type structure & enum

use CException to test asssertion library
add test for hid_host_keyboard with usbd configure get & osal queue get stubs
update test for assertion library
refractor ASSERT_STATUS in assertion library
update tusb_error_t values
rename usb basic type & enum in tusb_types.h and std_descriptors.h
2013-01-22 17:41:06 +07:00
hathach 921561be60 change editor tab to 2 spaces. 2012-12-03 19:02:36 +07:00
hathach 6ea85a569a added IAD descriptor 2012-12-03 18:43:35 +07:00
hathach 21012d42a2 add struct declare for standard descriptors 2012-12-03 18:15:49 +07:00
hathach b698b09a67 fix some doxygen settings and stuffs add prepacked for IAR compiler 2012-12-03 16:51:14 +07:00