Ha Thach
e47f992157
Merge pull request #301 from majbthrd/nuc505tweak
...
NUC505 : fix operation with net_lwip_webserver
2020-03-17 10:24:09 +07:00
Peter Lawrence
df05440d92
NUC505 : added comment on DMA choice
2020-03-16 13:20:17 -05: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
fb56c02a6f
NUC505 : fix operation with net_lwip_webserver
2020-03-15 17:44:09 -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
Ha Thach
41d9ab5056
Merge pull request #295 from hathach/develop
...
add webserver into ci build
2020-03-10 14:33:26 +07:00
hathach
71fb3985ba
Merge branch 'nuc120' of https://github.com/majbthrd/tinyusb into majbthrd-nuc120
2020-03-10 11:53:11 +07: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
hathach
e0cdab5bf7
fix stm32 fsdev epdesc
2020-03-08 16:28:21 +07:00
hathach
c8247f0907
fix zlp for nrf52840
2020-03-08 14:20:28 +07:00
hathach
7aa5a53652
fix log printf
2020-03-08 13:26:36 +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
Ha Thach
093b1381f2
Merge pull request #287 from majbthrd/usbnet
...
add CDC-ECM/RNDIS/CDC-EEM network device class with example
2020-03-03 23:59:43 +07:00
Peter Lawrence
4a4682a80a
update net class to follow API naming convention
2020-03-03 10:31:46 -06:00
Ha Thach
048f5e34dc
Merge pull request #280 from majbthrd/nuc505
...
add Nuvoton NUC505
2020-03-03 21:35:06 +07:00
Peter Lawrence
fee79d7466
add CDC-ECM/RNDIS/CDC-EEM network device class with example
2020-03-02 21:15:01 -06:00
Chang Feng
b8ea0f0a6b
Add langid support to descriptor string callback.
...
Signed-off-by: Chang Feng <chang_196700@hotmail.com>
2020-02-26 13:07:15 +08:00
Andrei Gramakov
8d84bdff21
add a number for esp32-s2
2020-02-19 12:50:36 +01:00
Peter Lawrence
7d8ecc63a6
add Nuvoton NUC505
2020-02-07 20:11:00 -06:00
hathach
46f22860fb
correct waklaround with only status IN
...
correct usb descriptor msc dual example to work with samg
2020-02-07 22:13:38 +07:00
hathach
02b2c60231
samg55 work with cdc msc example
2020-02-07 17:39:20 +07:00
hathach
087e3c7f56
Merge branch 'master' into port-samg55
2020-02-07 16:50:07 +07:00
hathach
9ca6311ac4
implement walkaround for incorrect DATA Toggle for status control.
2020-02-07 16:46:18 +07:00
hathach
b6b9fe42af
more log for debugging
2020-02-07 16:43:44 +07:00
Peter Lawrence
cd8eb2a06b
added support for Nuvoton NUC120
2020-01-25 13:10:32 -06:00
hathach
e2f60a5134
rt10xx: correct max endpoint count is 8
2020-01-17 17:09:23 +07:00
hathach
04d8671641
clean up, disable SOF for dcd trans since we don't use it for now
2020-01-17 12:59:00 +07:00
hathach
3208fe00b6
clean up
2020-01-17 12:06:59 +07:00
hathach
c3f4c75cfc
Merge branch 'master' into develop
2020-01-17 10:58:04 +07:00
Ha Thach
1f95f439e1
Merge pull request #274 from tannewt/dcache
...
Clean and invalidate the DCache when we have one.
2020-01-17 09:47:38 +07:00
Scott Shawcroft
cd6454a330
Add if guards for dcache flushes.
2020-01-16 17:17:49 -08:00
Kay Sievers
73228a67ef
MIDI: Add packet interface
...
This changes the internal buffering to the raw 4-byte messages. The
conversion of the messages to a byte-stream moved to the read/write
methods.
It adds a raw packet interface to send and retrieve the raw 4-byte
USB MIDI message:
static inline bool tud_midi_receive (uint8_t packet[4]);
static inline bool tud_midi_send (uint8_t const packet[4]);
MIDI USB packets carry virtual cable/wire/plug data in the packet header,
which cannot be exported in the byte-stream interface. The raw packet
interface allows to send and and receive the complete USB message.
2020-01-16 10:11:37 +01:00
Scott Shawcroft
ae68668df9
flush and invalidate the dcache
2020-01-15 21:59:15 -08:00
Ha Thach
12b191510a
Merge branch 'master' into nucbusreset
2020-01-16 11:22:33 +07:00
hathach
05fd02194e
correct return value of midid_xfer_cb
2020-01-16 11:12:26 +07:00
Ha Thach
537ceb0f65
Merge branch 'master' into line_endings
2020-01-16 10:55:14 +07:00
Peter Lawrence
2ed395bde3
nuc121: survive USB bus reset
2020-01-15 21:40:24 -06:00
Peter Lawrence
c04bc07c29
nuc121: enhanced driver and hopefully added readability
2020-01-15 20:09:50 -06:00
Nathan Conrad
25c1bea782
Normalize line endings
2020-01-15 14:47:43 -05:00
Peter Lawrence
7f2db321bf
nuc121: better fix for handling large OUT transfers
2020-01-15 10:23:23 -06:00
Peter Lawrence
f2a5335417
nuc121: fix handling of OUT transfers larger than max packet size
2020-01-14 22:07:38 -06:00
Sean Cross
a6b916ba85
Merge pull request #269 from antmicro/volatile_buffers_fix
...
dcd_eptri: Fix rx_buffer/tx_buffer volatile annotation
2020-01-15 07:02:11 +10:00
Mateusz Holenko
c1781e5e7c
dcd_eptri: Fix rx_buffer/tx_buffer volatile annotation
...
This makes `rx_buffer` and `tx_buffer` *pointers*
volatile in order to avoid caching them in a register.
The original notation meant "a pointer to a volatile value"
(equivalent of `volatile uint8_t *`). This resulted in
`while(rx_buffer[ep_num] != NULL) ;` loop to get stuck
forever, even though the IRQ handler set the `rx_buffer[ep_num] = NULL`.
2020-01-14 13:57:17 +01:00
Peter Lawrence
53732805b7
CDC device: help ensure code is consistent with the size of the buffers it operates on
2020-01-11 15:31:42 -06:00
Peter Lawrence
33c715bdd0
CDC device: fix behavior for transfers that are a whole multiple of endpoint buffer
2020-01-11 14:21:43 -06:00
Ha Thach
744674bb28
Merge pull request #240 from majbthrd/master
...
implement multiple interfaces support
2020-01-11 12:23:13 +07:00
Ha Thach
130250a2be
Merge branch 'master' into nuc121
2020-01-07 16:26:58 +07:00
Ha Thach
d6a8d42bd6
Merge pull request #254 from majbthrd/multi-setconfig
...
gracefully handle multiple SET_CONFIGURATION requests
2020-01-05 17:48:55 +07:00
Peter Lawrence
5c5f876461
dcd_nuc121: allow user ZLP transfers to get a callback
2020-01-04 13:36:26 -06:00
Peter Lawrence
f4371e79b1
add Nuvoton NUC121/NUC125/NUC126
2020-01-04 10:31:55 -06:00
majbthrd
6b3eb5f173
fix missing parentheses in TU_MIN and TU_MAX macros ( #256 )
2019-12-30 23:12:18 +07:00
Jeremy Herbert
db24b2f372
Let device respond to endpoint requests on EP0 ( #251 )
...
Since endpoint 0 is used for control requests, it doesn't have a class driver attached to it. As such, the corresponding `_usbd_dev.ep2drv` entry points to driver `0xFF`, which is invalid and this makes the `TU_ASSERT(drvid < USBD_CLASS_DRIVER_COUNT);` line fail, and eventually causes an endpoint stall. So as-is the stack cannot respond to any endpoint requests on endpoint 0.
However, standard requests on endpoint 0 do not need a class driver to produce a valid response. This commit changes the order of execution so that the assert is only checked if the endpoint is not 0.
2019-12-30 10:58:06 +07:00
Peter Lawrence
e7bf66b29e
gracefully handle multiple SET_CONFIGURATION requests
2019-12-28 16:49:52 -06:00
Peter Lawrence
ff0e7d2bed
implement multiple interfaces support
2019-12-28 14:27:32 -06:00
hathach
89f3ad59da
fix #247
2019-12-27 09:42:57 +07:00
hathach
0da45c2e78
clean up
2019-12-26 22:31:29 +07:00
hathach
b5684c5c10
merge dcd_samd51 & dcd_samd21 into dcd_samd
2019-12-26 21:46:59 +07:00
hathach
49b316143a
improve samd, fix missing setup packet occasionally
2019-12-26 17:11:24 +07:00
hathach
5690e7b304
fix samd51 setup packet handling
...
issue occur due to race condition
https://github.com/adafruit/Adafruit_TinyUSB_Arduino/issues/37
2019-12-25 23:47:47 +07:00
hathach
605129eb66
invoke scsi complete callback before queue for csw status
...
there is racing issue with samd + qspi flash testing with arduino
otherwise.
2019-12-24 21:24:43 +07:00
hathach
2caa1ac078
Merge branch 'master' into develop
2019-12-24 21:13:05 +07:00
hathach
bbada1d3e6
adding lookup table for debugging
...
add msc scsi command list
2019-12-23 18:54:06 +07:00
hathach
94e70f9b01
Merge branch 'master' into port-samg55
2019-12-21 23:53:48 +07:00
hathach
421221baa5
making more progress, but failed with WRITE10
...
incorrect queue 448 bytes instead of 512
2019-12-21 23:51:57 +07:00
hathach
050fa2fd39
able to response to scsi inquiry, but failed to response to test unit ready
2019-12-21 19:33:41 +07:00
hathach
a1e55e57a4
clean warnings
2019-12-20 17:09:42 +07:00
samveen
ba8a232970
add "`" and "~" to keycode -> ASCII table
2019-12-17 12:47:05 +05:30
samveen
fdce63b268
[tusb]fix typo in comment
2019-12-16 23:01:26 +05:30
Ha Thach
7a05b177a4
Merge pull request #236 from jeremyherbert/master
...
Update dcd_stm32_fsdev.c with note about F042Fx remapping
2019-12-12 10:17:40 +07:00
Jeremy Herbert
9d96b6d66e
Update dcd_stm32_fsdev.c
...
Add a note about pin remapping for the STM32F042Fx
2019-12-12 09:40:06 +10:00
hathach
96a9eca6a0
move VBUS sense out of dcd_synosys to bsp
2019-12-11 14:03:36 +07:00
hathach
752aea7d72
enhance samg
2019-12-09 23:58:13 +07:00
hathach
fa96078882
clear data toggle in clear stall, also set config bit
2019-12-09 23:21:06 +07:00
hathach
75a2157715
fix samd using TUSB_REQ_SET_ADDRESS in dcd_edpt0_status_complete
2019-12-09 23:20:21 +07:00
hathach
0316e0ecd4
update descriptor, enhance ep in transfer
2019-12-09 22:48:35 +07:00
hathach
759fa76280
implementing dcd_edpt_open
2019-12-09 21:36:15 +07:00
hathach
988edce745
fix build
2019-12-09 18:49:38 +07:00
hathach
208a77678c
clean up, switch and update submodule samd to circuitpython branch
2019-12-09 18:37:54 +07:00
Jerzy Kasenberg
4a1f7d0243
Fix mynewt osal queue definition
...
Queue table has pointers instead of data os_event structs.
This resulted in crashes when elements were put to queue and
overwritten variables that were just after mpool desiged
for queue.
2019-12-01 12:38:36 +01:00
Sean Cross
26dcc19b18
valentyusb: eptri: don't double-advance read buffer
...
Due to an error, we were double-advancing the FIFO buffer. The end
result was that the second half of most reads were getting ignored.
This wasn't found during earlier testing because only 64-byte buffers
were tested.
This corrects this error by avoiding double-advancing the buffer.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 18:14:23 +08:00
hathach
e9725dcdbe
use dcd_edpt0_status_complete() to prepare for setup packet for samd21/samd51
2019-11-28 13:48:55 +07:00
hathach
d7558e8a0f
use dcd_edpt0_status_complete() to set address without blocking for samd21/samd51/stm32_fsdev
2019-11-28 13:39:29 +07:00
hathach
ac701c398b
clean up
2019-11-28 12:18:56 +07:00
hathach
552cc3ef33
implement dcd_edpt_stall
2019-11-28 11:56:35 +07:00
hathach
5dc04887e2
get passed set address
2019-11-28 11:48:08 +07:00
hathach
6bc245cb36
add dcd_edpt0_status_complete() which is useful for several mcu port
2019-11-28 11:46:36 +07:00
hathach
40b454cf28
get passed first get device descriptor
2019-11-27 23:20:48 +07:00
hathach
6225d5bcfd
able to handle setup packet
2019-11-27 16:01:25 +07:00
hathach
bc21714c7e
detect bus reset
2019-11-27 14:49:19 +07:00
hathach
302746d02c
Merge branch 'develop' into port-samg55
2019-11-27 12:35:59 +07:00
hathach
fe1eadf177
fix #229
2019-11-27 12:34:30 +07:00
hathach
8a1b6327ba
extract code to invoke_class_control()
...
- also rename usbd_class_drivers to _usbd_driver
2019-11-27 12:12:52 +07:00
hathach
745f0b4521
clean up
2019-11-27 11:02:24 +07:00
hathach
c691dc4cb2
update
2019-11-25 10:42:32 +07:00
hathach
58e8265964
usb hw init OK
2019-11-24 23:46:28 +07:00
hathach
24b2cea139
Merge branch 'master' into port-samg55
2019-11-24 21:22:42 +07:00
hathach
d991466a8e
fix rt1010 rt1020 only has 1 usb controller, rt1050 rt1060 has 2
2019-11-23 00:48:56 +07:00
hathach
38b14725f7
rename OPT_MCU_IMXRT10XX to OPT_MCU_MIMXRT10XX
2019-11-22 17:40:12 +07:00
hathach
281e8cd9ec
rename OPT_MCU_RT10XX to OPT_MCU_IMXRT10XX
2019-11-22 15:42:46 +07:00
Ha Thach
ca741dfc2a
Merge pull request #220 from hathach/develop
...
Port NXP iMX RT10XX
2019-11-22 15:16:41 +07:00
hathach
6123b600fc
rename dcd_lpc18_43 to dcd_transdimension
2019-11-22 14:47:07 +07:00
hathach
a0b2561a2d
move nxp dcd ehci controller reset and modde into dcd
...
rt1064 work with cdc msc example
2019-11-22 14:20:10 +07:00
hathach
fca4653b95
able to compile dcd 18/43 with rt1064
2019-11-22 12:34:41 +07:00
hathach
2ead26a12d
more clean up
2019-11-22 12:26:40 +07:00
hathach
ccb09db3b7
more clean up
2019-11-22 12:16:47 +07:00
hathach
7e16a9a1db
more constant rename clean up
2019-11-22 12:14:55 +07:00
hathach
8aacd1eacd
refactor dcd_lpc18_43, making it capatible with rt10xx
2019-11-22 12:11:13 +07:00
hathach
623b16af2e
clean up dcd lpc18_43
...
drop supporting both device mode on both ports.
2019-11-22 00:58:18 +07:00
hathach
1f52273d99
move dcd_lpc18_43.h into .c file
2019-11-22 00:38:22 +07:00
hathach
03deeea465
fix segger host example
2019-11-22 00:33:10 +07:00
hathach
f5d737aa7e
moving irq to bsp for lpc17/40
2019-11-21 23:19:38 +07:00
hathach
bbec47b647
adding tud_isr/tuh_isr with lpc18/43
2019-11-21 22:20:30 +07:00
hathach
043697ab95
rename lpc 17/18 irq to dcd_isr/hcd_isr
2019-11-21 16:08:08 +07:00
Sean Cross
a9282eab51
eptri: clear proper endpoint when opening IN port
...
When opening a USB port, we ensure the buffer is NULL and has
a length of 0.
Due to a mistake in specifying the endpoint type, we never actually
cleared the value when opening an IN endpoint. This patch fixes
the comparison when opening an IN endpoint.
This fixes issue #218 .
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-20 17:45:21 +08:00
hathach
1aa3f085cb
adding support for NXP rt1064 evk board, boad test led + sw8 work.
...
LTO is temporary disabled
2019-11-20 15:30:39 +07:00
hathach
c2fb813658
Merge pull request #217 from xobs/valentyusb-eptri
...
WIP: Add Valentyusb eptri
2019-11-18 12:37:34 +07:00
hathach
56abce44f3
Merge pull request #208 from hathach/fix-issue-207
...
Fix issue 207
2019-11-14 10:10:42 +07:00
Sean Cross
cc73990530
tusb: rename `foosn` to `valentyusb`
...
Use the name `valentyusb` as the vendor for the `valentyusb`
project, rather than the manufacturer name of the Fomu device.
This is because the `valentyusb` core can be used across multiple
vendors, much like how other cores can be used across chip vendors.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:47 -08:00
Sean Cross
8c5f02960b
valentyusb: rename from `foosn`
...
While Fomu is produced by Foosn, the actual name of the hardware
block is `valentyusb`. Rename the module to match that.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:47 -08:00
Sean Cross
e05e9801e4
fomu: gate debug/logging features
...
This gates the majority of the debug and logging features behind
testable macros.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:47 -08:00
Sean Cross
3292920933
fomu: first stable working commit
...
This appears to be stable, and works well.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:47 -08:00
Sean Cross
1882a87212
fomu: remove reference to SETUP_CTRL.ACK
...
THis bit isn't used anymore, so remove it.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:47 -08:00
Sean Cross
729c8d073c
fomu: dcd_fomu: add next_ev support
...
Now that we have the `USB_NEXT_EV` register, take advantage of
it to work around issue #207 .
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:09:38 -08:00
Sean Cross
913032ae1d
dcd_fomu: nearly there
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:01 -08:00
Sean Cross
835a72c595
fomu: semi-working dcd file
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:01 -08:00
Sean Cross
843136d0e4
fomu: commit latest version
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:01 -08:00
Sean Cross
22fd7bf85e
fomu: first fully-working release
...
This is able to transfer lots of data back and forth across MSC.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:01 -08:00
Sean Cross
4a8475b8a7
src: add eptri to tusb
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:01 -08:00
Sean Cross
0559fd13fb
fomu: fix some issues with dcd_fomu
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:01 -08:00
Sean Cross
359189ea2d
tusb_verify: add riscv assert support
...
This simply executes an "ebreak" instruction.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:08:01 -08:00
Sean Cross
32bb68409e
portable: fomu: get msc to enumerate
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:03:12 -08:00
Sean Cross
36ede44885
fomu: wip support
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:03:12 -08:00
hathach
4008f0d1e6
update dcd nrf5x to be indepent from nrf_usbd.h
...
fix build error with nrfx 2.0
2019-11-11 00:01:12 +07:00
hathach
fc86a308f6
clean up
2019-11-05 11:45:02 +07:00
hathach
5209091c28
Merge branch 'master' into fix-issue-207
2019-11-05 10:20:30 +07:00
hathach
3d748e6e2e
Merge branch 'master' into port-samg55
2019-11-05 10:18:32 +07:00
hathach
1ab3a1035c
Merge branch 'master' into cr1901-msp430f5529
2019-11-05 10:17:36 +07:00
hathach
3c49ff153e
Merge pull request #149 from pigrew/ZLP_Request2
...
Zlp request2
2019-11-05 00:05:21 +07:00
Nathan Conrad
8d0fa158d7
Change one more TU_ASSERT to TU_VERIFY in usbd.
2019-11-04 11:33:14 -05:00
hathach
2727983a2d
fix #211
2019-11-04 22:52:29 +07:00
Nathan Conrad
a94fe05ecb
usbd: Change TU_ASSERT to TU_VERIFY as the assertion can be hit when bad data is sent from host.
2019-11-04 08:59:29 -05:00
Nathan Conrad
c98acd3873
Use control transfer function to send control data (in usbtmc)
2019-11-04 08:54:18 -05:00
hathach
6baa79b330
board test works
2019-11-04 14:54:04 +07:00
hathach
44ad683bd6
fix tud_control_status() didn't update request
2019-11-04 11:21:57 +07:00
hathach
65e96e5d52
added optional dcd_control_status_complete()
2019-11-03 18:00:07 +07:00
hathach
62f8c14fae
add a bit of log1 for debugging
2019-11-03 14:08:38 +07:00
hathach
7bf01e218d
make control buf static
2019-11-03 11:43:07 +07:00
hathach
1b51b78eaf
hack the request length for the first get device descriptor if EP0 size =8 or 16
...
to prevent usbd control send out ZLP
2019-11-03 00:17:17 +07:00
hathach
a0cffdc843
Merge branch 'pigrew-ZLP_Request2' into cr1901-msp430f5529
2019-11-02 23:29:35 +07:00
hathach
79fbc0b23c
wait for scsi status complete before queueing for next scsi command
...
fix #207
2019-11-01 18:43:18 +07:00
hathach
838173efc3
remove TEST_FAIL() from TU_ASSERT, since it prevents we testing how stack response with failed assert
2019-11-01 18:27:15 +07:00
hathach
d0d87d98f6
add assert to prevent div by zero
2019-11-01 18:03:43 +07:00
hathach
5b68cc91ad
adding TEST_FAIL() for TU_ASSERT()
2019-11-01 17:50:40 +07:00
hathach
164d0db825
Merge branch 'ZLP_Request2' into pigrew-ZLP_Request2
2019-11-01 10:16:59 +07:00
hathach
981e64d8a1
implement pigrew review
2019-11-01 10:07:56 +07:00
Nathan Conrad
d35f86993f
Merge remote-tracking branch 'origin/master' into ZLP_Request2
2019-10-31 12:23:54 -04:00
hathach
f58726887a
update doc, hid set report
2019-10-31 21:28:46 +07:00
hathach
cacbb80a90
zlp should work with control in, tested with Unity framework
2019-10-31 21:14:06 +07:00
hathach
6de9eb4b1a
add more tests, fix an issue with tud_descriptor_configuration_cb() return NULL
2019-10-31 13:06:57 +07:00
hathach
d9ba4d90a8
move function around, more rename
2019-10-31 12:26:36 +07:00
hathach
0029b58417
rename
2019-10-31 12:18:41 +07:00
hathach
e6857d8ee0
clean up
2019-10-31 11:25:41 +07:00
hathach
8a57997c0f
Merge branch 'master' into pigrew-ZLP_Request2
2019-10-31 09:57:52 +07:00
hathach
4d329d46cc
Merge pull request #206 from hathach/develop
...
Added a couple of unit testing with Ceedling/Cmock/Unity
2019-10-31 08:29:11 +07:00
hathach
a0002cc709
rename usbd_init() to tud_init()
2019-10-30 23:26:34 +07:00
hathach
16665672a4
initally adding test_usbd.c
2019-10-30 12:24:07 +07:00
hathach
880ac1e398
move dcd event helper to be dcd.h as inline function
2019-10-30 11:35:25 +07:00
William D. Jones
5d585c03bd
dcd_msp430x5xx: Improve comments regarding SETUP packet handling.
2019-10-29 14:08:39 -04:00
William D. Jones
3f0f7cfd07
dcd_msp430x5xx: Clarify hardware STALL behavior and current vs ideal
...
behavior of driver in comments.
2019-10-29 12:52:56 -04:00
William D. Jones
66faa96f16
tusb_option.h: Assign msp430 ID range 500+ to avoid conflict with Sony.
2019-10-29 11:33:34 -04:00
hathach
a29eb87c38
Merge branch 'ZLP_Request2' of https://github.com/pigrew/tinyusb into pigrew-ZLP_Request2
2019-10-29 18:19:10 +07:00
hathach
f6a65720e5
should fix #184
...
only response up to EP0 size with get device descriptor if not
addressed.
2019-10-29 16:25:32 +07:00
hathach
de333a6f18
clean up warning, msp430 gcc 8.3 fixed the library lto issue
2019-10-29 16:21:31 +07:00
hathach
78523301bb
Merge pull request #202 from smunaut/dfu-rt
...
Add support for DFU Runtime class for devices
2019-10-28 22:56:14 +07:00
Sylvain Munaut
ec4ecfa817
Add support for DFU Runtime class for devices
...
This is really just a few descriptors and then answering to the
request from the host to reboot into DFU mode.
That latter part is delegated to the app since this is platform
specific.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-10-28 16:11:08 +01:00
hathach
4e8c57171c
Merge branch 'master' into cr1901-msp430f5529
2019-10-25 21:20:05 +07:00
hathach
6ab0663c1a
adding more log
2019-10-24 12:00:06 +07:00
hathach
661515a807
adding debug log function
2019-10-23 21:18:46 +07:00
hathach
90b6b5d137
clean up tusb_verify
2019-10-18 16:38:02 +07:00
hathach
195d0f5a14
adding log support with uart
...
started with pca10056
2019-10-12 00:02:51 +07:00
William D. Jones
d0146be00b
dcd_msp430x5xx: Fix typo in copy-paste in transmit_packet.
2019-10-10 04:19:48 -04:00
William D. Jones
c8e899fef0
dcd_msp430x5xx: Improve SETUP packet and EP0 NAK interactions, per
...
42.3.1.3 in Reference Manual; fix is incomplete but works.
2019-10-10 04:02:35 -04:00
hathach
c42edc080c
Merge branch 'master' into develop
2019-10-09 11:03:55 +07:00
Kamil Tomaszewski
0cea82568c
Disable/enable only USB interrupt
2019-10-08 09:58:56 +02:00
Kamil Tomaszewski
9923604221
Send SUSPEND and RESUME signals
2019-10-07 14:04:48 +02:00
Kamil Tomaszewski
b3872febe2
Disable/enable interrupt
2019-10-07 14:03:02 +02:00
Kamil Tomaszewski
0747c4b61b
Add Spresense board
2019-10-04 13:19:34 +02:00
hathach
281cd858b0
adding lpc1549, but couldnt recieve setup packet, though setup received interrupt is triggered
2019-10-04 15:56:45 +07:00
William D. Jones
a01b0a73c1
Remove accidentally-commited debug var.
2019-10-03 23:59:22 -04:00
William D. Jones
432e9dcd2e
Merge remote-tracking branch 'pigrew/ZLP_Request2' into msp430f5529
2019-10-03 23:50:55 -04:00
hathach
13d37e4a36
lpcxpresso1549 board test running
2019-10-03 15:23:01 +07:00
hathach
7fd68efe7b
couldn't get 32L4 running with crystal less mode
2019-10-03 13:37:10 +07:00
William D. Jones
5ee1070c16
Merge remote-tracking branch 'origin' into msp430f5529
2019-10-02 23:18:49 -04:00
William D. Jones
b0b737b42a
usbd_control.c: Decide whether a control transfer has a data stage
...
based on setup packet wLength.
2019-10-02 23:02:55 -04:00
William D. Jones
05914de109
dcd_msp430x5xx: Fix typos in dcd_edpt_clear_stall.
2019-10-02 22:36:45 -04:00
William D. Jones
3edb5548e9
dcd_msp430x5xx: Ensure DBUF bit is cleared on endpoint open, as it
...
could get spuriously set in debugging sessions. cdc_msc functional.
2019-10-02 01:19:12 -04:00
Nathan Conrad
cef388b7bd
Merge branch 'master' into ZLP_Request2
2019-10-02 01:15:47 -04:00
hathach
820a3705f5
Merge branch 'master' into develop
2019-10-02 12:13:47 +07:00
hathach
0673be7724
ported stm32f1, tested with f103 blue pill
2019-10-02 12:01:34 +07:00
Nathan Conrad
1e193212d7
Add testcase for EP0 stall recovery to USBTMC test script.
2019-10-02 00:31:47 -04:00
Nathan Conrad
e5f38e3e86
Remove references to EP kind.
2019-10-02 00:11:16 -04:00
Nathan Conrad
838cfe02c1
Merge remote-tracking branch 'origin/master' into ST_FSDEV_EP0
2019-10-02 00:09:07 -04:00
William D. Jones
19ee519926
dcd_msp430x5xx: Correct byte count masks in transmit/receive routines.
2019-10-02 00:01:58 -04:00
William D. Jones
54478aaa2a
dcd_msp430x5xx: Add STALL support for nonzero endpoints.
2019-10-01 23:28:41 -04:00
William D. Jones
fad44c03c8
dcd_msp430x5xx: Fix TOGGLE bit behavior, clear stall when endpoint
...
opened due to reset potentially not resetting everything.
2019-10-01 23:03:39 -04:00
hathach
204791b3e7
2nd attempt to fix #161
2019-10-01 22:19:04 +07:00
hathach
12609f818b
fix #161 added volatile for ep_busy_map/ep_stall_map
2019-10-01 14:43:34 +07:00
hathach
d27291f288
Merge branch 'master' into develop
2019-09-30 14:45:34 +07:00
Nathan Conrad
4ea2a4ed60
Github's web interface changed line endings without asking me. Oops.
2019-09-29 10:45:13 -04:00
Nathan Conrad
0078be9c24
Merge branch 'master' into ZLP_Request2
2019-09-29 09:52:53 -04:00
William D. Jones
b623e3023e
dcd_msp430x5xx: Implement receive_packet for all endpoints, correct
...
some mistakes in transmit_packet.
2019-09-29 03:58:30 -04:00
William D. Jones
549ad1d9b6
dcd_msp430x5xx: Fix missing mask when posting IN xfer events.
2019-09-29 03:02:59 -04:00
William D. Jones
838b431fac
dcd_msp430x5xx: Implement transmit_packet for nonzero endpoints. Untested.
2019-09-29 02:43:05 -04:00
William D. Jones
2247f132ca
Implement dcd_edpt_xfer for nonzero endpoints.
2019-09-29 02:22:09 -04:00
William D. Jones
ea0e799df6
dcd_msp430x5xx: Fix clear stall logic.
2019-09-29 02:17:59 -04:00
William D. Jones
529efcc0d2
dcd_msp430x5xx: Implement dcd_edpt_open.
2019-09-29 00:21:40 -04:00
William D. Jones
5d9f833915
dcd_msp430x5xx: Implement STALL logic for EP 0.
2019-09-28 02:09:03 -04:00
William D. Jones
63c94ff684
dcd_msp430x5xx: Improve EP0 IN handling (reuse short_packet field).
2019-09-28 01:51:05 -04:00
William D. Jones
030560792d
dcd_msp430x5xx: Implement dcd_set_address.
2019-09-27 21:59:45 -04:00
William D. Jones
3ac43076da
dcd_msp430x5xx: Implement EP0 IN xfers, clean up.
2019-09-27 21:22:19 -04:00
Nathan Conrad
c4483d244b
Fix typo of CFG_TUD_ENDOINT0_SIZE.
2019-09-27 21:22:19 -04:00
Nathan Conrad
4ccdc5522d
Fix typo of CFG_TUD_ENDOINT0_SIZE.
2019-09-27 12:41:46 -04:00
Nathan Conrad
91fa24d99c
Merge branch 'master' into ZLP_Request2
2019-09-27 00:37:21 -04:00
hathach
6183dbd0ce
add -Wextra for more warnings to example
...
non-stack warning (probably mcu driver) should be suppressed in the
board.mk
2019-09-27 00:15:43 +07:00
Nathan Conrad
f19082f02d
Reset TX and RX endpoints to NAK when receiving setup packet.
2019-09-25 20:55:15 -04:00
Nathan Conrad
048e0448c0
ST FSDEV:Remove setting the EP kind, as I think it was causing issues during enumeration (sometimes). Also move a membar.
2019-09-25 20:54:59 -04:00
Nathan Conrad
6841b236e8
Remove _app from callback function names.
2019-09-25 12:47:05 -04:00
Nathan Conrad
3a87dd65d7
Change getting the capabilities structure to a callback instead of an extern struct.
2019-09-25 12:46:35 -04:00
Nathan Conrad
2d4352bfe9
Rename USBTMC functions.
2019-09-25 12:46:25 -04:00
Nathan Conrad
412a279073
I never understood why I need to write void as empty function arguments.
2019-09-24 13:54:45 -04:00
Nathan Conrad
624f4bf4ce
Remove rhport from app code. If anything, it should be the interface_id. Assume a single interface, for now.
2019-09-24 13:42:29 -04:00
Nathan Conrad
10105557dc
Let application control interface latency...
2019-09-24 13:11:45 -04:00
William D. Jones
01b4115b0b
dcd_msp430x5xx: Fix Setup packet delay by actually enabling
...
corresponding interrupt.
2019-09-24 04:06:34 -04:00
William D. Jones
550e8215f3
dcd_msp430x5xx: Setup packets are now received successfully (with delay).
2019-09-24 03:43:51 -04:00
William D. Jones
d2e4af5a7b
msp430f5529: Change EP0 size to 8, implement interrupt logic up to bus
...
reset detection.
2019-09-24 02:41:11 -04:00
William D. Jones
950614a841
msp430f5529: Implement dcd_int_enable/disable.
2019-09-23 22:58:49 -04:00
William D. Jones
a6a79df9fb
msp430f5529: Enable clocks/PLL for msp_exp430f5529lp and enable USB
...
module in dcd_msp430x5xx; device does not enumerate.
2019-09-23 18:53:31 -04:00
William D. Jones
907bc3df9b
msp430f5529: Ensure cdc_msc demo compiles.
2019-09-23 17:48:18 -04:00
Nathan Conrad
e61f2b7393
Retool stalling EP on xfer errors.
2019-09-22 09:55:28 -04:00
Nathan Conrad
757c2cdc5b
Merge remote-tracking branch 'origin/master' into usbtmc
2019-09-22 09:30:45 -04:00
hathach
7ba8e81852
Merge pull request #177 from cr1901/fifo-fix
...
dcd_synopsys: Fix off-by-one error in FIFO allocation.
2019-09-22 11:38:54 +07:00
William D. Jones
108f756e22
dcd_synopsys: Fix off-by-one error in FIFO allocation.
2019-09-21 23:01:06 -04:00
Nathan Conrad
fa5b5e4561
Lots of updates (especially error handling)
2019-09-21 21:46:46 -04:00
Nathan Conrad
2aa10daf26
Merge branch 'clear_feature_ordering' into usbtmc
2019-09-21 21:39:25 -04:00
Nathan Conrad
ec3414ca3a
Merge branch 'master' into usbtmc
2019-09-21 21:38:05 -04:00
Nathan Conrad
9498adef71
Changing the bitwise to a logical OR created a huge hard to find bug. It shortcutted the call to the class function,
...
so, lets use shortcutting anyway?
2019-09-21 19:29:57 -04:00
Nathan Conrad
fbb8520acd
logical or.
2019-09-21 14:34:29 -04:00
Nathan Conrad
37b52e354f
Correct wording of comment on handling EP requests.
2019-09-21 12:17:17 -04:00
Nathan Conrad
a187f0268c
When unstalling, EP must be marked as not busy. Also, mark EP as busy when stalling as xfer requests should fail.
2019-09-21 12:05:57 -04:00
Nathan Conrad
be28a05409
Make type casting explicit
2019-09-21 12:05:46 -04:00
Nathan Conrad
55abb3d717
Calling EP open with bad parameters should be considered a bug.
2019-09-21 12:02:52 -04:00
Nathan Conrad
aebecf169a
Reorder handling of EP control requests,
2019-09-21 12:02:06 -04:00
Nathan Conrad
b6590490a8
USB Control: Pointer arithmetic on void* is forbiden
2019-09-21 12:00:52 -04:00
Nathan Conrad
ce9f133d25
FSDEV: go to NAK when unstalling; on reset, set EP0 to NAK, prioritize reset interrupt, fix small typos.
2019-09-21 12:00:04 -04:00
hathach
f90f1a278b
Merge pull request #169 from pigrew/hid_desc
...
Implement HID desc request.
2019-09-21 00:06:51 +07:00
Nathan Conrad
8a688cd8d0
Revert "Revert "Also need to just return false in the case that it isn't an interface control event. We shouldn't assert. This normally isn't an""
...
This reverts commit 2281a51484
.
2019-09-20 12:58:26 -04:00
Nathan Conrad
2281a51484
Revert "Also need to just return false in the case that it isn't an interface control event. We shouldn't assert. This normally isn't an"
...
This reverts commit f241ff389f
.
2019-09-20 12:27:41 -04:00
Nathan Conrad
f241ff389f
Also need to just return false in the case that it isn't an interface control event. We shouldn't assert. This normally isn't an
...
error, either, so I don't want to use TU_VERIFY.
2019-09-20 08:56:46 -04:00
Nathan Conrad
a8a65d6cea
Use cached HID descriptor.
2019-09-20 08:46:17 -04:00
Nathan Conrad
345806a533
Merge remote-tracking branch 'origin/master' into usbtmc
2019-09-20 08:42:20 -04:00
hathach
94c9cf0eff
doc update
2019-09-20 16:14:35 +07:00
hathach
7b2f8cc73a
added stm32 L0 support
...
close #125
2019-09-20 13:49:33 +07:00
Nathan Conrad
02b468f56a
(little typo fix)
2019-09-19 21:20:04 -04:00
Nathan Conrad
05164c5a27
Cache pointer to HID descriptor.
2019-09-19 21:04:51 -04:00
Nathan Conrad
2a7ca15e2c
Rename functions to include tud_ and _cb
2019-09-19 20:43:49 -04:00
Nathan Conrad
f3d6d0127b
Rename USBTMC_CFG_ENABLE_488, and fix build with it off.
2019-09-19 19:59:44 -04:00
Nathan Conrad
d742c3e15c
s/USBTMC488/USB488/ ; fix types in bitfield
2019-09-19 19:56:00 -04:00
Nathan Conrad
7e0490bbf3
Move descriptors to usbd.h
2019-09-19 19:51:37 -04:00
Nathan Conrad
346443118f
Add testcase for aborting bulk in with no data queued (and fix aborting bulk in)
2019-09-19 19:01:08 -04:00
Nathan Conrad
0548f97d33
Remove debug printf.
2019-09-19 18:59:57 -04:00
Nathan Conrad
525b4cdb72
Use ESOF for wakeup timing.
2019-09-19 09:51:40 -04:00
Nathan Conrad
642afeea8b
s/static const/define/
2019-09-19 09:30:16 -04:00
Nathan Conrad
85623584f9
Remove debug assertions.
2019-09-19 09:24:52 -04:00
Nathan Conrad
5fcc1468eb
Merge branch 'master' into fsdev_smallPacket
2019-09-19 09:16:48 -04:00
Nathan Conrad
d4b2dff7c4
Fix more TX bugs... and add variable response delay to the example project.
2019-09-19 00:00:27 -04:00
Nathan Conrad
9a726dc7ed
More fixes, and a bit of SRQ.
2019-09-18 21:34:26 -04:00
Nathan Conrad
99d03fcaee
small fixes
2019-09-18 19:30:44 -04:00
Nathan Conrad
eea71a8b3b
usbtmc updates....
2019-09-18 19:24:54 -04:00
Nathan Conrad
6dd2296cfc
Change inline functions to macros, and make all parameter names uniform.
2019-09-17 13:29:42 -04:00
hathach
237c32b976
fix #143
2019-09-17 13:29:42 -04:00
Nathan Conrad
5a2e510af7
Interpretation of assert vs verify.
2019-09-17 13:29:41 -04:00
hathach
8e17fb4910
follow up to suggestion to pr 155
2019-09-17 13:29:41 -04:00
Nathan Conrad
1ceeab2702
This demonstrates that I don't pre-build things before committing them... oops.
2019-09-17 13:29:40 -04:00
Nathan Conrad
8d05b70a72
Off-by-one error in Synopsys assertions. (and move some braces to their own lines.
2019-09-17 13:29:40 -04:00
Nathan Conrad
41e8b8752e
Massive copy&paste typo of mine in the 32-bit byte swapping function....
2019-09-17 13:29:40 -04:00
Nathan Conrad
a0b6b8187c
TI compiler quirks, and le byte swapping functions.
2019-09-17 13:29:40 -04:00
Nathan Conrad
91cd247c97
changes 2
2019-09-17 13:29:39 -04:00
Nathan Conrad
45871001e6
Changes1...
2019-09-17 13:29:38 -04:00
Nathan Conrad
e234998c6c
More proper handling of clear.
2019-09-17 13:29:38 -04:00
Nathan Conrad
c755aee7d0
Clear
2019-09-17 13:29:38 -04:00
Nathan Conrad
915f52730d
Implement HID desc request.
2019-09-17 11:28:29 -04:00
Nathan Conrad
89ffe78f84
ST FSDEV: No need to always reset the interrupt priority, also add some synchronization primitives after disabling interrupts.
2019-09-16 22:56:17 -04:00
Nathan Conrad
a33a854793
Include board header file... :X
2019-09-16 20:56:57 -04:00
Nathan Conrad
d341337c6a
Implement remote wakeup + perhaps better sleep?
2019-09-16 20:25:50 -04:00
Nathan Conrad
dfe92542e6
Change inline functions to macros, and make all parameter names uniform.
2019-09-16 11:27:05 -04:00
Nathan Conrad
889c17a442
Merge branch 'master' into TI_compiler_quirks
2019-09-16 09:24:27 -04:00
Nathan Conrad
6b9783cead
s/unsigned int/uint32_t/
2019-09-16 09:20:15 -04:00
hathach
0c70948d0d
Merge pull request #163 from hathach/develop
...
fix #143
2019-09-16 16:37:27 +07:00
hathach
a37d2d64be
fix #143
2019-09-16 13:32:47 +07:00
hathach
88dd83ae5c
Merge pull request #159 from pigrew/assert_documentation
...
Documentation: assert vs verify.
2019-09-16 11:29:39 +07:00
hathach
19e7b7d85c
Merge pull request #155 from hathach/develop
...
fix #154 forward all endpoint recipeint request to class driver
2019-09-16 11:27:52 +07:00
hathach
9c5ae0369b
follow up to suggestion to pr 155
2019-09-16 11:13:17 +07:00
Nathan Conrad
05c13342a3
Implement EP with size <64.
2019-09-15 23:51:42 -04:00
Nathan Conrad
18303e742e
Covert macros to inline functions.
2019-09-15 23:46:03 -04:00
Nathan Conrad
ae873a709e
Wrote TX instead of RX.
2019-09-15 23:33:36 -04:00
Nathan Conrad
9593463367
Massive copy&paste typo of mine in the 32-bit byte swapping function....
2019-09-15 15:20:01 -04:00
Nathan Conrad
e53e9bd4f0
Simulate query delay; getting to a point where implementing clear/aborts makes
...
sense. Probably adding too many concurance issues; need to figure out
semaphores.
2019-09-14 21:26:43 -04:00
Nathan Conrad
64bfec79b2
Change requset type parameter back to uint8_t (fix type cast), support USB indicator pulse
2019-09-14 18:11:07 -04:00
William D. Jones
6280e4e7cb
msp430f5529: Add empty msp_exp430f5529lp BSP and DCD.
2019-09-14 18:02:17 -04:00
Nathan Conrad
6e00886ffb
Handle USBTMC TermChar.
2019-09-14 17:15:34 -04:00
Nathan Conrad
e74c6b0874
Combined status response enum (std with 488), support trigger.
2019-09-14 16:51:02 -04:00
Nathan Conrad
1cae96951f
Add usbtmc class driver.
2019-09-14 13:35:08 -04:00
Nathan Conrad
21ba37aec6
Interpretation of assert vs verify.
2019-09-14 11:25:40 -04:00
Nathan Conrad
4ea212a432
This demonstrates that I don't pre-build things before committing them... oops.
2019-09-13 23:52:43 -04:00
Nathan Conrad
c831311a12
Off-by-one error in Synopsys assertions. (and move some braces to their own lines.
2019-09-13 23:38:58 -04:00
Nathan Conrad
bb7f581b6d
TI compiler quirks, and le byte swapping functions.
2019-09-13 20:28:26 -04:00
hathach
ac8c343fef
fix #154 forward all endpoint recipeint request to class driver
...
fix typo
remove magic number 0xff of driver id
2019-09-13 22:16:24 +07:00
hathach
064adebbd0
fix #152 , potential memory issue
2019-09-13 14:03:59 +07:00
hathach
c3598f0301
fix #139 , correct usbd request intepreting, Non-STD request to Interface must be forward to class driver
2019-09-13 13:03:11 +07:00
hathach
986beda9eb
adding stm32l4 support, board test run with stm32l476disco, usb doens't work yet
2019-09-13 11:22:44 +07:00
Nathan Conrad
8cca287683
Add verification that there is enough buffer space for HID OUT control transfer.
2019-09-12 16:07:12 -04:00
Nathan Conrad
340dcb81bf
For control transfers, compare the transmitted length against the requested length to know if a ZLP needs to happen. ( fixes #139 )
2019-09-12 16:06:45 -04:00
hathach
ff7261600c
ported stm32f2, added board stm32f207zg nucleo
...
close #127
2019-09-12 10:41:03 +07:00
Nathan Conrad
d3507b0787
Merge remote-tracking branch 'origin/master' into stfsdev_cleanups
2019-09-11 20:36:48 -04:00
Nathan Conrad
3326b9d008
Use types with explicit bit widths.
2019-09-11 20:33:47 -04:00
hathach
7f166d860d
stm32f7 work with dcd synopsis
...
close #124
2019-09-11 22:48:07 +07:00
Nathan Conrad
7b93177890
Use TU_VERIFY_STATIC, use more uint instead of uint8_t/uint16_t. Create reg16_clear_bits function to reduce typec conversion warnings.
2019-09-11 09:45:48 -04:00
Nathan Conrad
784dc52b62
Update header comments.
2019-09-11 09:44:25 -04:00
Nathan Conrad
4cf2b30759
Fix bug where the EPREGs were not being initialized as expected.
2019-09-11 09:43:57 -04:00
hathach
a3f1c269e9
added stm32f767nucleo board, board_test works
2019-09-11 18:02:27 +07:00
hathach
bf76a1e49e
Merge pull request #136 from hathach/develop
...
fix #132
2019-09-11 11:16:47 +07:00
hathach
6c6a597465
fix #132
2019-09-11 10:47:07 +07:00
hathach
678ba586df
Merge pull request #122 from cr1901/synopsys
...
Synopsys Refactor
2019-09-11 10:37:49 +07:00
Nathan Conrad
4f6bedeac9
Rename the STM32 MCU options.
2019-09-10 12:57:43 -04:00
Nathan Conrad
23d39f2b15
Remove OPT_MCU_STM for L and G series.
2019-09-10 12:13:36 -04:00
Nathan Conrad
65e72de7ce
Move interrupt handler into device driver, and rename the OPT_MCU_STM32 constants.
2019-09-10 09:35:52 -04:00
Nathan Conrad
49c58be4ce
Fix silly typo in the F3xx support.
2019-09-10 01:31:14 -04:00
Nathan Conrad
bc2a65b20b
A few bug fixes, remove the unstested device notices, note supported boards in READMEs, and implement PMA
...
access stride (used on MCU's with 512 byte USB buffers).
2019-09-10 01:03:24 -04:00
Nathan Conrad
f7b0aeec52
Start clock on F0 and F0, and handle USB interrupts.
2019-09-09 19:20:26 -04:00
Nathan Conrad
d1976a30b3
Update F3 BSP and create F070RB BSP. Both are untested (but compile).
2019-09-09 16:14:38 -04:00
Nathan Conrad
5ec59c2a30
Add STM32 FSDEV driver.
2019-09-09 14:55:39 -04:00
Nathan Conrad
75a3f791e3
Remove some type conversion warnings (using GCC pedantic warnings)
2019-09-09 13:35:41 -04:00
Nathan Conrad
4517d504b8
Fix typo of ENDOINT
2019-09-09 13:34:30 -04:00
Nathan Conrad
b4c8a09f20
Remove STM32 F3 port.
2019-09-09 13:29:26 -04:00
Nathan Conrad
96bead4b2a
Add dummy arguments to GET_NTH_ARG to make GCC happy (removes pedantic warnings)
2019-09-09 13:24:08 -04:00
William D. Jones
1385d7c494
stm32: Refactor so F4 and H7 use a single Synopsys IP source file.
2019-09-09 10:48:14 -04:00
William D. Jones
82cd4b5350
dcd_stm32f4: Merge relevant changes from dcd_stm32h7.
2019-09-09 10:27:46 -04:00
William D. Jones
3efc81b285
dcd_stm32h7: Merge relevant changes from dcd_stm32f4. USB2 -> USB works as alias.
2019-09-09 10:14:20 -04:00
hathach
e123cad7bb
enhance dcd stm32f4 to support max 4 or 6 endpoints on 407 or 412
2019-09-08 23:10:51 +07:00
hathach
4663f9084d
ported board stm32f412g discovery
...
- added soft connect for enable pull up register dcd stm32f4
2019-09-08 21:57:02 +07:00
hathach
56f1ccd68a
fix #97
2019-09-05 21:59:19 +07:00
hathach
143a138028
Merge pull request #116 from hathach/develop
...
Board update
2019-09-05 16:18:34 +07:00
hathach
a90e2aa2ce
55s69 device work with usb0
2019-09-05 16:12:13 +07:00
hathach
7350e9c25c
Merge pull request #114 from cr1901/stm32h7
...
STM32H7 Support
2019-09-05 15:29:13 +07:00
William D. Jones
8f8ca77a91
stm32h7: Mark USB FIFOs as volatile, otherwise optimizations will remove
...
reads/writes to the FIFOs.
2019-09-04 01:06:07 -04:00
William D. Jones
910fd867c7
stm32h7: Fix indentation error where OUT XFER interrupt wasn't handled
...
in the correct scope.
2019-09-03 01:37:44 -04:00
William D. Jones
1a3dc9cba1
stm32h7: USB_OTG_FS -> USB2_OTG_FS.
2019-09-03 01:28:41 -04:00
William D. Jones
f703a74daa
stm32h7: Implement STALL logic for endpoints.
2019-09-03 01:28:41 -04:00
William D. Jones
28b131ea94
stm32h7: Implement dcd_edpt_open. cdc_msc_hid demo functional.
2019-09-03 00:37:50 -04:00
William D. Jones
d4302dacc5
stm32h7: Fix accidental overwrite of STUPCNT field in DOEPTSIZ register.
2019-09-03 00:25:21 -04:00
William D. Jones
9210167603
stm32h7: Implement dcd_set_address.
2019-09-02 21:00:30 -04:00
William D. Jones
0d0b802ee0
stm32h7: Implement IN and OUT receive for EP0; device descriptor returned.
2019-09-02 19:32:11 -04:00
William D. Jones
f602534536
stm32h7: Implement setup packet events.
2019-09-02 13:34:33 -04:00
hathach
ee57113981
trying to add LPC55xx support
2019-09-02 15:53:12 +07:00
hathach
80cde5b0b5
fix potential bug with mis-align issue
2019-09-01 17:20:10 +07:00
hathach
074681da8b
dma of lpc54114 can also execute up to 64 bytes each transfer
...
There is still issue with cdc_msc_hid example
2019-09-01 17:05:34 +07:00
hathach
aeea6754af
rename lpc_usbd to lpc_ip3511
2019-09-01 16:44:40 +07:00
hathach
3067809957
adding lpc54xxx to dcd, able to go through enumeration
2019-09-01 16:15:23 +07:00
hathach
403662a1d6
board_test run with lpc54114
2019-09-01 15:58:42 +07:00
hathach
957201fc58
fix undef __ARM_ARCH_6M__
2019-09-01 11:59:50 +07:00
hathach
2d041aaa1d
clean up
2019-09-01 08:11:22 +07:00
hathach
30f707cad2
rename lpc11_13_15 to simply lpc_usbd since it is almost used by in recent year for nxp mcu
2019-09-01 00:51:58 +07:00
hathach
bac75a81fd
support LPC51u68 #100
2019-08-31 22:44:08 +07:00
hathach
b7dbc98ab1
close #105 add tud_vendor_write_available()
2019-08-31 16:31:07 +07:00
William D. Jones
8b165e1024
stm32h7: Ensure FS (and the only) PHY is selected for OTG_HS2.
2019-08-30 22:07:35 -04:00
William D. Jones
7153561984
stm32h7: Enable USB peripheral (device does not enumerate yet).
2019-08-30 21:57:06 -04:00
William D. Jones
0fb9ab9a09
stm32h7: Add empty template cdc_msc_hid example for STM32H743 Nucleo board that compiles.
2019-08-24 12:40:18 -04:00
hathach
b3acce17cc
adding lpc51u68 support
2019-08-24 00:52:46 +07:00
hathach
48c7b80c57
fix warnings of template descriptor
2019-08-23 13:33:40 +07:00
Scott Shawcroft
00c440cb26
Merge pull request #99 from jepler/issue98-midi-program-change
...
midi_device: Send message classes C and D as 2 bytes
2019-08-15 23:34:42 -07:00
jepler
96d96a94b8
midi_device: Send message classes C and D as 2 bytes
...
.. sending these as two 1-byte messages with CIN of 0xF is
misinterpreted by OSes including Windows 10 and (reportedly)
Mac.
Testing performed: Ran the reproducer script, which sends Program
Change (0xCx) messages. I did not check with Change Pressure (0xDx)
messages, but expect the same thing.
Closes : #98
2019-08-14 19:15:29 -05:00
hathach
47cd08d526
clean up
2019-08-05 22:31:41 +07:00
hathach
d1df041519
nrf5x remove the depenedent on nrfx_power.h
2019-08-05 22:09:37 +07:00
hathach
d211035a0a
merge dcd/hal_nrf5x.c into dcd/dcd_nrf5x.c
2019-08-05 21:54:20 +07:00
hathach
30de17a830
clean up
...
- remove TUD_WEBUSB_URL_DESCRIPTOR to avoid flexible array member (C++
forbid in strict mode)
- remove unused TUD_DESC_STRLEN/TUD_DESC_STR_HEADER/TUD_DESC_STR_HEADER
2019-08-01 13:20:00 +07:00
hathach
bd08d0edc9
add vendor peek, change cdc peek signature, change cdc read_char() return from signed char to int32_t
2019-08-01 10:46:27 +07:00
hathach
2c2db31b09
clean up
2019-07-30 20:28:39 +07:00
hathach
00a9e492cd
clean up
2019-07-30 00:48:31 +07:00
hathach
af3c301ea5
added BOS MS OS 2.0 descriptor to webusb example, it work with windows
2019-07-30 00:34:25 +07:00
hathach
cdaf455461
fix stall response with SET_INTERFACE/GET_INTERFACE
...
webusb work with linux & macos
2019-07-26 20:14:56 +07:00
hathach
d2b60b6755
webusb work great with linux
2019-07-26 11:36:30 +07:00
hathach
8ba71be6ee
more webusb + vendor
2019-07-25 16:52:20 +07:00
hathach
caf2b6d463
move tud_vendor_control_* to usbd.h
2019-07-24 23:12:31 +07:00
hathach
2a543c0e79
update vendor device similar to cdc read/write
...
maybe refactor later
2019-07-24 23:07:30 +07:00
hathach
56b656c768
Merge branch 'master' into develop
2019-07-24 17:08:19 +07:00