894 Commits

Author SHA1 Message Date
hathach
e340404968
changing usbd driver open() return type, add max_len
only done with cdc and msc, push this interim for feedback first
2020-05-27 19:01:59 +07:00
Reinhard Panhuber
9be2f1bf3d Add basic UAC2 structure - untested 2020-05-22 12:09:34 +02:00
hathach
58cedf4c06 usb0 host on mcb1800 work with fullspeed mode.
use usbh_edpt_open() to correctly map ep2drv[]
2020-05-19 00:55:43 +07:00
hathach
81b1f97ef7 suppress cast-align warnings for net device driver 2020-05-18 13:23:40 +07:00
hathach
4a3a448340 clean up things, add makefile for host example 2020-05-04 00:29:52 +07:00
hathach
d0487088ac revert a change to net driver 2020-04-26 23:04:17 +07:00
hathach
83353dd93f add TODO for usbnet clean up 2020-04-26 22:03:05 +07:00
hathach
017c95037f add usbd edpt open
- RTT mode is blocking to prevent log lost
- Improve logging message
2020-04-26 14:51:44 +07:00
hathach
c59fa77427 Revert "Merge pull request #359 from versioduo/midi-flow-control"
This reverts commit 1d33aa9b6f7940f9eac07ce684515856940175da, reversing
changes made to 718db7e5369df57b0f49a563737e6e0446fd4c4d.
2020-04-23 23:25:20 +07:00
hathach
10e035241f
house keeping 2020-04-22 23:04:21 +07:00
hathach
3b83813f01 clean up 2020-04-22 00:29:51 +07:00
Ha Thach
1d33aa9b6f
Merge pull request #359 from versioduo/midi-flow-control
MIDI - Add flow control to incoming packet stream
2020-04-22 00:11:27 +07:00
hathach
d57312602d add extra comma to HID_REPORT_ID
this make the template with Report ID look less weird to the user
2020-04-20 16:09:17 +07:00
Kay Sievers
a0598ef369 MIDI - Add flow control to incoming packet stream
Larger SysEx transfers get corrupted by incoming packets.

This changes the FIFOs not to overwrite their data. MIDI should not be
a transport that drops packets. A potentially blocking device is easier
to detect and handle than a device that silently corrupts the packet
stream at random overflows, especially when SysEx messages are involved.
2020-04-19 11:44:15 +02:00
Ha Thach
f9262007ac
Merge pull request #258 from versioduo/midi-packets
MIDI packet interface
2020-04-19 15:43:07 +07:00
hathach
ce6a81e74d
fix typo 2020-04-17 22:10:31 +07:00
hathach
464b1e8e89
correct return for write flush 2020-04-17 15:57:24 +07:00
hathach
4571ce0d29
add a bit of document for cdc device API. also improve cdc write flush when complete. 2020-04-17 15:54:20 +07:00
Ha Thach
0b1b9a2b9e
Merge pull request #260 from majbthrd/cdczlp
CDC device: fix behavior for transfers that are a whole multiple of endpoint buffer
2020-04-17 15:00:12 +07:00
hathach
2eed58d096
per review 2020-04-16 11:13:54 +07:00
hathach
86ff5651ad
correct usbnet control complete response
don't return false with STD request get/setInterface() or targeted Data
Interface (itfnum +1)
2020-04-15 23:10:52 +07:00
hathach
caa1dceed9
implement alternate setInterface() request
mostly forward these request (recipient = interface) to class driver.
2020-04-15 17:51:02 +07:00
hathach
d315393fbb
use IAD to assign itf2drv mapping correctly
merge net_data back into net driver
2020-04-15 16:18:24 +07:00
hathach
b03b9eb939
change cdc template protocol to None 2020-04-15 15:14:26 +07:00
hathach
1faa3b2768
tested usbnet, completely remove class code 2020-04-15 11:41:26 +07:00
hathach
f1a6f92fab
Merge branch 'master' into class-driver-id 2020-04-15 10:47:49 +07:00
hathach
490771a094
test vendor 2020-04-15 10:39:01 +07:00
hathach
c1c9ca5629
test with tmc 2020-04-15 10:37:31 +07:00
hathach
e713b534fa
test ok with cdc and msc 2020-04-15 10:30:34 +07:00
hathach
bae570f7c7
tested with midi 2020-04-15 10:30:07 +07:00
Peter Lawrence
7fa8d87291 usbnet: remove CDC-EEM 2020-04-14 21:10:43 -05:00
hathach
8614dcece7
tested with hid 2020-04-15 01:01:07 +07:00
hathach
3ef6e33533
use class driver open() for interface support detection
tested with dfu_runtime
2020-04-15 01:00:37 +07:00
Peter Lawrence
bb3bbcc00b usbnet: OS-agnostic (Windows/Linux/macOS) network driver 2020-04-12 15:41:18 -05:00
Nathan Conrad
55fd9fe392 Typo of usbtmc. 2020-04-02 23:16:28 -04:00
Peter Lawrence
622a6c77a1 usbnet: tweak CDC-ECM after MacOS testing 2020-03-27 20:30:57 -05:00
hathach
8a22eba7b4 add TODO note to remove tud_network_mac_address 2020-03-23 15:24:30 +07:00
Ha Thach
14ab9bf2fe
Merge pull request #298 from pigrew/UART_CRLF
Use CRLF on UART log messages?
2020-03-16 11:23:07 +07:00
Ha Thach
f13835a2fb
Merge pull request #290 from majbthrd/usbnet-stm32rndis
usbnet RNDIS correction (STM32 RNDIS now valid)
2020-03-16 11:16:57 +07:00
Peter Lawrence
aafddfe637 following suggestion by @kasjer 2020-03-15 18:32:02 -05:00
Peter Lawrence
e7efcb6fd5 merge with current master 2020-03-15 18:28:13 -05:00
Peter Lawrence
5e8ff1f7c2 usb RNDIS revision on @pigrew suggestions 2020-03-15 16:05:45 -05:00
Nathan Conrad
7f6316dbe1 Use CRLF on UART. 2020-03-14 14:26:14 -04:00
hathach
85a3315a99 Adding lwip_webserver to ci
- buil_al.py skip specific MCU if .skip.MCU_ exists
- reduce stm32f070 heap & stack size to compile webserver
2020-03-09 15:51:29 +07:00
Ha Thach
5f5ee465a6
Merge pull request #291 from hathach/port-samg55
Port samg55
2020-03-07 16:38:59 +07:00
Peter Lawrence
d74facfd0a usbnet RNDIS correction 2020-03-04 17:54:11 -06:00
Peter Lawrence
4a4682a80a update net class to follow API naming convention 2020-03-03 10:31:46 -06:00
Peter Lawrence
fee79d7466 add CDC-ECM/RNDIS/CDC-EEM network device class with example 2020-03-02 21:15:01 -06:00
hathach
087e3c7f56 Merge branch 'master' into port-samg55 2020-02-07 16:50:07 +07:00
hathach
b6b9fe42af more log for debugging 2020-02-07 16:43:44 +07:00