summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-29Add name to contributor listJan Dümpelmann
2020-06-26Remove EP0 remaining bytes manipulationJan Dümpelmann
Renaming edpt_xact to edpt_schedule_packets
2020-06-18Add transaction (edpt_xact) as sub transferJan Dümpelmann
A transfer can have one or multiple transactions. Usually only EP0 splits one xfer into multiple xact.
2020-05-15Allow EP0 to use xfer sizes larger than one packetJan Dümpelmann
2020-05-15Interrupt time improvementsJan Dümpelmann
2020-05-08Synopsys OUT EP improvements:Jan Dümpelmann
- Use register based XFRSIZ to determine transfer complete (xfer->queued_len and xfer->short_packet were deleted) - Pop out as many RxFIFO data entries as available within a IRQ call - less application interruption due to XFRC calls
2020-05-08Merge pull request #395 from hathach/define-log-printfHa Thach
add CFG_TUSB_DEBUG_PRINTF() for log retargeting
2020-05-08add CFG_TUSB_DEBUG_PRINTF() for log retargetinghathach
2020-05-08Merge pull request #393 from xobs/fix-debug-warningHa Thach
device: fix build warning when CFG_TUSB_DEBUG >= 2
2020-05-07device: fix build warning when CFG_TUSB_DEBUG >= 2Sean Cross
The function is defined inside of a function body which generates a warning. Circuit Python treats these warnings as errors, and so refuses to build with debugging enabled: ../../lib/tinyusb/src/device/usbd_control.c: In function 'usbd_control_xfer_cb': ../../lib/tinyusb/src/device/usbd_control.c:195:19: error: nested extern declaration of 'usbd_driver_print_control_complete_name' [-Werror=nested-externs] 195 | extern void usbd_driver_print_control_complete_name(bool (*control_complete) (uint8_t, tusb_control_request_t const *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [../../py/mkrules.mk:55: build-simmel/lib/tinyusb/src/device/usbd_control.o] Error 1 Move the declaration to the top of the function to silence this warning. Signed-off-by: Sean Cross <[email protected]>
2020-05-07Merge pull request #391 from kasjer/kasjer/stm32l476disco-clock-configurationHa Thach
stm32l476disco clock configuration
2020-05-07Merge pull request #392 from kasjer/kasjer/change-package-type-to-sdkHa Thach
Change mynewt package type to sdk
2020-05-07Change mynewt package type to sdkJerzy Kasenberg
For normal mynewt packages newt tool wants to have specific folder structure. It wants to have src and include directories, and only include (and arch related) directory is added to compiler include search list. Since TinyUSB has different folder structure newt tool will not add anything to -I directives and those would need to be specified as pkg.cflags: "-I@tinyusb/src" Recent change to newt tool allowed to add specific include directories for external (sdk) packages so just including package will add necessary -I to build commands. This commit changes package type to sdk and specifies src as include root for TinyUSB. For older newt tool adding sdk and include_dirs does not break build.
2020-05-06stm32l476disco: Fix system clock setupJerzy Kasenberg
Code suggested that PLL with MSI is used resulting in 80MHz clock. When in fact PLL was not configured and system clock was left at MSI 48MHz. This happens because PLL configuration requires that SysTick interrupt has interrupt priority level configured correctly. As it seems ST code intentionally setups variable uwTickPrio to invalid value and later when it is not setup by user code configuration of oscillator will fail before PLL is configured. This simple changes systick priority to some valid value that allows clock to use PLL.
2020-05-06stm32l476disco: fix uninitialized filed usageJerzy Kasenberg
Field PLLState was not initialized in RCC_OscInitStruct.PLL in function SystemClock_Config(). Value is used in HAL_RCC_OscConfig() regardless of oscillator. In lucky case value would be 0 RCC_PLL_NONE and nothing would happen. If value was incorrect following line would end up in assert: assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); If value was valid but no RCC_PLL_NONE pll could be configured with some other random values. Setting PLLState to RCC_PLL_NONE eliminates potential problem.
2020-05-04Merge pull request #387 from duempel/redesign_transmit_synopsysHa Thach
Redesign of Synopsys device transmission
2020-05-04clean upJan Dümpelmann
renaming function and variables changing indent size
2020-05-02Merge pull request #389 from hathach/fix-samgHa Thach
Fix SAMG
2020-05-02minor update net examplehathach
samg failed to run net example
2020-05-02abstract all UDP_CSRhathach
2020-05-02clean uphathach
2020-05-02fix EP0 data toggle issuehathach
2020-05-02remove toggle walkaround, fix control stall race conditionhathach
2020-04-30Merge pull request #388 from hathach/fix-samd-setup-raceHa Thach
fix dcd samd race condition with setup packet
2020-04-30fix dcd samd race condition with setup packethathach
setup packet can complete together with previous status (in & out). Always make sure to prepare valid buffer for holding setup packet when queuing control status.
2020-04-29Changed switch into if statementsJan Dümpelmann
2020-04-29Redesign of Synopsys device transmissionJan Dümpelmann
Changes: - checking if tx buffer empty interrupt is masked - process more than one packet in isr - mask tx buffer empty just after all bytes were written - use of transmit_fifo_packet instead of transmit_packet
2020-04-29Merge pull request #386 from hathach/follow-383Ha Thach
Follow 383
2020-04-29fix ci board test with esp32hathach
2020-04-29remove the use of TU_VERIFY_HDLRhathach
2020-04-29fix esp32 ci adding FREERTOS STATIC to sdkconfig defaulthathach
2020-04-29Merge pull request #383 from kasjer/kasjer/fox-busy-flag-race-conditionHa Thach
Fix endpoint busy flag race condition
2020-04-28Merge pull request #380 from hathach/fix-usbnet-synopsysHa Thach
synopsys turn off TX FIFO Empty for EPIN if all bytes are written
2020-04-28fix typohathach
2020-04-27Fix endpoint busy flag race conditionJerzy Kasenberg
Busy flag was set to true after call to dcd_edpt_xfer(). In some cased it was possible that transfer finished before function ended. In this case busy flag could be set to false before it was set to true. Then setting it to true after dcd_edpt_xfer() made edpoint busy forever. This change marks endpoint as busy before transfer is started to avoid race condition.
2020-04-27added comment for hw clearing TXFEhathach
2020-04-27TXFE is read only bithathach
2020-04-26revert a change to net driverhathach
2020-04-26sync synopsis fix for esp32s2hathach
2020-04-26turn off TX FIFO Empty for EPIN if all bytes are writtenhathach
fix dcd synopsys issue with usbnet #289
2020-04-26add TODO for usbnet clean uphathach
2020-04-26clean up log messagehathach
2020-04-26Merge pull request #379 from hathach/add-usbd-edpt-openHa Thach
add usbd edpt open
2020-04-26fix missing debug log macroshathach
2020-04-26add usbd edpt openhathach
- RTT mode is blocking to prevent log lost - Improve logging message
2020-04-25Merge pull request #378 from kasjer/kasjer/synopsys-txfe-interrup-loopHa Thach
synopsys: Reduce interrupt time for IN ZLP
2020-04-24synopsys: Reduce interrupt time for IN ZLPJerzy Kasenberg
For IN endpoints output FIFO is filled in interrupt, therefor before endpoint is enabled, DIEPTSIZ is set with correct size of packet. Then endpoint is enabled and FIFO empty interrupt is enabled. This works fine except for the ZLP. Enabling FIFO empty interrupt results in interrupt handler being called all the time because there is nothing to put in the FIFO. Eventually it ends when IN token is received and empty packed is transmitted out. This change does not enable FIFO empty interrupt for ZLP reducing CPU load.
2020-04-23Revert "Merge pull request #359 from versioduo/midi-flow-control"hathach
This reverts commit 1d33aa9b6f7940f9eac07ce684515856940175da, reversing changes made to 718db7e5369df57b0f49a563737e6e0446fd4c4d.
2020-04-23Merge pull request #376 from hathach/add-more-exampleHa Thach
Add dynamic configuration example
2020-04-23complete the midi output for dynamic configurationhathach