hathach
a943cce991
test refractor
2013-06-29 21:00:33 +07:00
hathach
d7fc73ff76
rename test folder
2013-06-29 16:16:05 +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
4ce4f463c4
add test support for lpc176x
2013-06-21 22:05:15 +07:00
hathach
4103cc374f
add coreid to hidd_init
...
temporarily implement hidd_init using dcd from lpc17xx
add more test for dcd lp176x
implement dcd_endpoint_configure
2013-06-12 21:06:43 +07:00
hathach
ee57a6f13f
clean up
2013-06-12 14:06:41 +07:00
hathach
8123eed39d
add test for lpc176x dd structure
2013-06-05 11:45:43 +07:00
hathach
0687d6b80d
forgot to add files in lpc175x_6x test project
2013-06-05 11:26:08 +07:00
hathach
f69fefefa9
added dcd_dma_descriptor_t typdef
...
reorganize test project, multiple test projects each is specifically for an MCU
2013-06-05 11:23:41 +07:00
hathach
4239e1390e
delete some pdf docs
2013-06-04 11:47:37 +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
7d78fc1baf
rename romdriver handle
...
forming API for USBD-CLASS driver (abstract away from rom driver)
separate buffer of hid class from buffer of core driver
2013-06-01 21:54:08 +07:00
hathach
9e49056721
refractor change tusbd_hid_keyboard_send_report API
2013-05-31 21:24:40 +07:00
hathach
03d85acfc7
refractor string descriptors, allow one-stop configure descriptor for
...
- manufacturer, product etc ... (only english now)
2013-05-31 18:21:31 +07:00
hathach
ed64401e61
rename descriptor variables
2013-05-31 14:42:38 +07:00
hathach
1e5bd82af2
rename NGX to ngx
...
add a bunch of stub header for dcd (175x_6x, 13xx, 18xx_43xx)
add dcd_nxp_romdriver for handling usb rom driver
add BIT_TEST_ in binary.h
remove mw_usbd_hid.h include due to lexical conflict
2013-05-28 15:24:27 +07:00
hathach
ed217948b8
rename descriptor type, hid descriptor type
2013-05-25 17:19:18 +07:00
hathach
8cb7818bcc
- move CMSIS & driver lib for lpc13u to codebase bsp/lpc13xx
...
- change descriptor.c/h able to build device example
2013-05-23 13:22:46 +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
5cd8f3ad00
continue to refractor test code
2013-05-13 23:31:06 +07:00
hathach
409ff2eaa3
refractor test
2013-05-13 23:18:56 +07:00
hathach
706523ebff
refractor test code using host_helper
2013-05-13 22:57:54 +07:00
hathach
e0aa3c1fca
adding helper to refractor tests
2013-05-13 22:36:49 +07:00
hathach
dd6aed9d3d
test refractor
2013-05-13 01:12:55 +07:00
hathach
f540a90f8a
change ceedling ignore plugin to default : ignore arg & calls
...
continue on refractoring tests
2013-05-13 00:54:43 +07:00
hathach
4dd38f0df6
test again
2013-05-12 22:29:02 +07:00
hathach
dd6a0d8d69
test clean up on the way
2013-05-12 21:51:38 +07:00
hathach
0a0bf3fd56
ahhh, tests refractoring
2013-05-12 20:16:17 +07:00
hathach
6354f4bb4d
tired of refractoring tests (wanting to do some production code)
2013-05-12 20:06:55 +07:00
hathach
cc49607434
test refractor
2013-05-12 19:32:32 +07:00
hathach
81780008e9
add cardinality_of function to return number of set bits
...
refractor tests in ehci
2013-05-11 00:40:21 +07:00
hathach
e50010c36c
clean up test
2013-05-10 18:08:16 +07:00
hathach
7355a45a67
finally get travis build without errors
2013-05-09 17:52:18 +07:00
hathach
dc4bb9d104
-mx32 is not supported in gcc 4.6.x. change to use if-else sizeof(void*) in test code
2013-05-09 17:48:19 +07:00
hathach
c70990703f
use -mx32, as travis use x86 version of linux gcc
2013-05-09 17:26:31 +07:00
hathach
69ecb430f7
force pointer 32 bit using gcc option -m32 for travis build
2013-05-09 17:23:48 +07:00
hathach
7e93dc2c8d
test pointer size on travis system
2013-05-09 16:57:48 +07:00
hathach
7de505cb75
move esc around in ruby script
2013-05-09 16:46:31 +07:00
hathach
ee27c783e2
test ansi sequence color in ruby script when test failed
2013-05-09 16:42:03 +07:00
hathach
5fbbddc56a
revert previous change
2013-05-09 16:03:59 +07:00
hathach
8a38c1c61c
try to modify ceedling lib/rakefile.rb to exit 0 if build succeeded
2013-05-09 15:54:15 +07:00
hathach
0c5856494f
remove dead source path
2013-05-09 15:39:37 +07:00
hathach
446038fd36
move cmsis to bsp/lpc43xx to keep all in repos for travis-ci run
...
update setting for all project file respectively
2013-05-09 15:23:04 +07:00
hathach
327519a5a6
refractor test
...
try to add travis-ci
2013-05-09 13:48:11 +07:00
hathach
e401372c05
rename ehci_controller to ehci_controller_fake
2013-05-09 13:05:48 +07:00
hathach
63add70139
test clean up
2013-05-09 12:49:52 +07:00
hathach
0e65ce62af
documenting on the way
2013-05-08 12:23:25 +07:00
hathach
e12cb5107e
documenting
2013-05-08 10:42:04 +07:00
hathach
d39dbcb8ac
update docs
2013-05-08 10:32:31 +07:00
hathach
41fee0f488
house keeping
2013-05-06 20:25:38 +07:00
hathach
fd49cff8e8
add stub for msc host & hub driver
2013-05-06 20:09:06 +07:00
hathach
120db28a17
change format of file header & license spacing
2013-05-06 12:50:19 +07:00
hathach
fdd98e2fa9
clean up main
2013-04-28 00:00:48 +07:00
hathach
8bd077fa5c
fix bug (wrong logic) with osal_task_delay in non OS configure
...
complete keyboard app with key state & event TODO handle & check for non-printable(control) keycode
add unit test for osal_task_delay for non OS
2013-04-27 00:24:15 +07:00
hathach
c0104b996e
implement hcd_port_speed_get
...
move port reset & speed detection from isr context to usbh enumeration task
- decrease time in isr significantly from 50 ms to 580us
fix bug with osal_task_delay for freeRTOS buil
2013-04-25 17:48:55 +07:00
hathach
d4a2600ecc
- change OSAL_TASK_FUNCTION to have void* parameter (to be consistent with most popular RTOS)
...
- add new error enum TUSB_ERROR_OSAL_TASK_CREATE_FAILED
- move usbh_enumeration_task prototype to usbh.h
- change OSAL_SUBTASK_INVOKED_AND_WAIT behavior, will not "return" in calling task when subtask got error status.
calling task need to do that after the call
- osal_queue_receive signature from uint32_t* to void*
- implement osal_freertos.h for FreeRTOS 7.3 --> able to compile & build host_freertos
+ OSAL_TASK_FUNCTION
+ turn on FPU for M4 in both host_os_none & host_freertos (freertos requires FPU to be on to compile)
+ osal_task_create
+ OSAL_SUBTASK_INVOKED_AND_WAIT
+ SUBTASK_ASSERT
+ osal_semaphore_reset
+ osal_queue_flush
+ adding heap_1.c for memory management
2013-04-24 17:53:43 +07:00
hathach
574710dde5
move main work in usbh_enumeration_task to its body subtask for task_assert style
2013-04-24 13:45:42 +07:00
hathach
d312be7006
fix potential error with usbh_control_xfer_subtask in subtask_assert
...
change back to use task_assert style in usbh_enumeraion
change test to task->subtask->subtask style in test/test_osal_none.c
2013-04-24 12:20:56 +07:00
hathach
ee9d53477a
complete the support for correct polling of 1ms 2ms 4ms 8ms
2013-04-21 16:24:42 +07:00
hathach
a493fab753
separate fake ehci's run async & period list
...
refractor list_find_previous_item & list_remove_qhd to act on ehci_link_t* instead of ehci_qhd_t*
fully support 1ms, 2ms, 4ms, 8ms for period list (each list has a dummy queue head)
- change period list structure
limit the maximum polling interval to 256 ms
add max_loop static MAX number of iteration for list_find_previous_item
add test for close 256ms polling interrupt
2013-04-21 15:09:54 +07:00
hathach
357888a5e5
rename nxp_sof_received to nxp_int_sof
...
implementing freeRTOS integration
change get_period_frame_list from using lst_idx to hostid (fix bug)
adding polling interval supported for interrupt: 1ms, 2ms, 4ms, 8ms
- add interval_ms to get_period_head function
- add bInterval to qhd_init
- add support for sub-frame (less than 8 micro frames) interval
- add bunch of test for interrupt different intervals
2013-04-21 00:28:25 +07:00
hathach
a9010c1786
getting build with freertos & host demo
2013-04-16 16:48:19 +08:00
hathach
89133d36ce
add freeRTOS source from vendor to test
...
remove temp freeRTOS folder in test/support
use test/support/FreeRTOSConfig.h from win32-mingw demo
temporarily disable all tests in test_osal_freeRTOS.c
2013-04-15 19:08:24 +08:00
hathach
3a6d2da854
create a empty test file for hub
2013-04-15 18:41:29 +08:00
hathach
e14aa4197d
change osal_queue_send(osal_queue_handle_t const queue_hdl, uint32_t data) signature to osal_queue_send(osal_queue_handle_t const queue_hdl, const void * data)
...
- support any size queue message (instead of fixed uint32_t)
2013-04-10 01:18:32 +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
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
1776bb53f6
add hal init for USB1 and trying to get USB1 working
...
add hack delay 100 ms after a port reset (huge) for correct speed detection
2013-04-07 03:40:24 +07:00
hathach
b5f7e48ad4
refractor
2013-04-05 14:52:33 +07:00
hathach
d616fa6c10
continue on refratoring
2013-04-05 14:26:28 +07:00
hathach
10f5bce0df
code refractor is a everyday job
2013-04-05 14:13:03 +07:00
hathach
bc9a97a1be
refractor test
2013-04-05 14:05:05 +07:00
hathach
68dddefe7b
add control xfer for ehci controller fake: ehci_controller_control_xfer_proceed
...
refractor test code
2013-04-05 14:00:37 +07:00
hathach
fcb8e295ec
clean up, update tests for hcd_port_reset after 8 byte descriptor & set configure before open class driver
2013-03-29 23:37:59 +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
a7e8a2ba9a
pass all the current tests
2013-03-26 02:06:30 +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
ff03b452d9
remove multiple instances per device for hidh keyboard (no needed)
...
- API retain though
2013-03-25 22:06:00 +07:00
hathach
a2031e6218
refractor hidh_keyboard_open
2013-03-25 20:57:27 +07:00
hathach
2622cc487b
add more test and complete keyboard open
2013-03-25 17:57:33 +07:00
hathach
d0a73f4b0d
add several helper function
...
add test & code for hidh_keyboard_open_subtask
- skip parsing HID descriptor for keyboard
2013-03-25 17:39:22 +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
45db7b4a53
able to build test hidh
...
hack include in hid_host_keyboard.h
2013-03-25 13:51:44 +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
20a22d956d
changing the hcd_pipe_close behavior
...
- bulk/int/iso pipe can only be closed as part of unmount/safe remove process
add test for interrupt_close
2013-03-25 11:04:37 +07:00