hathach
b71ffe3d5a
change TUSB_CFG_CONTROLLER0/1_MODE to TUSB_CFG_CONTROLLER_0/1_MODE for clearance
...
adding configuration docs for tinyusb_config.h
document HID mouse & keyboard API
2013-10-24 15:32:54 +07:00
hathach
640b0ec546
- move disconnection handle to enum task --> move tusbh_xxx_unmount is invoked in non-isr context
2013-10-01 13:53:54 +07:00
hathach
cb600ed988
clean up hid host (temp let test failed)
2013-09-28 01:01:44 +07:00
hathach
63b776f7cf
add some tests support for msc host
...
refractor msch buffer for getting inital scsi like inquiry, read capacity
adding support for resovling stall on control pipe
2013-09-24 15:21:16 +07:00
hathach
5708863859
house keeping, clean up warnings
2013-09-21 14:38:40 +07:00
hathach
d15ba08fdc
house keeping
2013-09-21 13:17:43 +07:00
hathach
295612b48f
remove ATTR_WEAK for all necessary driver callback
...
fix ceedling tests
2013-09-21 00:42:39 +07:00
hathach
f8f398a681
start to add msc host, fix dangerous problem with unstable device when plugged --> 200 ms delay. 50ms delay after each port reset
2013-09-20 23:53:48 +07:00
hathach
52ae0afeb6
refine hid host driver
2013-09-20 16:20:28 +07:00
hathach
86681fe442
starting to add support for IAR workbench
2013-09-19 16:11:11 +07:00
hathach
391e132d6b
no big deal, only rename tusb_std_request_t to tusb_control_request_t
2013-07-04 12:25:39 +07:00
hathach
c5afb9d50f
change class (hid/cdc) _mounted_isr to _mounted_cb
2013-07-04 09:45:20 +07:00
hathach
4a8686e868
adding _mounted_isr & _umounted_isr callback for host keyboard & mouse
...
remove TUSB_EVENT_INTERFACE_OPEN & TUSB_EVENT_INTERFACE_CLOSE
2013-07-03 12:46:12 +07:00
hathach
1667ef5041
replace tusbh_cdc_isr by tusbh_cdc_xfer_isr with extra parameter as
...
- pipe id
- xferred_bytes
host_class_driver_t add xferred_bytes parameter
void (* const isr) (pipe_handle_t, tusb_event_t); --> void (* const isr) (pipe_handle_t, tusb_event_t, uint32_t);
update hid_host & its tests
2013-07-03 11:36:08 +07:00
hathach
a07ff5a3ce
use SUBTASK_EXIT to restart & exit task without "assert"
2013-06-27 16:32:54 +07:00
hathach
3bca56665c
add mutex support for osal
...
add test for mutex in test_osal_none.c
implement usbh_control_xfer using mutex to get access to queue xfer on control pipe
(while semaphore is used to sync with hcd DMA)
failed to issue control xfer: set idle & get report descriptor in hidh_open_subtask (more to work on)
2013-06-27 16:19:22 +07:00
hathach
c81c4bb817
add set idle request for hidh_open_subtask
...
add interface number to hidh_interface_info_t
refractor hidh_open_subtask to be a true subtask
cannot run with set idle code ON because of semaphore misuse
2013-06-27 03:20:14 +07:00
hathach
ea2e63a332
remove app_os_prio.h in os_none configure
...
remove instance_num in hidh API
temporarily pause device stack developement
should fix travis-ci build error
2013-06-26 18:00:05 +07:00
hathach
5c564df8c1
add api for hcd: hcd_pipe_is_idle
...
add api for usbh: tusbh_device_get_mounted_class_flag
implement api for custom class
- is mounted
- read
2013-06-21 14:20:08 +07:00
hathach
3924764dff
[host lpc43xx] adding support for host custom class
...
refractor usbh class driver indexing
opt out periodic list code in EHCI (need to refractor/group later)
[device lpc176x] rename dcd_endpoint_configure to dcd_pipe_open
add usbd_pipe_open to manage pipe
2013-06-21 13:11:45 +07:00
hathach
b527e6ec4a
refractor tusb_descriptors
...
usbd device_class_driver
added & tested HID mouse for device (work together with hid keyboard)
rename DEVICE_ROM_REG_BASE, DEVICE_ROM_DRIVER_ADDR
2013-06-03 14:31:17 +07:00
hathach
dda0808ebb
fix lpcxpresso1347 board_leds
...
temp change USBD_API to ROM_API
add lpc13xx device support
fix romdriver pointer
able to init rom driver
2013-05-29 14:39:14 +07:00
hathach
ed217948b8
rename descriptor type, hid descriptor type
2013-05-25 17:19:18 +07:00
hathach
40503b913b
abstract os priority for application tasks
2013-05-14 21:32:13 +07:00
hathach
f8d1c3da3e
rename tusbh_hid_keyboard/mouse_is_supported to tusbh_hid_keyboard/mouse_is_mounted
2013-05-14 03:03:54 +07:00
hathach
41fee0f488
house keeping
2013-05-06 20:25:38 +07:00
hathach
120db28a17
change format of file header & license spacing
2013-05-06 12:50:19 +07:00
hathach
33feba5cbc
add hid_keycode_to_ascii_tbl for hid class
...
improve keyboard_app, should display all displayable characters
improve the de-bouncing keyboard (still got some issues)
2013-04-26 02:08:22 +07:00
hathach
e6a44b3fe9
add test & code for TUSB_EVENT_INTERFACE_OPEN for tusbh_hid_keyboard_isr tusbh_hid_mouse_isr
2013-04-09 13:28:07 +07:00
hathach
a6cf4f228e
add tusbh_hid_mouse_isr & tusbh_hid_keyboard_isr callback with xfer_complete & error event
2013-04-09 03:13:27 +07:00
hathach
dfe2b94248
refractor extract hidh_interface_get_report from keyboard_get_report
2013-04-07 18:38:32 +07:00
hathach
ff63a86a4d
add complete isr for hidh mouse
...
refractor hid_host.c
- extract hidh_interface_open from hidh_keyboard_open
- extract hidh_interface_close from hidh_keyboard_close
-
2013-04-07 18:29:30 +07:00
hathach
058e2a9837
add test code & implement
...
- hidh_mouse_open
- tusbh_hid_mouse_status
- tusbh_hid_mouse_get_report
2013-04-07 18:10:01 +07:00
hathach
10c08ab404
add test for mouse_open
...
add hid descriptor for mouse & mouse interface to descriptor_test
refractor extract function hidh_interface_status
fix error with MACRO HID_REPORT_ITEM with zero data size --> redundant semicolon
2013-04-07 15:48:01 +07:00
hathach
3d8a4ef8c8
remove hcd_port_reset before set address in enumeration
...
add test & implement tusbh_hid_mouse_is_supported
2013-04-07 14:44:53 +07:00
hathach
27f860db9f
rename hidh_keyboard_info_t to hidh_interface_info_t
...
rename tusb_bus_event_t to tusb_event_t
add test_mouse_init and more stuff for hidh mouse
move delay after port reset to only for speed detection
prioritize port change interrupt over xfer interrupt
- in case of unplugged, current connect change & xfer error both set
- xfer error only break to debugger if not because of unplugged
fix bug: set dev addr0 state to UNPLUG after close its control pipe in enumeration process
2013-04-07 05:09:18 +07:00
hathach
24ade0458e
fix compiling error for tests project
...
start to add support for host hid mouse
2013-04-07 03:53:53 +07:00
hathach
7b5d9edc5a
add test for pipe_interrupt_xfer
...
implement keyboard app code
- forcefully place keyboard_report in RAM section 3
change used bit in qtd from reserved in buffer[1] to alternate link
add code for fake ehci controller runs on period interrupt
change signature of tusbh_hid_keyboard_get_report
- tusb_keyboard_report_t* to uint8_t*
implement period (interrupt) complete isr processing
2013-03-27 11:51:44 +07:00
hathach
b0ff7a7e23
add code & test for hidh_isr (set status for keyboard)
2013-03-26 17:04:55 +07:00
hathach
ac905a8d09
rename pipe_status_t to tusb_interface_status_t
...
add tusbh_hid_keyboard_status & test code
2013-03-26 16:39:25 +07:00
hathach
205a21ff04
add code for hidh close
...
refractor the full configure descriptor parsing in enum task
2013-03-26 13:45:14 +07:00
hathach
3c767e9f44
add field to endpoint maxpacketsize (mult)
...
refractor hidh_open_subtask & hidh_keyboard_open
add ATTR_PACKED_STRUCT(x)
- TODO remove ugly pre_pack & post pack
2013-03-26 13:07:42 +07:00
hathach
03d045ecde
- put ATTR_UNUSED to hardfault handler variables to discard compiler warning
...
- change host_class_driver_t: open_subtask signature to accept tusb_descriptor_interface_t const * instead of uint8_t*
2013-03-26 12:14:04 +07:00
hathach
54acee1fc8
start merge hidh_keyboard back to hidh
2013-03-26 11:41:41 +07:00
hathach
086a8e4a2d
add flag_supported_class to usbh_devices
...
remove all ATTR_WEAK in init,open,isr,close driver functions of USBH-CLASS API
- prefer testing
2013-03-26 02:02:54 +07:00
hathach
c026a9f2e0
remove obsolete TUSB_CFG_HOST_HID_KEYBOARD_ENDPOINT_SIZE
...
temporarily ignore test for hid_host.c due to ceedling linking issue with weak symbol
implement hidh_open_subtask driver to subclass open
rename hidh_keyboard_install to hidh_keyboard_open_subtask
2013-03-25 16:02:24 +07:00
hathach
ddeec330fa
separate hidh_keyboard from hid_host
...
move test hid related to its own folder
2013-03-25 13:08:40 +07:00
hathach
56cd8be75e
change website from tinyusb.net to tinyusb.org
2013-03-25 11:46:30 +07:00
hathach
c7c993d6cc
refractor hidh keyboard
...
changing class hidh behavior
2013-03-24 21:40:49 +07:00
hathach
a1b17be681
add class flags
...
change keyboard_info_pool to keyboard_data
2013-03-24 17:29:07 +07:00