3631 Commits

Author SHA1 Message Date
Reinhard Panhuber
9ddcfc09d7 Fix wrong comments, rename pos to offset, rename overflow(). 2020-09-25 15:58:28 +02:00
Reinhard Panhuber
52c9a467b4 Fix bug in modulo substitute. 2020-09-23 21:36:30 +02:00
Reinhard Panhuber
9bdeafb295 Change maximum depth to 2^15 which allows for a fast modulo substitute.
Thus, however, overflows are detectable only for one time FIFO depth.
2020-09-23 20:48:03 +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
Reinhard Panhuber
21299f90fa Final cleanup. 2020-09-19 11:46:43 +02:00
Reinhard Panhuber
9dfb78e9d8 Tested, working. 2020-09-15 20:40:41 +02: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
Reinhard Panhuber
349c0f640e Implementation done, yet to be tested. 2020-09-14 18:24:08 +02: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
Reinhard Panhuber
62a8e39c9b Merge remote-tracking branch 'upstream/master' 2020-09-12 10:29:56 +02: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
Reinhard Panhuber
4e789b240d Start of sampling works. 2020-09-06 11:37:59 +02:00
Reinhard Panhuber
12562fc966 Merge remote-tracking branch 'upstream/master' into uac2 2020-09-04 16:23:39 +02: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
Reinhard Panhuber
338e96fa82 Remove tud_audio_n_write_ep_in_buffer() as long as ISO EPs are not RBs. 2020-09-03 18:09:46 +02: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
Reinhard Panhuber
8f0693346c Allow epin_buf to be written directly into in case no TX FIFOs are used.
This is helpful if you have already encoded audio data and want an
efficient way to send it. However, this approach is NOT THREADSAFE so
far and works realiably ONLY IF tud_audio_n_write_ep_in_buffer() is NOT
called form an interrupt!
2020-09-01 11:26:16 +02:00
hathach
be708bb8a4 Merge branch 'master' into update-host 2020-09-01 12:02:25 +07:00
Reinhard Panhuber
83bd214203 Fix comment. 2020-08-29 13:26:41 +02:00
Reinhard Panhuber
43c4b53635 Fix CFG_TUD_AUDIO_RX_FIFO_SIZE defines. 2020-08-29 13:24:10 +02:00
Reinhard Panhuber
b9c9cfdbac Change min to tu_min16. 2020-08-29 13:22:21 +02:00
PanRe
e3840d6bc0
Merge pull request #1 from kasjer/kasjer/uac2
audio_device: Fix small issues here and there
2020-08-29 13:09:47 +02:00