Commit Graph

1871 Commits

Author SHA1 Message Date
hathach 6752a71264
usb work when sd is init first 2019-01-29 18:02:25 +07:00
hathach ae560bd825
fix segger debug with SD
- Add macro NO_VTOR_CONFIG
- In Properties -> Debugger -> Debugger Options -> Start From Entry
Point Symbol, set to 'No.' This is because we should enter our
SoftDevice's ResetHandler(), not our applications. For more information,
see RK's comment below.
2019-01-29 17:31:32 +07:00
hathach c81b56eb45
nrf5x usb init before sd works 2019-01-29 17:05:53 +07:00
hathach d8b361fdaa
add S140 v6 build config for nrf5x 2019-01-29 14:15:13 +07:00
hathach cff217fb47 Merge branch 'devlocal' into develop 2019-01-25 16:04:06 +07:00
William D. Jones 9e76635465 stm32f4: Clarify required FIFO sizes and observed behavior. 2019-01-24 04:18:53 -05:00
William D. Jones fe7f304ad4 stm32f4: Start adding OUT interrupt handling, fix buffer sizes; RXFIFO
too low for some reason, TXFIFO EP0 used wrong bitmask.
2019-01-24 03:06:57 -05:00
hathach bd53256126
fix #32 2019-01-23 19:06:37 +07:00
William D. Jones 01117fb965 stm32f4: Finish dcd_edpt_xfer implementation (OUT xfers not functional yet). 2019-01-23 03:31:44 -05:00
William D. Jones b41f610514 stm32f4: Remember to turn off TXFE when IN xfer is done; it not
automatically cleared like EPENA.
2019-01-23 02:24:29 -05:00
William D. Jones 836d13fc4b stm32f4: Fix FIFO write logic (requires 32 bit writes). 2019-01-23 02:06:07 -05:00
William D. Jones aa9a7e882c stm32f4: Properly set control endpoint max packet size. 2019-01-23 00:55:45 -05:00
William D. Jones 17e418bce4 stm32f4: Fix incorrect xfer length for short packet IN xfers. 2019-01-23 00:44:55 -05:00
William D. Jones d1150432fe stm32f4: Remove assumption that EP 0 is only control endpoint. 2019-01-23 00:12:33 -05:00
William D. Jones 51c0ce3f6b stm32f4: Implement interrupt handling for IN packets (first signs of life). 2019-01-22 23:51:58 -05:00
William D. Jones 43c890615a stm32f4: Start implementing dcd_edpt_xfer. 2019-01-22 00:42:43 -05:00
William D. Jones 69f5f18fd6 stm32f4: Remove some template commented code. 2019-01-21 23:45:40 -05:00
William D. Jones 71e1b9d045 stm32f4: Setup packet events in tinyusb now functional. 2019-01-19 21:12:20 -05:00
William D. Jones 5720aef7bb stm32f4: Implement setup packing receive, fix typo in FIFO receive size. 2019-01-19 20:03:18 -05:00
William D. Jones 06c15bf913 stm32f4: Complete initialization for EP0 (packet handling not implemented). 2019-01-19 17:56:53 -05:00
William D. Jones 657d3e2983 stm32f4: Enable USB peripheral, fix typos in register writes. 2019-01-13 18:36:18 -05:00
William D. Jones 03cbd406cb dcd_stm32f4: Add USB init skeleton based on manual (does not enumerate). 2019-01-11 19:53:24 -05:00
William D. Jones 0f9fa5956f bsp.board_stm32f407g_disc1: Switch to external oscillator (more precise). 2019-01-11 13:47:44 -05:00
William D. Jones e73e016a8c bsp.stm32f407g_disc1: Initialize USB clock and pins. 2019-01-11 10:20:14 -05:00
William D. Jones 75fda7d638 cdc_msc_hid: Ensure example compiles again- add missing prototypes,
fix incorrect prototypes, clean up.
2019-01-10 10:24:45 -05:00
William D. Jones b367baeaf1 Merge branch 'master' of https://github.com/hathach/tinyusb into stm32f4 2019-01-10 09:58:06 -05:00
William D. Jones e4d6f336f0 cdc_msc_hid: Work around LTO bug in gcc where order of compile matters
(bug #1747966).
2019-01-09 11:38:43 -05:00
hathach 5804e56e3c
Merge pull request #31 from tannewt/remove_txbuf
Remove txbuf in favor of fifo.
2019-01-09 13:14:02 +07:00
Scott Shawcroft 52abbec7c5
Remove txbuf in favor of fifo.
Fifo incurs a second copy into a USB buffer but this ensures the
correct USB buffer alignment. Some LPC chips require 64 byte
alignment that txbuf couldn't do.
2019-01-08 14:10:40 -08:00
hathach 7016d7fa54
Merge pull request #30 from tannewt/midi
Add MIDI support
2019-01-07 23:45:33 +07:00
Scott Shawcroft aa281521a6
Fix the test 2019-01-04 18:32:42 -08:00
Scott Shawcroft ebbd8578af
Change travis for makefile. 2019-01-04 18:29:52 -08:00
Scott Shawcroft 048fc9694c
Split out txbuf and add unit test. 2019-01-04 18:27:00 -08:00
Scott Shawcroft a3173b8de4
Add USB Midi support.
It also introduces a txbuffer which copies data into it but passes
the buffer straight to the USB rather than another copy.
2019-01-04 12:16:27 -08:00
hathach e6224bccf9
adding makefile support for nrf5x
got undefined reference to `_start'
2019-01-02 22:35:42 +07:00
hathach 4bcd3f9a8f
more readme 2018-12-29 14:39:28 +07:00
hathach 4e2a79a8bb
update makefile 2018-12-29 14:38:36 +07:00
hathach 6b0a747d28
update readme 2018-12-29 14:36:57 +07:00
hathach 6ed96cb93b
Merge pull request #27 from hathach/devlocal
clean up & add dcd_get_frame_number()
2018-12-21 14:23:36 +07:00
hathach 257d60fe1a white spaces 2018-12-21 12:58:53 +07:00
hathach 6f17b4e019 change to dcd_get_frame_number 2018-12-21 12:46:20 +07:00
hathach 426064201a fix samd build 2018-12-19 13:16:42 +07:00
hathach 902697ca07 add dcd_get_microframe() 2018-12-17 12:14:11 +07:00
hathach 455da57f9d docs clean up 2018-12-17 12:08:11 +07:00
hathach 10021eda67 minor readme update 2018-12-15 13:13:22 +07:00
hathach 351f0d7d78 merge binary.h into tusb_common.h 2018-12-14 15:45:49 +07:00
hathach 2a60427bdc rename bit_* helper to tu_bit_*, BIT_* to TU_BIT_* for consistency 2018-12-14 15:30:54 +07:00
hathach a3713f801d clean up compiler attribute 2018-12-14 13:08:21 +07:00
hathach 27208ad2fd
Merge pull request #25 from hathach/devlocal
remove OSAL_TASK_DEF, osal_task_create
2018-12-13 15:28:04 +07:00
hathach edf885ca46 white spaces 2018-12-13 15:25:43 +07:00