Commit Graph

3488 Commits

Author SHA1 Message Date
Niklas Hauser 78477077b4 Use C++11 static_assert when available 2020-10-03 20:17:36 +02:00
Ha Thach 8b2c822557
Merge pull request #512 from mzero/fix-midi-sysex
Fix a bug in writing SysEx messages.
2020-09-23 11:23:53 +07:00
Ha Thach 9a0a78c52e
Merge pull request #514 from kasjer/kasjer/fix-nrf52-edpt_dma_start
nrf52: Fix edpt_dma_start() wrong condition check
2020-09-16 00:43:21 +07:00
Jerzy Kasenberg 62a76c0e04 nrf52: Fix edpt_dma_start() wrong condition check
Operator < used in while condition was obviously incorrect.
Loop starts with checking if unsigned variable is less then 0.
This condition is always false.

This reverses condition to follow intention of of the code.
2020-09-15 16:08:23 +02:00
Ha Thach 745c15d5b5
Merge pull request #508 from hathach/fix-edpt-race
Fix edpt xfer race condition
2020-09-14 23:56:21 +07:00
hathach 9c0d15fc43 more const 2020-09-14 22:23:59 +07:00
hathach 23e6ee2ea2 cdc device: claim endpoint before checking fifo availability
- add pre-check to reduce mutex lock in usbd_edpt_claim
2020-09-14 22:14:31 +07:00
Mark Lentczner 3b0216d3bf
Update midi_device.c
Fix a bug in writing SysEx messages.

At the start of a new USB packet (4 bytes), while in the middle of a SysEx, the code mistakenly
set the buffer length to 4, not the target length. As a consequence, the 3rd and 4th bytes from
the last packet were included, after every byte of the SysEx after the first packet of three.

The fix is simple, as it was just a typo, as can bee seen from the other branches in the same
section of if/else statements: At the start of a new packet, the code should set up the target
length... the buffer length should be left at 2 (as set on line 180).
2020-09-13 15:05:18 -07:00
Ha Thach 3d393df2d0
Merge pull request #510 from hathach/fix-hid-gamepad-template
correct the TUD_HID_REPORT_DESC_GAMEPAD
2020-09-13 15:15:41 +07:00
hathach 5931d19666 correct the TUD_HID_REPORT_DESC_GAMEPAD 2020-09-13 15:01:20 +07:00
hathach 25bb8830c5 doc: merge example/readme.md into docs/getting_started.md 2020-09-12 09:26:41 +07:00
hathach 1804dba615 typo 2020-09-12 08:48:49 +07:00
hathach ce4a9b9c3a clean up 2020-09-11 00:14:07 +07:00
hathach 801f8b5b38 update claim edpt for hid and midi 2020-09-10 23:32:08 +07:00
hathach ed6d48b81e typo 2020-09-09 16:45:54 +07:00
hathach fe1b5dfa23 clean up 2020-09-09 16:29:45 +07:00
hathach 33f0a18523 update cdc edpt read 2020-09-09 16:25:31 +07:00
hathach 8b9893cada introduce optional usbd_edpt_claim, usbd_edpt_release which can be used to gain exclusive access to usbd_edpt_xfer 2020-09-09 15:48:11 +07:00
hathach 10d5dac913 update doc 2020-09-04 11:20:09 +07:00
Ha Thach ed7a0de3ab
Merge pull request #505 from hathach/update-host
Update host
2020-09-04 10:46:48 +07:00
hathach a8e538efe7 clean up 2020-09-04 01:35:32 +07:00
hathach 5fb3d439b3 update ci to also build host example 2020-09-04 01:32:30 +07:00
hathach 865ebf7c5d fflush(stdout) for keyboard host example 2020-09-04 00:50:10 +07:00
hathach 7828c396db keyboard host work as proof of concept 2020-09-04 00:23:57 +07:00
hathach 35aee4a6af more hid host work 2020-09-03 23:57:51 +07:00
hathach 4ecedc70c8 fix vector assign 2020-09-03 23:48:56 +07:00
hathach ef651e0734 fix #449 remove obsolete pipehandle from hid host 2020-09-03 17:07:29 +07:00
hathach 1d83ad0ebb rename tuh_isr/hcd_isr to tuh_int_handler/hcd_int_handler 2020-09-03 13:12:25 +07:00
hathach 1cee2da7b9 revert to use __USE_LPCOPEN
properly init fpu on LPC M4
2020-09-03 12:58:09 +07:00
hathach c7d2d0ae29 ohci work, tested with lpc1769 2020-09-02 01:40:04 +07:00
hathach 52b5748e8d fix ci build 2020-09-02 00:56:43 +07:00
hathach c492aef4c7 revert to use float-abi
define __USE_CMSIS instead of __USE_LPCOPEN will have startup enable FPU
on startup properly. Although it is only relevant to lpx43/40 series,
change all to __USE_CMSIS for consistency
2020-09-02 00:46:08 +07:00
hathach f17d6f15e0 fix unit test 2020-09-01 23:39:29 +07:00
hathach 84425c50b3 add more logging to host stack
tested host with lpc4357, don't use fpu with lpc m4 since it seems to
cause hardfault (stack does not make use of fpu anyway).
2020-09-01 19:16:50 +07:00
hathach f4e3c6fd8e clean up 2020-09-01 17:12:31 +07:00
hathach be708bb8a4 Merge branch 'master' into update-host 2020-09-01 12:02:25 +07:00
Ha Thach f10b8145af
Merge pull request #497 from hathach/improve-midi
Improve midi
2020-08-27 18:45:22 +07:00
Ha Thach b73049f9d2
Merge pull request #499 from hathach/bsp-itsy-nrf52840
add itsybitsy nrf52840 board support
2020-08-27 17:16:39 +07:00
hathach 7a443d6bea add itsybitsy nrf52840 board support 2020-08-27 16:40:24 +07:00
hathach 2d8787cdeb fix typo 2020-08-24 15:29:34 +07:00
hathach a1b7e767af improve midi
- fix #436 tud_midi_rx_cb() not invoked
- fix xfer_cb() not handle ep in
- add ZLP if needed
2020-08-24 14:31:46 +07:00
Ha Thach 19f08a02f6
Merge pull request #486 from kasjer/kasjer/add-endpoint-close-to-synopsys
Add dcd_edpt_close() to synopsys
2020-08-24 13:10:46 +07:00
Ha Thach 2b1adbb7e5
Update README.md 2020-08-22 19:13:43 +07:00
Ha Thach 88da422c7c
Merge pull request #493 from hathach/followup-490-samd11
add OPT_MCU_SAMD11
2020-08-22 19:12:11 +07:00
hathach 9d3a9cf546 add OPT_MCU_SAMD11
skip ci build for example that need more ROM/RAM could fit into SAMD11
2020-08-22 18:46:19 +07:00
Ha Thach 97ca7a9549
Merge pull request #490 from ktemkin/master
add support for SAMD11 devices / add samd11_xplained board
2020-08-22 12:54:51 +07:00
Katherine Temkin 91f7ce9769 add support for SAMD11 devices / add samd11_xplained board 2020-08-21 13:15:07 -06:00
Ha Thach fe21c60507
Merge pull request #491 from hathach/fix-samg55-build
fix samg55 ci build
2020-08-21 12:33:06 +07:00
hathach 76fe8ac612 fix samg55 ci build 2020-08-21 12:19:38 +07:00
Ha Thach e5d622b749
Merge pull request #434 from gh2o/master
Add TX callback to CDC device
2020-08-21 11:14:06 +07:00