| Age | Commit message (Collapse) | Author |
|
Optimize tusb_fifo transfer speed.
|
|
Signed-off-by: Mengsk <[email protected]>
|
|
detect if SD is actually present on the flash using SD magic
|
|
|
|
Add IAR EWARM compiler attribute and endian support.
|
|
- 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
|
|
|
|
add CFG_TUSB_DEBUG_PRINTF() for log retargeting
|
|
|
|
device: fix build warning when CFG_TUSB_DEBUG >= 2
|
|
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]>
|
|
stm32l476disco clock configuration
|
|
Change mynewt package type to sdk
|
|
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.
|
|
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.
|
|
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.
|
|
even with SOFTDEVICE_PRESENT defined, SD may not be present on actual
flash.
|
|
Redesign of Synopsys device transmission
|
|
- add hcd_uframe_number() API, update EHCI to return uframe number
- get host running on ea4357
|
|
renaming function and variables
changing indent size
|
|
|
|
|
|
Fix SAMG
|
|
samg failed to run net example
|
|
|
|
|
|
|
|
|
|
fix dcd samd race condition with setup packet
|
|
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.
|
|
|
|
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
|
|
Follow 383
|
|
|
|
|
|
|
|
|
|
Fix endpoint busy flag race condition
|
|
synopsys turn off TX FIFO Empty for EPIN if all bytes are written
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
fix dcd synopsys issue with usbnet #289
|
|
|
|
|
|
add usbd edpt open
|
|
|