Commit Graph

71 Commits

Author SHA1 Message Date
hathach
d96abdb0ad add xferred bytes for device control 2018-05-15 22:06:49 +07:00
hathach
1954a73536 make dcd_connect/dcd_disconnect optional with attr weak 2018-04-16 17:35:05 +07:00
hathach
47c125d025 more dcd clean up 2018-03-28 13:54:28 +07:00
hathach
4deb4da6cb mass rename tusb_dcd API to simply dcd 2018-03-28 13:47:58 +07:00
hathach
5b4f948eec dcd renaming 2018-03-28 13:44:39 +07:00
hathach
5f3492c871 move dcd 2018-03-11 13:06:46 +07:00
hathach
0384e40320 rename hal_* to tusb_hal_* 2018-03-11 13:01:57 +07:00
hathach
539fbe5d62 rename endpoint_handle_t to edpt_hdl_t 2018-03-11 12:37:07 +07:00
hathach
6392903fb2 refactor dcd layer 2018-03-11 12:31:24 +07:00
hathach
eaaebc2b88 rename coreid to port 2018-03-09 14:29:23 +07:00
hathach
4ddac8bc88 enhance cdc device API 2018-03-08 14:47:48 +07:00
hathach
817f23e5e0 enhance
- add ASSERT_
- rename edpt_equal
-
2018-03-08 11:42:28 +07:00
hathach
fce85875c4 remove tusb_isr(), rename hal_hcd_isr() and hal_dcd_isr() 2018-03-06 17:38:35 +07:00
hathach
e561f4f4c6 rename to hal_dcd_pipe_clear_stall() 2018-03-06 17:18:43 +07:00
hathach
792f51a927 rename hal_dcd_pipe_stall() 2018-03-06 17:16:43 +07:00
hathach
52de428fbe rename to hal_dcd_pipe_xfer() 2018-03-06 17:14:35 +07:00
hathach
fbeb30a71d change hal_dcd_pipe_open() signature to return bool
- remove endpointhandle_is_valid()
2018-03-06 17:04:37 +07:00
hathach
c5cb58b2bb remove class code in pipe open() 2018-03-06 16:50:50 +07:00
hathach
85511e288d rename to hal_dcd_control_xfer() and hal_dcd_control_stall() 2018-03-06 15:46:48 +07:00
hathach
84bce659b8 reame SUBTASK_EXIT to SUBTASK_RETURN 2018-03-05 13:25:24 +07:00
hathach
185b240f03 rename usbd_dcd_bus_event_isr to hal_dcd_bus_event 2018-03-03 16:24:43 +07:00
hathach
f6137903bc cleanup SUBTASK macros 2018-03-03 12:30:38 +07:00
hathach
fe0e79864b add config number 2018-03-02 22:53:26 +07:00
hathach
9208570d3a rename dcd_controller_* to hal_dcd_* 2018-03-02 22:50:59 +07:00
hathach
33d348c288 rename dcd_init to hal_dcd_init() 2018-03-02 22:46:36 +07:00
hathach
68d96edc13 more doxygen works 2014-03-24 13:06:40 +07:00
hathach
d1d4ddd856 doxygen document 2014-03-16 22:20:33 +07:00
hathach
4cdebe2e76 fix warning for device os none 2014-03-14 17:18:05 +07:00
hathach
9ba209cda0 IAR line ending warning 2014-03-12 14:10:38 +07:00
hathach
ad72db5aea change IAR TUSB_CFG_ATTR_USBRAM to _Pragma("location=\".ahb_sram1\"") instead of @ .ahb_sram1 so that we can place it before the variable for a cleaner code
change pipe xfer API buffer from void* to uint8_t*
change FIFO_DEF to have a separated buffer to be compatible with IAR\
refractor IAR data alignment pragma
2014-03-10 13:13:13 +07:00
hathach
e320659f8a add keyboard led mask
make usbd control request to subtask
add get/set report via control pipe to hidd
enforce soft DMA to control pipe for lpc11u (lpc17xx not yet)
temp add led_blinking_set_interval to change led blinking interval
refractor dcd_pipe_control_xfer to have interrupt on complete option
add get/set report support of moused_app and keyboardd_app, keyboard LED will make LED blink faster
2013-12-09 11:15:13 +07:00
hathach
94854f805a get lpc17xx running through enumeration (with control data < 64) 2013-11-18 17:29:12 +07:00
hathach
699edf9485 separate data & status from dcd_pipe_control_xfer 2013-11-15 14:15:05 +07:00
hathach
6e8440afe5 complete double buffering for queueing xfer for lpc11u/13u requried by msc device 2013-11-14 14:12:07 +07:00
hathach
9a81cbcd59 remove xfer_type in endpoint_handle_t
cdc device demo runs on lpc13uxx
2013-11-11 13:52:31 +07:00
hathach
15d3a418bd add windows driver for cdc
add simple echo cdc serial demo
add cdc device send/receive API
refractor descriptor
refractor cdc.h
add usbd driver function
- init
- bus_reset
2013-11-08 12:03:32 +07:00
hathach
b2b53e61fb refractor dcd_controller_reset & hcd_controller_reset to hal_controller_reset 2013-11-06 12:15:11 +07:00
hathach
d02ef07337 added support for
- sense data scsi_sense_fixed_data_t
- read format capacity scsi_read_format_capacity_data_t

change msc device callback to support actual response
fix dcd_pipe_clear_stall also reset toggle
2013-11-01 22:00:39 +07:00
hathach
f2ae5b541f add dcd pipe clear stall
- tusb_error_t dcd_pipe_clear_stall(uint8_t coreid, uint8_t edpt_addr) but does not take endpoint_handle_t as input
complete msc device driver
add usbd clear stall endpoint
2013-11-01 14:44:14 +07:00
hathach
3a54ad4c0d implement msc device class
usbd auto stall control for not supported return from class control request
usbd implement xfer isr callback mechanism
DCD
- implement dcd multiple qtd support
- dcd dcd_pipe_stall
- implement dcd_pipe_queue_xfer
- xfer_complete_isr
- flush control endpoint if received new setup while previous transfer is not complete
change msc_cmd_block_wrapper_t flags field to dir
force full speed for easy testing

NOTEs: somehow unable to get endpoint IN interrupt with ioc
2013-11-01 12:11:26 +07:00
hathach
b8a7ea6d46 add dcd control pipe stall protocol 2013-10-30 12:52:25 +07:00
hathach
db986b3107 able to fully enumerated with keyboard 2013-10-29 14:19:56 +07:00
hathach
357813f171 implementing sw device stack 2013-10-29 11:27:25 +07:00
hathach
5f23653c69 more doxygen work 2013-10-25 13:45:57 +07:00
hathach
51e9a1817b change some license text 2013-07-03 13:14:14 +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
f219a9c77d add dcd_pipe_control_read 2013-06-14 19:06:33 +07:00
hathach
40b65b265c implement hidd_control_request including std & class specific to interface number.
refractor usbd_setup_received
2013-06-14 18:22:40 +07:00
hathach
17a27f7398 [lpc176x][device] pass set configure control request 2013-06-11 17:53:33 +07:00
hathach
72b5b61597 able to xfer device descriptor on control endpoint of lpc176x 2013-06-11 16:01:30 +07:00