Commit Graph

1871 Commits

Author SHA1 Message Date
hathach 2ad4751cf4 Merge branch 'master' of github.com:hathach/tinyusb into develop 2019-03-19 16:58:36 +07:00
hathach 1c89090d18
Merge pull request #40 from hathach/develop
stm32f4 port (Cont)
2019-03-19 02:58:09 -07:00
hathach 1062910348 readme clean up 2019-03-19 16:51:41 +07:00
hathach 0fcd263df3 stm32f place startup*.o first in linking order due to gcc flto bug
ref: https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966
2019-03-19 16:41:00 +07:00
hathach 11eed2f026 update flash-jlink target for m0 and m4 board 2019-03-17 15:42:57 +07:00
hathach f932cf3854 stm32 update fifo in comment 2019-03-17 15:16:52 +07:00
hathach e39b4199b0 add stm32f4 board to travis build 2019-03-16 02:25:56 +07:00
hathach d56e7fd913 adding flash (jlink) 2019-03-16 01:34:26 +07:00
hathach e49efde730 update ses project file 2019-03-15 18:48:14 +07:00
hathach 5e92d67015 stm32 update TX Fifo for edpt IN, both CDC + MSC work great
- call dcd_event_xfer_complete() when enough bytes received
- add dcd_get_frame_number()
2019-03-15 18:43:09 +07:00
hathach eda56769b9 dcd_set_address include status response, usbd control stall both control in and out 2019-03-13 23:14:48 +07:00
hathach 195a44172a update stm32 dcd stall control endpoint 2019-03-13 16:54:10 +07:00
hathach ddfc32f5ec adding segger project for stm32f4 2019-03-10 01:24:13 +07:00
hathach 0ff7d609f0 add flash target for stm32 board using stm32cubeprogammger cli 2019-03-09 01:04:26 +07:00
hathach 57d069981f fix asm file .S (nrf) and .s (stm) 2019-03-05 23:24:33 +07:00
hathach c0737f928f
Merge pull request #38 from cr1901/stm32f4
STM32F4 Family Support
2019-03-05 05:47:40 -08:00
hathach 8418cb816b
Merge branch 'master' into stm32f4 2019-03-05 05:45:42 -08:00
William D. Jones 49aa6ec251 st: Use submodules for system files when possible, use more up to date
files otherwise. Update STM32F4-DISCOVERY demo and board.mk to reflect
changes.
2019-03-04 10:41:05 -05:00
hathach a19455d1ff follow up to PR #39 2019-03-04 11:51:36 +07:00
hathach f23affbb0a
Merge pull request #39 from gpshead/strncpy-msc_dev_ids
Fixes #33: Remove invalid use of strncpy()
2019-03-03 20:37:12 -08:00
Gregory P. Smith fa8141f31f Fixes #33: Remove invalid use of strncpy().
This was causing a stringop-truncation compiler warning in gcc 8 when
the #defined values being copied from were string literals.
 `error: 'strncpy' output truncated before terminating nul copying 8 bytes from a string of the same length [-Werror=stringop-truncation]`

These fields aren't NUL terminated C strings, they are a fixed width buffer
that is supposed to be space (0x20) padded.
2019-03-03 19:41:41 -08:00
William D. Jones c95ad426c6 stm32f4: Refactor IN and OUT endpoint interrupt handling into their own functions. 2019-02-27 11:01:08 -05:00
William D. Jones f43161353c stm32f4: Refactor RX FIFO read into its own function; remove RXFLVL
resetting (read only) and masking (no nested ints).
2019-02-27 10:39:37 -05:00
William D. Jones c51b11f103 Move all paths using "stm" to "st" subdirectories, update config.mk. 2019-02-27 09:15:07 -05:00
William D. Jones b3137cdee3 examples/cdc_msc_hid: Revert local changes to tusb_config.h. 2019-02-27 08:30:03 -05:00
hathach 55874813f8
Merge pull request #37 from hathach/develop
mscd: send scsi status before invoke read10/write10/scsi complete callback
2019-02-21 10:35:49 -08:00
hathach f2d76a39eb mscd: send scsi status before invoke read10/write10/scsi complete callback 2019-02-22 01:31:13 +07:00
hathach 6645be65f5
Merge pull request #36 from tannewt/fix_write_protect
Fix write protected MSC. The bits were flipped.
2019-02-20 20:09:07 -08:00
Scott Shawcroft c870efffc0
Fix write protected MSC. The bits were flipped. 2019-02-20 15:12:36 -08:00
William D. Jones 5a1c5cf0b7 stm32f4: Clarify comments and disable OTGINT; fixes stack reset on
cable disconnect, and we don't use OTG right now.
2019-02-14 23:41:16 -05:00
William D. Jones 5a34a9de69 stm32f4: Implement STALL logic for endpoints. 2019-02-08 16:46:12 -05:00
William D. Jones 5526d840a8 stm32f4: Do some comment/dead code (per 6048a3b) cleanups. 2019-02-08 12:05:44 -05:00
William D. Jones c7a52829f4 Clarify receive_packet comment, add SOF handling. 2019-02-08 11:51:29 -05:00
William D. Jones 5645d44127 stm32f4: Add for-loop guard for transmit_packet xfers < 4 chars. 2019-02-07 21:25:27 -05:00
William D. Jones 28ccc8bd0b stm32f4: Fix bad implementation of receive_packet function. 2019-02-07 21:23:00 -05:00
William D. Jones b819b33a68 stm32f4: Make sure interrupts enabled for non-zero endpoints. 2019-02-07 20:29:48 -05:00
William D. Jones 4dc6746a68 stm32f4: Implement dcd_edpt_busy. Don't set EPENA for activated endpoints. 2019-02-05 13:22:39 -05:00
William D. Jones 747815f03b stm32f4: Ensure endpoints enabled properly, using correct FIFOs. 2019-02-04 20:30:47 -05:00
William D. Jones f5d9e7e560 stm32f4: Implement dcd_edpt_open. 2019-01-30 09:27:27 -05:00
William D. Jones 7aadaa3ef2 stm32f4: Handle only one setup packet at a time as a workaround. Device
enumerates.
2019-01-30 05:28:48 -05:00
William D. Jones a9e188a3d2 stm32f4: Implement dcd_set_address. 2019-01-30 02:48:49 -05:00
William D. Jones fcabc717d1 Small cleanups (remove inaccurate comment, set EP0 max size based on speed). 2019-01-30 02:03:19 -05:00
William D. Jones 8629f0c108 Properly schedule OUT xfers on a packet basis. 2019-01-30 02:01:09 -05:00
William D. Jones 6918db3639 stm32f4: Add receive packet function. 2019-01-30 01:42:17 -05:00
William D. Jones 9ce29f5ee6 stm32f4: Refactor packet transmit into subroutine. 2019-01-30 00:49:00 -05:00
hathach 29b49199be
Merge pull request #34 from hathach/develop
add tusb_inited(), better compatible with nrf SD
2019-01-29 20:13:17 +07:00
hathach 1a84f5da54
nrf5x Let application decide USBD_IRQn priority 2019-01-29 19:42:31 +07:00
hathach 59c1b4b427
zero init internal class/device data 2019-01-29 19:39:34 +07:00
hathach e4e8413acc
add tusb_inited() API, check for inited() before running device/host task 2019-01-29 19:05:07 +07:00
hathach 777f41a066
clean up 2019-01-29 18:47:29 +07:00