Commit Graph

1646 Commits

Author SHA1 Message Date
hathach 71fb6469d4 separate CFG_TUSB_MEM_SECTION and CFG_TUSB_MEM_ALIGN to
- CFG_TUD_MEM_SECTION and CFG_TUD_MEM_ALIGN
- CFG_TUH_MEM_SECTION and CFG_TUH_MEM_ALIGN
- fix missing mem section and align for host
2023-03-24 14:05:21 +07:00
hathach 4cee79af27
rename and change default pio usb pin to adafruit feather usb host 2023-03-23 13:08:09 +07:00
hathach f75a019732
bsp lpc17 2023-03-19 18:10:26 +07:00
hathach 934baae9b8
bsp lpc51 2023-03-19 17:58:20 +07:00
hathach 1154b7a9e7
add mising lpc13 file 2023-03-19 17:40:44 +07:00
hathach 64c6b715ce
bsp lpc13 2023-03-19 17:27:45 +07:00
hathach 80be1aa13d
bsp lpc11 2023-03-19 17:19:33 +07:00
hathach aa11e21358
add mising file 2023-03-19 13:15:05 +07:00
hathach b46632ba07
bsp for f2 f3 2023-03-19 13:11:41 +07:00
hathach 322f58ea85
add CFLAGS_SKIP to improve sam compile time 2023-03-19 12:47:05 +07:00
hathach ab0da3c30b
group stm32l0 2023-03-19 12:01:33 +07:00
hathach 3944f1c4da
group same5x 2023-03-19 11:28:06 +07:00
hathach ec0f25d095
fix ci with kl25z 2023-03-18 20:30:49 +07:00
hathach 1fc203b085
more update to kinetis bsp 2023-03-18 19:50:24 +07:00
hathach 2d187777c0
merge kinetis into its own family in bsp 2023-03-18 18:30:51 +07:00
Bob Paddock f9b8a0667a Add support for NXP FRDM_K32L2A4S eval board. 2023-03-18 16:50:50 +07:00
hathach 1ed04ad05d
update mm32sdk with idndef for SYSCLK_FREQ_XXMHz and SYSCLK_HSI_XXMHz
add HSE_VALUE define for each board with 8mhz, 12mhz accordingly
2023-03-17 19:46:22 +07:00
hathach b3ecf82196
whitespace 2023-03-17 19:31:45 +07:00
Koen De Vleeschauwer 899e7cc4f9 add board: DshanMCU Pitaya Lite 2023-03-17 19:31:06 +07:00
hathach 25d802532c
fix spelling 2023-03-17 18:34:43 +07:00
hathach 3623ba1884
fix trailing space and new line
temporarily disable codespell
2023-03-17 16:12:49 +07:00
Ha Thach 16daad8164
Merge pull request #1960 from hathach/fix-host-enumerate-mul-device
Fix host enumerate multiple devices from multiple host controllers
2023-03-17 15:27:56 +07:00
Ha Thach 96d064e923
Merge pull request #1860 from howard0su/pico_freertos
Allow config OS for RP2040
2023-03-17 14:57:13 +07:00
hathach 317177c83d
update host example, add pio-pico-usb for rp2040 2023-03-17 14:06:25 +07:00
Ha Thach 6b84a29f8c
Merge pull request #1391 from perigoso/renesas-ra
Renesas ra family support
2023-03-17 11:28:54 +07:00
hathach e7d212f337
more fix 2023-03-16 23:21:15 +07:00
hathach ffdffc7e06
rename FREERTOS_PORT to FREERTOS_PORTABLE_SRC
also fix trailing spaces
2023-03-16 23:11:11 +07:00
hathach e0b1de923c
add ra4m1_ek board 2023-03-16 22:43:58 +07:00
hathach 2a10d5c20b
rename ra board name 2023-03-16 11:39:53 +07:00
hathach bc2127b330
rename file link to rusb2 2023-03-16 11:03:53 +07:00
tyustli fabe86362b fix HAL_Delay no effect bug on st platform 2023-03-16 08:28:19 +08:00
hathach 7428a16d2d remove ra submodules 2023-03-11 08:23:21 +07:00
hathach fe77976765 Merge branch 'master' into renesas-ra 2023-03-11 08:15:23 +07:00
hathach 206a9a21e6 fix ci 2023-03-10 23:54:30 +07:00
hathach 7e6a6e75bc remove the rest of mcu submodules 2023-03-10 23:41:27 +07:00
hathach fb9180b6eb remove most of the submodules 2023-03-10 23:36:53 +07:00
hathach 76f43a7a16
starting to remove submodule cmsis5 and nrfx 2023-03-10 19:23:23 +07:00
Ha Thach 990fb6ae5c
Merge pull request #1931 from branalba/master
For STM32H7 BSP boards, initialize RCC_...TypeDef structs as empty
2023-03-09 17:21:58 +07:00
hathach 05e0205ad0
Merge branch 'master' into renesas-ra 2023-03-08 21:05:06 +07:00
Ha Thach 3387c86108
Merge pull request #1933 from kilograham/rp2040_llvm_tweaks
make rp2040 code compile cleanly with LLVM embedded toochain for ARM.
2023-03-06 15:24:51 +07:00
hathach 02478c57e5
more ci fix 2023-03-06 14:31:18 +07:00
hathach 9930863b41
fix iar ci 2023-03-06 12:45:47 +07:00
hathach 5c537c25f0
change gcc to 10.3 due to freeRTOS warning 2023-03-06 11:16:21 +07:00
hathach 7089535848
clean up f0 warnings 2023-03-03 16:13:12 +07:00
graham sanderson b7fa90e706 rp2040: Fixup lib and example compile for LLVM Embedded Toolchain for ARM 2023-03-02 14:32:22 -06:00
Brandon Alba 8c8f26f14e In some STM32H7 BSP variants, initialized RCC_PeriphCLKInitStruct instances as empty 2023-02-28 10:31:07 -08:00
Brandon Alba 787afbbcd0 Initialized all RCC init structs for all STM32H7 BSP variants as empty 2023-02-28 10:25:06 -08:00
Ha Thach b66c2d5f0a
Merge pull request #1796 from Sinitax/master
Fix ifdefs for disabled uart stdio in rp2040 family
2023-02-22 17:40:54 +07:00
hathach c01aee6c1a
revert some changes 2023-02-22 15:14:56 +07:00
hathach 78a014ef18
move check LIB_PICO_STDIO_UART to board.h 2023-02-22 15:13:27 +07:00
hathach 95acf3960d update pico-pio-usb to include data pid fix (0.5.1) 2023-02-14 16:11:33 +07:00
hathach fbf99b8e53 forget to add metro 1011 linker 2023-02-13 13:33:03 +07:00
hathach fb5fd22c73
add uf2 linker for metro m7 1011 2023-02-13 12:29:31 +07:00
hathach 49c621d510
fix typo 2023-02-13 12:04:33 +07:00
hathach 105f108661 add metro m7 1011 board def (not running yet) 2023-02-13 12:03:09 +07:00
caleb crome ec26c6163c Turn data cache on
This fixes https://github.com/hathach/tinyusb/issues/1894.  I'm not really
sure if this is the correct way to fix it, and I have not tested on all the
rest of the family members, however, this lets the i.MX1010 work again.

The problem:  the latest SDK update does not enable the data cache by default
This causes an assert in board_init() when attemping to control clock
gating.  I haven't investigated further as to *why* it's a problem, but it
is a problem.
2023-02-12 11:24:21 -08:00
graham sanderson 8d3f0ffb95 * don't force dependency on pico-pio-usb submodule
* suppress compiler warning/errors especially in pico-pio-usb
* disable use of pico-pio-usb on gcc 11.3+ for now as it doesn't compile
2023-02-06 10:07:39 -06:00
Ha Thach 49628d8c18
Merge pull request #1779 from P33M/rp2040_device_babble_fix
rp2040: avoid device-mode state machine hang
2023-01-31 21:38:27 +07:00
Ha Thach b03a688b24
Merge pull request #1768 from ftdigdm/port-ft90x
Port ft90x
2023-01-30 22:13:14 +07:00
hathach 25603c7269 iar L4 2023-01-30 20:11:59 +07:00
hathach 63a6fd3689 iar g4 2023-01-30 17:07:06 +07:00
Gordon McNab c07fb9a71e Merge branch 'port-ft90x' of https://github.com/ftdigdm/tinyusb into port-ft90x 2023-01-30 10:06:55 +00:00
hathach b464f91a6e iar h7 2023-01-30 17:04:39 +07:00
Gordon McNab 63e6aea5ac Removed unrequired header file from debugging. 2023-01-30 10:04:34 +00:00
hathach 6257123157 Merge branch 'master' into support-iar 2023-01-30 16:44:22 +07:00
Ha Thach 88f3279c3c
Merge branch 'master' into port-ft90x 2023-01-30 11:40:53 +07:00
Ha Thach 00c007ed68
Merge pull request #1866 from DRNadler/mimxrt1024_evk
Add support for NXP's mimxrt1024_evk evaluation board.
2023-01-30 11:18:10 +07:00
hathach 11384159e1 suppress rt1024 warnings and fix typo 2023-01-30 10:16:57 +07:00
Jerzy Kasenberg 42230df71a Add support for nucleo-h723zg
Mostly copy of stm32h743nucleo.
Linker script generated by STM32CubeIDE.

Since this device has only one HS USB
board.h contains few defines that map on
board HS USB to FS because there is no
ULPI chip mounted on Nucleo board.

For FreeRTOS build:
Set interrupt priority for HS always and for FS if exists.
2023-01-26 12:53:03 +01:00
Jerzy Kasenberg ba017d0669 boards/stm32h7 update gpio clocks
GPIOE was turned on twice, changed to missing GPIOF.
GPIOI is not present on all boards notably STM32H723
so clock in turned on only if present.
2023-01-26 12:02:07 +01:00
Jonathan Bell 73b0047efc rp2040: avoid device-mode state machine hang
Don't mark IN buffers as available during the last 200us of a full-speed
frame. This avoids a situation seen with the USB2.0 hub on a Raspberry
Pi 4 where a late IN token before the next full-speed SOF can cause port
babble and a corrupt ACK packet. The nature of the data corruption has a
chance to cause device lockup.

Use the next SOF to mark delayed buffers as available. This reduces
available Bulk IN bandwidth by approximately 20%, and requires that the
SOF interrupt is enabled while these transfers are ongoing.

Inherit the top-level enable from the corresponding Pico-SDK flag.
Applications that will not use the device in a situation where it could
be plugged into a Pi 4 or Pi 400 (for example, when directly connected
to a commodity hub or other host) can turn off the flag in the SDK.

v2: use a field in hw_endpoint to mark pending.

v3: Partial rewrite following review comments

- Stub functions out if the workaround is not required
- Only force-enable SOF while any vulnerable endpoints are active
- Respect dcd_sof_enable() functionality
- Get rid of all but necessary ifdef hackery
- Fix a bug where the "endpoint lock" was used with an uninitialised pointer.
2023-01-24 11:53:28 +00:00
hathach df2ebe5d1a add iar --fpu option 2023-01-24 12:57:07 +07:00
hathach 0a4e611e37 update stm32f7 to build with iar 2023-01-22 12:11:01 +07:00
hathach db36075721 update f4 to build with iar 2023-01-22 11:56:50 +07:00
hathach 436cd5b9b8 add icf for f1 mini2 2023-01-21 14:26:46 +07:00
hathach 1bbeb6ad79 update stm32f1 to support iar build 2023-01-21 11:32:37 +07:00
Dave Nadler a6e0b598fa Add support for NXP's mimxrt1024_evk evaluation board.
Tested AOK with device\cdc_msc_freertos example.
2023-01-20 13:15:42 -05:00
Dave Nadler 456a8b208b Add support for NXP's mimxrt1024_evk evaluation board.
Tested AOK with device\cdc_msc_freertos example.
2023-01-20 12:59:45 -05:00
hathach 3fd075b48b fix warning 2023-01-20 15:29:23 +07:00
hathach ecfd57e6f1 get most examples build with iar 2023-01-18 10:31:00 +07:00
Howard Su eb7aacb51f Allow config OS for RP2040 2023-01-18 02:30:05 +00:00
hathach 8df2fd1916 update freertos example to build with iar 2023-01-17 23:38:10 +07:00
hathach 1891802f08 update all f0 board to build with iar 2023-01-17 16:38:02 +07:00
hathach 3fee8b402e update makefile to support iar build starting with stm32f070 2023-01-17 16:20:04 +07:00
hathach 160d64b00a minor clean up. ch32v307 has issue with uart LOG=2 (skipping characters) 2023-01-12 15:34:29 +07:00
hathach f05f81e8b3 add button support 2023-01-12 15:19:26 +07:00
hathach 65f7a8006c rename board to lower case ch32v307v-r1-1v0 2023-01-12 13:31:36 +07:00
hathach e6a3cfb350 rename link file 2023-01-12 13:12:37 +07:00
hathach 658897cf4e fix redundant-decls warnings with USART_Printf_Init() 2023-01-12 12:30:18 +07:00
hathach e61d4aefe6 rename driver with dcd_ to be consitent with other ports 2023-01-12 12:08:56 +07:00
hathach 3cc6cece07 add note for openocd with wch, also add wch-riscv.cfg 2023-01-12 10:25:48 +07:00
hathach a7e1de1e83
temporarily suppress redundant-decls due to USART_Printf_Init()
fix codespell
2023-01-08 00:02:25 +07:00
Ha Thach 949950e592
Merge branch 'master' into ch32v307 2023-01-07 23:46:46 +07:00
Gordon McNab 9f440e5c69 Update SDK for FT9xx to include 3rdparty sources 2022-12-15 10:27:49 +00:00
Louis Burda 9e7e8908a3 Fix ifdefs for disabled uart stdio in rp2040 family 2022-12-13 11:00:03 +01:00
hathach 43b255f413 more typos 2022-12-04 19:44:01 +07:00
Bastien Nocera 6a2cf67289 Fix typos 2022-12-04 19:43:23 +07:00
Gordon McNab 8cce9385e2 More configurable board options 2022-11-30 16:18:07 +00:00
Gordon McNab d3c4f66d35 Fix script issues with paths including spaces from env variable.
$(FT90X_TOOLCHAIN) or even $(TOP) may have spaces. Quote to fix.
2022-11-30 12:49:15 +00:00
Gordon McNab aceab1dcf3
Merge branch 'hathach:master' into port-ft90x 2022-11-30 12:16:52 +00:00
Gordon McNab fe63e30a44 Add FT9xx for cdc_dual_ports
Fix handling of interrupt endpoints. i.e. no ZLPs.
Fix the assignation of endpoint types.
Add button support for MM900evx boards.
On board support do not block for UART input.
2022-11-30 11:46:13 +00:00
Ha Thach ff26714958
Merge pull request #1756 from benishor/master
Added board description for electro-smith daisy seed
2022-11-30 17:16:19 +07:00
Gordon McNab 7d8d3eca73 Fix transfers issues with FT9xx
Correct USB FIFO use for setup data phases (OUT transfers). We cannot stop traffic on the control endpoint so we set a flag and pull data from host when tinyUSB requests it from the USB FIFO. Extend this for all endpoints although currently not required.
Rename all instances of ft90x which can apply to ft93x as ft9xx.
Add support for the cdc_dual_ports example for ft9xx.
Add LED pin definition for board LED in a simple to access place on the Bridgetek MM900EVx boards.
2022-11-29 18:49:23 +00:00
Gordon McNab 1fce76ad47 Fix issue with the CDC SetLineCoding request
The SetLineCoding would fail as host would send the SETUP OUT phase before tinyUSB had setup a transaction for it. ft9xx port would ignore the transfer since there was no valid transaction setup for it. One SETUP data phase packet is cached now.
2022-11-28 17:41:00 +00:00
hathach 5785467016 update pico-pio-usb submodule and its warnings suppress 2022-11-28 23:21:17 +07:00
Gordon McNab 9ccfb384e8 Update to v2.6.0 library 2022-11-24 12:17:55 +00:00
Adrian Scripca 8ef32617ba
Added board description for electro-smith daisy seed 2022-11-24 13:06:25 +02:00
hathach a394273ed2
add board_getchar() for non-blocking getchar() 2022-11-21 16:28:54 +07:00
hathach 460bef9dbb
host msc example work well with rp2040 pio-usb 2022-11-21 15:49:38 +07:00
hathach a6001fc8f2
update uart read for lpc18/43 for testing 2022-11-18 21:50:00 +07:00
Mengsk da1589f116 Fix FREERTOS USB IRQ priority. 2022-11-08 21:58:51 +01:00
Mengsk f3f3739073 Fix DCD build. 2022-11-07 13:38:35 +01:00
Mengsk 9d3d8fd5b0 Merge branch 'master' of https://github.com/hathach/tinyusb into bsp_412 2022-11-07 12:47:41 +01:00
Mengsk 1eae139aa9 Add support for STM32L412. 2022-11-07 12:32:36 +01:00
Ha Thach e434a1dc05
Merge pull request #1718 from hfegran/efm32_freertos_port_fix
Fixed wrong FreeRTOS port for EFM32GG12
2022-11-07 00:05:51 +07:00
hathach a061bc4173 bump up pico-pio-usb 2022-11-06 14:46:44 +07:00
hathach 44e19aa3c7 rename PIO_USB_PIN_DP to PIO_USB_DP_PIN and change from 2 to 20 & moved to board.h
add support for  PIO_USB_VBUSEN_PIN and its state.
2022-11-06 14:44:56 +07:00
hathach cb0ca6151b remove CFG_TUSB_DEBUG from tinyusb_common_base 2022-11-04 17:08:02 +07:00
Henrik Fegran 38cdeb9e60 Fixed wrong FreeRTOS port for EFM32GG12 2022-11-03 20:23:27 +01:00
Ha Thach 5b1b383d2a
Merge pull request #1676 from tswan-quasi/master
dcd_lpc_ip3511: isochronous support and endpoint accidental write fix
2022-10-24 19:08:58 +07:00
hathach e3b7ed9ae9 use dummy for all ZLP for ip3511, fix lpc55 build with DEBUG=1 2022-10-24 18:43:21 +07:00
LynnL4 4238467b2d Add support for STM32U5 mcu 2022-10-13 17:39:42 +08:00
LynnL4 8a89365bb2 Add stm32u5xx offical driver. 2022-10-11 13:50:11 +08:00
Peter Lawrence d1c61e33a6 add 'stm32l052dap52' (STM32L052K8 MCU) board target
'dap52' is Olimex's name of their STM32L052-based fork of 'dap42'
2022-08-03 12:31:37 -05:00
graham sanderson 4bd47bcb99 disable bad gcc 6 warning 2022-07-12 13:29:47 -05:00
graham sanderson fc1a27b6c9 RP@040: rework CMake for compiler warnings 2022-07-12 12:58:30 -05:00
Ha Thach 0bfb9d62de
Merge pull request #1543 from robert-hh/1170_0.13.0
mimxrt: Change the definitions for MIMXRT boards.
2022-07-11 15:53:24 +07:00
hathach 6da1e93edd
fix rt1050 evk build with latest mcu-sdk 2022-07-11 14:21:19 +07:00
hathach 19768936ae
bump up mcux-sdk for rt11xx, add back OPT_MCU_MIMXRT11XX 2022-07-11 14:01:18 +07:00
Ha Thach ecb899408b
Merge pull request #1544 from hathach/ci-parallel-build
Ci parallel build
2022-07-01 20:52:46 +07:00
hathach 53db23142a add get-dependencies.py 2022-07-01 17:23:14 +07:00
robert-hh ec6f56768a mimxrt: Change OPT_MCU_MIMXRT1xXX to OPT_MCU_MIMXRT.
Which fits both MIMXRT10XX and MIMXRT11XX.
2022-07-01 09:04:36 +02:00
robert-hh 60c1750a9b mimxrt: Add/change definitions for MIMXRT11XX boards.
These are mostly identical to the MIMXRT10XX, with one tiny difference.
2022-06-30 22:21:31 +02:00
Pawel Hryniszak 023191be23
Let to define CFG_BOARD_UART_BAUDRATE in CMake 2022-06-29 20:28:22 +01:00
Ha Thach 19956f070d
Merge pull request #1539 from hathach/improve-ci
Improve ci
2022-06-29 16:27:17 +07:00
hathach 158b3d761d fix xmc4000 build 2022-06-29 15:27:24 +07:00
hathach 5a378703fb fix end symbol for samx7x and same5x 2022-06-29 15:05:09 +07:00
hathach a62c2640b5 remove redundant rp2040 boards, all boards supported by pico-sdk already supported 2022-06-29 14:08:01 +07:00
hathach 8fe9022a6e fix buid_board.py script 2022-06-29 14:06:44 +07:00
hathach 898b52be45 update rp2040 warnings
- remove "-Wno-stringop-overflow -Wno-array-bounds"
- skip -Wconversion for gcc 9 and prior
- suppress_tinyusb_warnings only when building with gcc 9 and below
2022-06-28 16:27:44 +07:00
hathach 83602ea123 Merge branch 'master' into rp2040_warning 2022-06-28 13:34:47 +07:00
graham sanderson 4057c2d8d9 rework suppress_tinyusb_warnings
* gcc 9.2.1 has some spurious -Wconversion warnings
* cmake 3.18 and above require set_target_properties to be added from the target directory (so added it to all examples)
* fixed a few warnings in a couple of examples
2022-06-27 22:43:41 +01:00
hathach b9dc9dbd78
fix most warnings with rp2040 -wconversion 2022-06-27 11:50:17 +07:00
hathach 0042eccb3b
fix redundant-decls warnings by usbd/usbh 2022-06-24 22:52:11 +07:00
hathach 1d6918ce41
suppress redundant-decls warnings for freertos examples 2022-06-24 21:53:46 +07:00
hathach 835ab01cab
fix stm32 g4 and wb build issue with freertos, also add them to ci build 2022-06-24 21:52:51 +07:00
hathach 4f6e770eda
add more warning option, also fix -Wconversion with rp2040
-Wuninitialized, -Wunused,  -Wredundant-decls
2022-06-24 19:46:19 +07:00
Ha Thach 4639cac85c
Merge pull request #1526 from ccrome/chc-add-teensy-41
Added The Teensy 4.1 board
2022-06-22 11:22:44 +07:00
caleb crome 742b99f689 Added The Teensy 4.1 board
The Teensy 4.1 board has an 8MB W25Q64JV as opposed to the 2MB flash
on the Teensy 4.0.  This largely doensn't matter for TinyUsb, except
when you attempt to access any memory in the flash above the 2MB
boundary, when it fails with a hard fault.
2022-06-21 11:12:39 -07:00
graham sanderson 2f7f3e604e Re-add some warning suppression for rp2040 2022-06-17 12:54:28 -05:00
hathach 8cbc34de11 add tuh_configure() for port/dynamic host behavior config 2022-06-08 01:17:01 +07:00
hathach 1b08672945 more ci fix 2022-06-06 13:25:48 +07:00
hathach 7187cd9a85 fix ci, remove use of CFG_TUSB_RHPORT0_MODE in bsp 2022-06-06 12:51:10 +07:00
hathach 2571211957 remove static port defined for device/host 2022-06-03 11:32:09 +07:00
hathach 8b9cf152a0 rhport argument in usbd_ API() is not used (always use the initialized port)
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
Rafael Silva 60aae59eeb style code for consistency with existing codebase 2022-06-02 09:35:30 +01:00
Rafael Silva e0220c6594 fix int handling for host in ek_ra4m3 port 2022-06-02 09:35:30 +01:00
Rafael Silva 4c89776a27 add renesas ek-ra4m3 board port
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva 2a17a7e8f8 rework make freertos port handling
this allows ports to specify a freertos port outside the FreeRTOS-Kernel lib directory, which would otherwise not be possible

Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva 03777f4a46 generalize renesas LINK core driver
create local register access struct and move mcu specific code
	in preparation of support for other mcu families that use the LINK usb core

Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva dcadbf3364 rename renesas driver to link
link was chosen according to the name for the usb core on datasheets, LINK core

Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva 0ee74a71e2 add renesas fsp submodule
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:28 +01:00
hathach 99c1585ed2 rename board specific macro for example
- BOARD_DEVICE/HOST_RHPORT_NUM to  BOARD_TUD/H_RHPORT
- BOARD_DEVICE/HOST_RHPORT_SPEED to  BOARD_TUD/H_MAX_SPEED
2022-06-01 23:53:40 +07:00
Ha Thach 2683deb0dd
Merge branch 'master' into ch32v307 2022-05-21 13:54:25 +07:00
graham sanderson 26c4d4b328 Minor cleanup of RP2040 code post addition of Pico-PIO_USB
* Removed some compiler warnings, and cleaned out unnecessary warning suppression from CMake suppress_tinyusb_warnings()
* Made explicit family_configure_dual_usb_example() for DUAL mode examples as family_configure_target() may not generally be called multiple times for the same target

* Renamed library pico_pio_usb to tinyusb_picio_pio_usb to be clearer and avoid conflict if someone already has a pico_pio_usb in their project
* Added family_add_pico_pio_usb() method for adding Pico-PIO_SUB support to an existing example
* Allowed tinyusb_pico_pio_usb to be added to regular apps using the Pico SDK
2022-05-20 17:25:30 -05:00
Ha Thach c2bcda86e2
Merge pull request #1412 from hathach/pio-host
PIO USB support
2022-05-16 16:29:20 +07:00
hathach 4586d8f119 add upstream Pico-PIO-USB 2022-05-16 13:44:06 +07:00
hathach 35b77a4a81 cmake lib rename 2022-05-10 22:14:00 +07:00
hathach 717a474125 move pio-usb init to family_configure_pio_usb_example() to stay compatible 2022-05-10 21:56:47 +07:00
hathach 26ee622222 move pio usb files to src 2022-05-10 12:51:48 +07:00
caleb crome f19d913b5d set irq priority for freertos 2022-05-05 22:29:12 -07:00
hathach 0b30a10ab3 configure hid_to_cdc example to build with rp2040 with pio usb as host 2022-04-29 22:24:36 +07:00
hathach 4a661dead0 add TU_ATTR_FAST_FUNC for rp2040 __not_in_flash() section 2022-04-27 17:57:52 +07:00
hathach 12debd7763
keep up with pio usb 2022-04-22 01:06:17 +07:00
hathach 98bbb0d402
Merge branch 'master' into pio-host 2022-04-21 12:05:22 +07:00
hathach cc5a4720e5 catch up with pio lib 2022-04-14 22:00:47 +07:00
hathach d5d4909c20 proof of concpet that device pio-usb work with host pio-usb 2022-04-08 13:36:05 +07:00
hathach c25f835aea update to use pio hw endpoint 2022-04-01 23:31:43 +07:00
hathach db6cba6a7b rename pio to pio_usb 2022-04-01 16:38:41 +07:00
hathach e2f0aef93b make use pio_usb_port_reset_start/end 2022-03-30 16:41:55 +07:00
hathach 735300b53c
remove cxd56 __pycache-_ folder 2022-03-28 12:47:32 +07:00
Greg Davill a09c1648f5 Fix typo 2022-03-22 23:31:20 +10:30
Greg Davill 1d254be1a4 Increase stack size to 4096 bytes 2022-03-22 16:03:53 +10:30
Greg Davill fccbcfc889 Add WCH CH32V307 port
Add WCH mcu submodule
Add CH32V307V-R1-1v0 bsp
2022-03-22 00:30:46 +10:30
hathach 45052c625e
Merge branch 'master' into pio-host 2022-03-20 00:51:00 +07:00
hathach a715077b10 remove usbh_control.c 2022-03-11 09:57:35 +07:00
Jerzy Kasenberg 76c8d4d95b Add support for nucleo-wb55rg 2022-03-07 09:35:12 +01:00
Jerzy Kasenberg 2bef4410f9 Add stm32wb cmsis and hal driver submodules from ST 2022-03-05 17:53:57 +01:00
hathach 1d29817139 start to add pio usb (host) support
run as proof of concept
2022-03-01 23:55:53 +07:00
hathach 31aa077cb0 rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED 2022-02-25 18:35:21 +07:00
hathach d10326cb4e rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
hathach a8d6e82395 enhance dual role examples 2022-02-25 17:36:05 +07:00
Scott Shawcroft 9ba1ba8fa1
Guard clock setup for USB2 2022-02-22 18:39:02 -08:00
Scott Shawcroft d749597591
Add dual role (concurrent) example
This reads HID devices over host and then translates that to ASCII
and sends it over CDC device.
2022-02-22 18:13:22 -08:00
hathach e188117823 more esp build fix 2022-02-18 16:30:21 +07:00
hathach 52645fcc1b fix build with latest esp idf 2022-02-18 13:07:21 +07:00
Jay Beavers 2df57d2be0 Nit spelling correction 2022-02-09 08:19:01 -08:00
kkitayam d7cbfaaa0a Add hcd into source list 2022-01-27 22:26:51 +09:00
kkitayam a4bc6075ce Add HCD functions for KL25Z 2022-01-27 20:57:40 +09:00
Ha Thach 7de166390e
Merge branch 'master' into master 2022-01-25 22:29:05 +07:00
Ha Thach e40547ada1
Merge pull request #1265 from kkitayam/add_hcd_for_renesas_rx
Add HCD driver for Renesas RX
2022-01-19 19:07:21 +07:00
Ha Thach 84f2ca77f7
Merge pull request #1283 from kasjer/kasjer/olimex-pic32-board-fixes
olimex pic32 board fixes
2022-01-19 09:55:18 +07:00
Jerzy Kasenberg 45d56915d1 pic32/olimex boards: Fix active state of button
Buttons for olimex_emz64 and olimex_hmz144 should be set
to active low in board configuration.
2022-01-17 18:00:58 +01:00
Ha Thach 58b8bdc2e4
Merge pull request #1277 from liamfraser/fix-cmake-skip
Fix family_support.cmake to use new skip.txt and only.txt files
2022-01-17 14:36:51 +07:00
Ha Thach efc29baead
Merge branch 'master' into port-ft90x 2022-01-17 12:36:39 +07:00
Ha Thach 976405dea3
Merge pull request #1270 from kasjer/kasjer/pic32mz
Driver for Microchip PIC32MZ family
2022-01-16 20:24:14 +07:00
hathach cb57f047e7 update for s3 2022-01-16 13:26:50 +07:00
hathach e1e4577616 more ci fix 2022-01-16 13:24:36 +07:00
hathach e635c16de0 fix esp ci build with IDF version 5 2022-01-16 13:12:27 +07:00
Liam Fraser 3db9cf3547 Fix family_support.cmake to use new skip.txt and only.txt files for skipping mcus 2022-01-13 16:39:55 +00:00
Jerzy Kasenberg fff4a248be Add BSPs for Microchip PIC32MZ MCUs
Two boards from Olimex are added:
olimex_hmz144  with PIC32MZ2048EFM144
olimex_emz64.c with PIC32MZ2048EFH064

Both can be programmed with Segger JLINK probe using ICSP
interface. (JTAG not tested but could also work but header
is not mounted).
2022-01-07 14:12:42 +01:00
Scott Shawcroft 47218eeb67
No exceptions on broadcom. Add parens to if 2022-01-05 16:07:17 -08:00
Scott Shawcroft 7b27b8f498
Unify skip and only logic for build scripts
And switch to a single file that can include mcu, family or board.
2022-01-05 15:44:23 -08:00
Scott Shawcroft 4fe0a30ec7
Skip net and freertos examples 2022-01-05 14:33:24 -08:00
Scott Shawcroft 84e2df51be
Split by compiler for testing 2022-01-05 14:11:39 -08:00
Scott Shawcroft a79ffeb764
Add Raspberry Pi Zero W and Zero 2 W
These are different Broadcom chips. The peripherals are essentially
the same. The main differences are:
* The CPU(s)
* The interrupt controller
* The peripheral base address (but not the peripherals that we use)
2022-01-05 13:47:01 -08:00
hathach 5f280b3029
add license to dcd file, slightly update readme 2021-12-29 19:25:32 +07:00
hathach 84e2f6e0e1
skip freertos example for f1c100s 2021-12-29 19:12:41 +07:00
hathach b943a53b10
update allwinner submodule 2021-12-29 19:04:08 +07:00
hathach 2d13ecde1b add allwinnner driver as submodule 2021-12-29 18:59:47 +07:00
hathach 30aba24ddc Merge branch 'master' of https://github.com/t123yh/tinyusb into t123yh-master 2021-12-29 18:27:29 +07:00
kkitayam a750c9c902 Increase stack size 2021-12-27 21:28:46 +09:00
kkitayam a76799b085 Add hcd for Renesas RX 2021-12-27 21:19:02 +09:00
Alex Voinea 6de423606f nucleo-f439zi support 2021-12-21 18:24:05 +01:00
hathach 311248c8b0 add s3 devkitc 2021-12-21 00:10:38 +07:00
hathach 2ab3988d9f add s3 devkitm 2021-12-20 23:54:28 +07:00
Matt Johnston 9b2e78c915 samd21: make uart_init() static
Avoids a linker conflict if programs are using the same function name.
2021-12-20 15:43:16 +08:00
Greg Steiert 04fd8673cd Merge branch 'master' of https://github.com/hathach/tinyusb into feature-kuiic 2021-12-13 08:56:58 -08:00
hathach d097178ab0
correct wiring note 2021-12-13 17:59:43 +07:00
hathach 51acc3e1b9 update g4 bsp 2021-12-09 12:42:08 +07:00
Greg Steiert e72a6e90b9 added support for building uf2 file 2021-12-08 15:24:14 -08:00
Greg Steiert 59dcf2062f adding support for KUIIC board 2021-12-08 14:31:44 -08:00
Gordon McNab 21fa7ea468 Correct path for using the ft90x-sdk submodule (BRTSG-FOSS / ft90x-sdk). Default to ft90x-sdk instead of pre-built library. 2021-12-08 13:56:23 +00:00
Gordon McNab 45869958f6 Add FT9xx to more examples which support High-Speed 2021-12-08 10:03:33 +00:00
Gordon McNab 5039a5e54c Update code to implement changes from upstream master 2021-12-08 09:34:29 +00:00
Gordon McNab 9a7db98593 Merge branch 'master' into port-ft90x 2021-12-08 08:36:43 +00:00
Yunhao Tian 527036b1f5 Initialize MMU if we are executing from DDR 2021-12-08 13:39:27 +08:00
hathach cd76193f3c try updating clock configure for g4 nucleo (not work yet) 2021-12-08 10:37:46 +07:00
Yunhao Tian 43621ab9ed Update README 2021-12-07 22:58:19 +08:00
Yunhao Tian 75f7fb3d9d Add mksunxi tool to make flashable image 2021-12-07 22:53:52 +08:00
Ha Thach cde824f17f
Merge pull request #1222 from scoudreau/swo_logger
Remove unused-parameter errors when LOGGER=swo
2021-12-07 19:53:27 +07:00
hathach 8e0400d531 change uart baudrate for tm4c123 to 115200 2021-12-07 16:28:24 +07:00
hathach 03835c8183 move hcd_musb.c include to family.mk 2021-12-07 16:27:48 +07:00
Yunhao Tian 28fb51c180 Add TODO to README 2021-12-04 18:08:23 +08:00
Yunhao Tian 68ca62dfd7 Add BSP support for F1C100s 2021-12-04 18:02:07 +08:00
Ha Thach 6ecd93eb60
Merge branch 'master' into add_hcd_for_msp_exp432e401y 2021-12-03 00:30:09 +07:00
hathach 83dc3e25f0 more work to abstract chipidea driver 2021-12-01 23:30:09 +07:00
hathach 61a9e125db more ci abstract 2021-12-01 23:19:17 +07:00
Sebastien COUDREAU c9d9bfab92 Remove unused-parameter errors when LOGGER=SWO 2021-12-01 17:10:31 +01:00
hathach 0612433eef add chipidea highspeed controller
add warning to transdimension for the rename
2021-12-01 12:14:44 +07:00
kkitayam b3dddc77eb Add initialization sequence as a HOST 2021-11-29 00:40:23 +09:00
Gordon McNab edf3f35016 Update ft90x-sdk
Update submodule for FT90X SDK to point to the v2.5.0 release code currently in main.
2021-11-22 12:38:04 +00:00
Gordon McNab ba76b2e339 Add submodule for ft90x SDK
Add Bridgetek FT90x SDK as submodule.
2021-11-22 10:33:07 +00:00
hathach 8a18c22c2f
add BCM_VERSION 2021-11-22 10:59:22 +07:00
hathach 21787ecdd3
update bcm prph 2021-11-22 10:52:53 +07:00
hathach 17ef1503c8
move tm4c132 into bsp family, add it into ci 2021-11-08 17:37:21 +07:00
hathach f65917f51a
rename to simply OPT_MCU_MSP432E4, add msp432e to ci 2021-11-08 17:29:26 +07:00
hathach 6fea50f735 musb work well with tm4c123 2021-11-08 16:41:29 +07:00
hathach 91646d039c add flash-openocd target. correct ek-tm4c123 button state 2021-11-08 16:41:29 +07:00
hathach 23e6e0ef33 merge pull request 670 for tm4c123gxl bsp 2021-11-08 16:41:29 +07:00
kkitayam dd7eb36830 Remove unnecessary lines 2021-11-06 23:10:11 +09:00
kkitayam 30d3bf8bec Update TI driver 2021-11-06 23:05:27 +09:00
kkitayam 23ef8b2c64 Change the variables for a switch and a LED to symbols defined by the macros 2021-11-06 19:32:15 +09:00
kkitayam e4520e7aa7 Add statements for FreeRTOS 2021-11-06 00:06:27 +09:00
kkitayam 50ca0dda2c Add dcd_musb.c 2021-11-06 00:06:26 +09:00
kkitayam f183d0810b Add files for msp432e4 2021-11-06 00:06:26 +09:00
hathach 3fc3e400b0
add xmc4000 to ci build 2021-11-05 13:23:31 +07:00
hathach d87a897a7b
xmc4500 ported, cdc msc example run fine 2021-11-05 13:13:21 +07:00
hathach d9cf49cbfd
add xmclib as submodule 2021-11-05 12:00:27 +07:00
hathach a3fc107d94
xmc4500 led blinky, button ok 2021-11-05 11:57:36 +07:00
hathach 310f287f44 couldn't get g4 usb clock and pin setup just yet. Leave it as it is for now 2021-11-04 17:52:55 +07:00
hathach f90f5ea369 adding g4 family with g474nucleo, able to blink led and button 2021-11-04 16:16:51 +07:00
hathach 8b3708b44f rename l4 board to match other convention 2021-11-04 13:57:03 +07:00
Ha Thach fc59515bfd
Merge pull request #1163 from hathach/generalize-synopsys-dwc2
Generalize synopsys dwc2
2021-11-04 13:41:25 +07:00
hathach 4a8ac71711 Add timer1 on pi4 for blinky
this get usb irq triggered even without ISB() in previous commit
2021-11-04 12:31:16 +07:00
hathach 0faff5a859 update broadcom peripherals to latest 2021-11-03 13:13:08 +07:00
hathach e16506cb52 clean up 2021-11-03 12:24:10 +07:00
hathach 0e733ae14b
add pi4 to ci build in build_aarch64 2021-11-02 21:46:23 +07:00
hathach 1046786acf change broadcom submodule path from git to http 2021-11-02 18:17:59 +07:00
hathach 7e68894726 grouping stm32L4 family in bsp 2021-11-02 16:10:40 +07:00
hathach aa682d7301 add fix for stm32l4 (version 3.10a) which generate transfer complete when setup recieved and control out data complete 2021-11-02 13:52:30 +07:00
Jean Gressmann 5fb16a8f2c samd21: enable SysTick only if running w/o OS 2021-11-01 18:01:18 +01:00
Jean Gressmann ba34f420db Adds support for Adafruit Trinket M0 2021-10-31 12:34:53 +01:00
hathach 4ea8f1441d correct freertos port for efm32gg 2021-10-31 00:19:17 +07:00
hathach 215e0595ab change F207 to use new dwc2 2021-10-31 00:09:40 +07:00
hathach 9cd5a87c64 add support for EFM32GG
merge GG12 GG12 to simply OPT_MCU_EFM32GG
2021-10-30 20:42:55 +07:00
Matt Johnston 19a26729b0 Add Adafruit QT Py board
Straight copy of itsybitsy_m0/ with MCU changed to
ATSAMD21E18

LED and button are disabled.
LED is a neopixel so could be added later.
2021-10-29 18:00:23 +08:00
Matt Johnston 8e95b807f7 samd21: Make LED_PIN and BUTTON_PIN optional
Some boards don't have them, just ignore
2021-10-29 13:49:15 +08:00
hathach 7def380058 support bcm2711 on pi4, enhance dcd init with utmi and ulpi hs phy 2021-10-28 12:52:18 +07:00
Gordon McNab 6a658007a5 Changes to use ft90x-sdk as submodule or installed SDK from toolchain. 2021-10-27 12:30:51 +01:00
hathach 07829510e7 Merge branch 'tannewt-rpi' into generalize-synopsys-dwc2 2021-10-26 23:43:35 +07:00
hathach bb5dab5c2e add hw config struct 2021-10-26 22:48:01 +07:00
hathach 4ccf60954d
moving esp32s2 to dwc2, abstract dwc2_set_turnaround() 2021-10-25 15:51:41 +07:00
hathach 32742571da
switch gd32 and stm32f4 to use new dwc2 driver 2021-10-25 00:06:57 +07:00
hathach 06de6b725c
adding generalized dwc2 driver 2021-10-24 23:24:46 +07:00
Ha Thach 311c05b401
Merge branch 'master' into fix-warnings 2021-10-23 21:23:56 +07:00
Scott Shawcroft 2ef200003d
Update broadcom library 2021-10-22 09:31:24 -07:00
Scott Shawcroft 35b62810c3
Update submodule 2021-10-22 09:00:42 -07:00
hathach 826b34a8ac enable -Wnull-dereference 2021-10-18 00:13:40 +07:00
hathach 31cd366935 more -Wcast-qual 2021-10-17 17:32:03 +07:00
hathach a5f516893b more with -Wcast-qual 2021-10-17 16:36:53 +07:00
hathach 0b249618b0 fix -Wcast-qual 2021-10-15 23:54:31 +07:00
hathach 7596cb3079 update some sense warning from -Wconversion 2021-10-15 15:54:32 +07:00
graham sanderson 06d9555389 More warning cleanup
- physically suppress warnings in TinyUSB headers using pragmas so they don't break -Werror compilation of external files that include them
 - fix compiler warnings in rp2040 port
 - add cmake method to rp2040 port to allow an external project to suppress warnings in TinyUSB itself
2021-10-14 15:23:26 -05:00
Scott Shawcroft 4ab14867da
Trying to get USB init 2021-10-12 16:47:53 -07:00
Ha Thach b26cc2cc46
Add linkermap for size analysis (#1136)
* add NO_LTO option to make
* add linkermap submodule and linkermap target
* add linkermap to ci build
* linkermap doesn't work with esp32sx map file yet
* add note for linkermap target
2021-10-13 00:57:45 +07:00
Ha Thach 379537cb6d
Merge branch 'master' into add_uvc 2021-10-12 22:01:02 +07:00
kkitayam b6d09ca761 Add compile option to allocate video data into flash in video_capture example 2021-10-09 23:02:18 +09:00
kkitayam a3a18c9ed3 Change the video image to scrolling color bars. 2021-10-09 19:51:51 +09:00
Gordon McNab 5e6edecaa3 Streamline settings for board. 2021-10-07 17:00:28 +01:00
Gordon McNab 8c40a74f29 Sort out board settings. 2021-10-06 17:13:44 +01:00
Gordon McNab 9966b8a5d6 Change author in header to Bridgetek Pte Ltd. 2021-10-06 16:54:52 +01:00
Gordon McNab 37c5eeb51d Rename directories to indicate that FT930 and FT900 devices are both covered by the same SDK and src/portable code. Board makefile includes __FT900__ macro for FT90x and __FT930__ macro for boards with FT93x. 2021-10-06 16:50:55 +01:00
Scott Shawcroft 98ab8117d6
USB seems to init ok 2021-10-05 18:20:44 -07:00
Gordon McNab 62c613f6d2 Add initial port for FT9xx series from Bridgetek.
Add FT90X and FT93X to the list of devices in tusb_option.h. 1700 for FT90x and 1701 for FT93x.
Set endpoint attributes for FT90x and FT93x in dcd_attr.h.
Add FT90x routines for USB device in src/portable/bridgetek/ft90x/dcd_ft90x.c
The location for hardware header files and libraries is hw/mcu/bridgetek/ft90x/hardware. There are no files in the repository, but files will be linked as a submodule in the future. The required files can be copied from or linked to the location "C:/Program Files(x86)/Bridgetek/FT9xx Toolchain/Toolchain/hardware" once the toolchain is installed.
Makefile for the MM900EV1B board for developing with an FT900 device is present. Use "BOARD=mm900ev1b".
2021-10-05 13:54:47 +01:00
hathach a867d87072
rename CFG_TUD_NET to CFG_TUD_ECM_RNDIS 2021-10-05 16:00:07 +07:00
hathach 31cfd5a684 Merge branch 'add_ncm' of https://github.com/majbthrd/tinyusb into majbthrd-add_ncm 2021-10-05 11:39:32 +07:00
Scott Shawcroft 0932d502c7
remove bcm files 2021-09-30 14:50:38 -07:00
kkitayam a1788da410 Add video class entry to rp2040 building scripts 2021-09-30 22:14:29 +09:00
hathach 103309b88b
Merge branch 'master' of github.com:hathach/tinyusb into zhangslice-master
examples/device/hid_composite_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h
2021-09-29 15:27:41 +07:00
hathach 3eeb79be4f
update mm32sdk submodule 2021-09-29 15:20:14 +07:00
hathach 7af57e41b5
add submodule hathach/mm32sdk 2021-09-29 14:58:47 +07:00
hathach bbb68ffefb
remove official mm32sdk submodule 2021-09-29 14:55:20 +07:00
Hans Baier 196a0da813 add support for the QMTech ATMSAME70N19A board 2021-09-27 06:13:07 +07:00
Peter Lawrence 03d7988df3 add NCM driver in a compatible manner : hathach/tinyusb#550 2021-09-25 17:05:58 -05:00
hathach 73872a5df0 add CFG_TUSB_OS_INC_PATH for os include path
useful for freertos/ prefix with esp IDF
2021-09-25 16:16:55 +07:00
Scott Shawcroft 0a6ca65e3f
MMU works 2021-09-24 16:14:01 -07:00
Jerzy Kasenberg 417677aae4 da14695_dk_usb: Fix button configuration
Unlike da1469x_dk_pro, K1 pin (6) is connected to VCC when
active.
This adds required pull down and reverses active logic state.
2021-09-23 12:52:32 +02:00
Jerzy Kasenberg dd2a518881 da1469x_dk_pro: Fix button setup
Button on board has 1k resistor to ground when pressed.
When not pressed pin 6 is floating.

This forces MCU pull-up for this pin for correct behavior.
2021-09-23 12:00:28 +02:00
Scott Shawcroft 829f92d00f
Trying to setup the mmu 2021-09-22 15:19:02 -07:00
Ha Thach 3e569f8e79
Merge pull request #1094 from kasjer/kasjer/da146xx-vbus-handling
dcd_da146xx: Add VBUS handling
2021-09-18 23:12:40 +07:00
hathach 3333703d25 Merge branch 'master' into zhangslice-master 2021-09-18 13:35:26 +07:00
Scott Shawcroft 2499c9382d
rpi start. doesn't work 2021-09-17 16:51:34 -07:00
Jerzy Kasenberg a71ac71d7f da1469x_dk_xxx: Add VBUS handling
Two BSPs with DA146xx MCUs are now adopted to
VBUS handling changed introduced to dcd_da146xx driver.

da14695_dk_usb as bus-powered devices informs driver that
VBUS is present at startup.

da1469x-dk-pro has VBUS change interrupt handler that
informs driver about VBUS changes.
2021-09-17 12:20:57 +02:00
kkitayam 46bb821753 Add J1-19 pin setting as a button 2021-09-15 21:32:53 +09:00
kkitayam ecbe8c3376 Change default LED state to off 2021-09-15 21:32:53 +09:00
hathach f39656b6d7 Merge branch 'master' of github.com:hathach/tinyusb into kkitayam-impl_close_all_for_khci 2021-09-15 18:29:28 +07:00
szymonh 1a87b605bd Add support for Nucleo F412ZG 2021-09-13 13:21:25 +02:00
kkitayam d7238d9a86 Remove heap memory area 2021-09-10 00:13:29 +09:00
hathach f47e5402fa add msc workaround for cxd56 2021-09-07 13:30:51 +07:00
hathach 76345ea3a1
clear stall and reset data toggle when open edpt
required to pass one of msc test.
2021-08-31 16:41:45 +07:00
hathach a05ea0d83b add CFG_EXAMPLE_MSC_READONLY for curiosity
allow family/board to exclude specific example. exclude
net_lwip_webserver from curiosity.
2021-08-29 22:53:16 +07:00
mainr b169db3fd6 Add PYOCD_OPTION
Added PYOCD_OPTION to pass board-specific options to build
2021-08-29 22:51:46 +07:00
mainr 90af8562b1 Added support for Microchip Curiosity Nano SAMD21 board (DM320119)
Added support for Microchip Curiosity Nano SAMD21 board (DM320119) under hw/bsp/samd21/boards/curiosity_nano
The nEDBG on this board requires dap_protocol be specified as SWD (changed in examples/rules.mk)

NOTE: requires entry (03eb:2175) for VID:PID of nEDBG be added to /etc/udev/rules for pyocd
2021-08-29 22:51:46 +07:00
Ha Thach 4492a7021c
Merge branch 'master' into merge-waveshare-h7 2021-08-29 21:49:10 +07:00
hathach 6159252692 disable systick when running freertos on other stm families 2021-08-29 21:34:10 +07:00
hathach 00e66cf2e0 remove old openh743i, explicitly disable systick when using freertos for H7 2021-08-29 21:26:47 +07:00
Greg Steiert 5bd7788950 cleaned up unused code, only enalbing port clocks as needed 2021-08-23 16:36:58 -07:00
Greg Steiert 86201f77be initial commit of support for K32L2B 2021-08-23 16:17:57 -07:00
hathach eda5b92e92 whitespace 2021-08-19 19:13:47 +07:00
hathach 175a6fbc5f rename to stm32f103_bluepill 2021-08-19 18:53:55 +07:00
hathach ebfd65a9ca add stm32f103 mini v2.0 board 2021-08-19 18:51:51 +07:00
hathach 1992f49343 group stm32f1 board 2021-08-19 18:02:16 +07:00
hathach a9279ece33 merge waveshare to h7 family 2021-08-19 17:27:53 +07:00
Ha Thach 2bb63406e9
Merge pull request #959 from KarlK90/gd32vf103-support-tiny-usb
[PORT] Add GD32VF103 support and Sipeed Longan Nano Board support
2021-08-15 18:50:00 +07:00
hathach 73f8fae036 change toolchain to riscv-none-embed-gcc-xpack for ci 2021-08-15 17:28:14 +07:00
hathach 09e4348adc move gd32vf103 to its own family 2021-08-15 17:19:25 +07:00
Stefan Kerkmann 1b6540a61c Update systick reload value
The systick timer is driven by the AHB bus divided by 4, set the correct
reload value to generate a timer irq every ms.
2021-08-09 21:37:06 +02:00
Stefan Kerkmann 27f147f421 Minor style changes 2021-08-07 14:08:18 +02:00
Stefan Kerkmann 0399996ee5 Code style changes 2021-08-07 11:33:36 +02:00
Stefan Kerkmann 66d566f8c0 Use functions provided by the nuclei-sdk hal 2021-08-07 11:33:36 +02:00
Stefan Kerkmann 60d03110f7 Correctly initialize and handle the system tick
Forgot to reload the systick timer in the irq handler
2021-08-07 11:33:36 +02:00
Stefan Kerkmann 1d2a57a9e1 Remove unsuitable clock configurations from init code
Only 48MHz, 72MHz, 96MHz and 120 MHz system clocks derived from an
external crystal are suitable for the usb peripheral, as the internal
oscillator is not stable enough. Also the usb-prescaler only supports
division by 1 (48MHZ), 1.5(72MHz), 2(96MHz) and 2.5(120Mhz).
120Mhz is also out of spec and not added here.
2021-08-07 11:33:36 +02:00
Stefan Kerkmann 733a362436 Use nuclei-sdk functions for init code
Instead of using the HAL functions we can just use the defines from the
board support for the longan nano that comes with the nuclei-sdk. Also
we move some includes and defines to the header file.
2021-08-07 11:32:06 +02:00
Stefan Kerkmann 6e287a7c5e Cleanup include paths and use linker files from nuclei-sdk 2021-08-07 09:51:56 +02:00
Stefan Kerkmann b473923f42 Remove redundant linker files
We use the linker files provided by nuclei-sdk instead
2021-08-07 09:51:16 +02:00
Ha Thach 88f5c04fe0
Merge pull request #985 from HiFiPhile/same70
SAMx7x improvements
2021-08-06 11:32:57 +07:00
Stefan Kerkmann e5bd6bdeff Update nuclei-sdk with __riscv_flen fix 2021-08-03 20:01:10 +02:00
Stefan Kerkmann 790d90bf26 Set FreeRTOS to RISC-V (doesn't compile) 2021-08-03 20:01:10 +02:00
Stefan Kerkmann 23e3b1680b Use JTAG for jlink flashing 2021-08-03 20:01:10 +02:00
Stefan Kerkmann 3db2089aa9 Minor clean ups 2021-08-03 20:00:39 +02:00
Stefan Kerkmann 19b971cb24 Add board support for gd32vf103 longan nano 2021-08-03 20:00:39 +02:00
MasterPhi 8b5625bf4e Move clock enable to BSP. 2021-07-30 12:07:23 +02:00
Ben Evans 0953be9d7f Small tidy up for waveshare openh743i BSP. 2021-07-27 12:07:19 +10:00
Ben Evans f01074681a Added BSP for waveshare openh743i. 2021-07-27 11:58:20 +10:00
Ha Thach 1c2bc47c07
Merge pull request #950 from HiFiPhile/dfu
DFU improvements
2021-07-22 11:17:01 +07:00
hathach 05f59fb8ed clean up warning 2021-07-19 12:08:01 +07:00
MasterPhi d0dd3c77ff Use USBHS_Handler 2021-07-18 22:03:45 +02:00
HiFiPhile b194aa240b
Merge branch 'master' into dcd_same70 2021-07-17 12:10:35 +02:00
hathach 406832158d skip lto for samd11 build 2021-07-15 21:08:10 +07:00
hathach 8de33ca557 Merge branch 'master' into kkitayam-fix_rtt_for_rx_family 2021-07-02 14:10:31 +07:00
kkitayam ea9ec1fb43 extend stack areas to enable logging
add dummy functions to avoid warnings when logging is enable
remove codes regarding OPTLIB
2021-07-02 11:37:23 +09:00
hathach ca98996e1f better support for hid device set/get protocol
add caplock detection for hid_composite
2021-07-01 22:46:39 +07:00
hathach b2fa7358cf fix typo 2021-06-29 16:38:38 +07:00
hathach 2d423514ee rename rx65n cloud kit to target
adding note for adding jlink support for rx65n_target board
2021-06-29 16:33:32 +07:00
hathach 01987ef86c merge saml21 + saml22 = saml2x 2021-06-28 14:37:41 +07:00
hathach 7e449b710e rename bsp saml22 to saml2x 2021-06-28 14:06:13 +07:00
Ha Thach b2feae15e4
Merge pull request #927 from hathach/add-rx65n-board
Add rx65n board
2021-06-28 13:53:42 +07:00
hathach 856dc0bab9 update doc and clean up 2021-06-28 12:59:53 +07:00
hathach e3b1110cce rename rx63n to simply rx 2021-06-28 12:51:11 +07:00
hathach 8c4641fc05 refactor rx6x bsp 2021-06-28 12:49:30 +07:00
hathach 17137bbfff fix rx65n with freertos build 2021-06-28 12:35:12 +07:00
hathach ec9bfe0333 update renesas rx submodule 2021-06-28 12:27:20 +07:00
kkitayam 239ecadeca add options for e2l 2021-06-27 23:39:50 +09:00
kkitayam 511b2d47d1 add handling for software configurable interrupts. 2021-06-26 22:42:27 +09:00
kkitayam 60fedaa050 fix baudrate setting 2021-06-26 21:13:35 +09:00
kkitayam dccb3b1a46 change stdio channel to SCI5 from SCI0.
change ports settings for LED and button.
add PLL setting for 240MHz based on HOCO into HardwareSetup().
2021-06-22 00:20:08 +09:00
hathach fbda7d5837 adding rx65n 2021-06-20 15:04:39 +07:00
hathach 7dce27c732 fix build with saml21, update microchip driver submodule 2021-06-19 16:21:14 +07:00
hathach 82618d2d5f fix build with mm32 board 2021-06-18 17:18:11 +07:00
zhangslice 0ae83458d5 dsp updata
Signed-off-by: zhangslice <1304224508@qq.com>
2021-06-18 12:46:27 +07:00
hathach b8ac5f1287 add mindmotion mm32sdk as submodule
remove the local copy of mm32
2021-06-18 12:46:27 +07:00
zhangslice 3ba72b53d8 Add MM32 SDK and USB driver
Signed-off-by: zhangslice <1304224508@qq.com>
2021-06-18 12:46:27 +07:00
sabas1080 7bed7d70f0 add support SAML21 2021-06-15 00:01:28 -05:00
MasterPhi 85fc423569 Rename SAM7X to SAMX7X
Signed-off-by: MasterPhi <admin@hifiphile.com>
2021-06-12 12:36:59 +02:00
Rafael Silva 776a770947 dcd: sam7x: rename family dcd to include the whole family
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2021-06-12 00:09:24 +01:00
Rafael Silva 28875c431b bsp: same70_xplained: replace template vars from make
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2021-06-11 21:02:23 +01:00
Rafael Silva 71aae2743c bsp: same70_xplained: fix unused variable warning
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2021-06-11 21:01:12 +01:00
graham sanderson fd7b18a4f6 Make examples standalone buildable via CMake 2021-06-10 10:11:20 -05:00
zhangslice 26b9fc38ed
Add MM32 SDK and USB driver (#869)
* Add MM32 SDK and USB driver
* add mindmotion mm32sdk as submodule
remove the local copy of mm32
* mit  license
Signed-off-by: zhangslice <1304224508@qq.com>
Co-authored-by: hathach <thach@tinyusb.org>
2021-06-07 17:32:46 +07:00
graham sanderson de436e1f76 undo search replace error 2021-06-02 11:30:42 -05:00
graham sanderson 1fb211f390 minor comment change to force rebuild 2021-06-02 09:52:49 -05:00
graham sanderson bef33d108a move core definition of source file includes from SDK into family.cmake
only build webserver example if lwip submodule initialized
2021-06-02 09:33:23 -05:00
graham sanderson 109d02531e remove TINYUSB_FAMILT_PROJECT_NAME_INCLUDES_BOARD setting 2021-06-01 11:21:19 -05:00
graham sanderson ebf6461c42 damn submodules! 2021-06-01 10:58:44 -05:00
graham sanderson 6e29bf6e54 rename family.cmake to family_common.cmake 2021-06-01 09:09:25 -05:00
graham sanderson 8782d0b8df fix rp2040 examples build from local tinyusb tree 2021-06-01 09:04:08 -05:00
graham sanderson f5572e24b2 restore unintentionally modified submodules 2021-05-31 11:49:15 -05:00
graham sanderson 90d7483d92 guard stdio_uart_init_full with LIB_PICO_STDUI_UART as the function doesn't exist otherwise 2021-05-31 11:18:26 -05:00
graham sanderson 13951b43c2 set PICO_TINYUSB_PATH for when building from within tinyusb without pico-sdk/tinyusb submodule 2021-05-31 10:58:14 -05:00
graham sanderson 5d161b79bb Fix up build_family style builds:
- added back pre-existing board directories which now just select PICO_BOARD
 - added boards/pico_sdk which just uses the pre-existing PICO_BOARD setting
 - fixed rp2040/family.cmake to include the magic string "CFG_TUSB_MCU=OPT_MCU_RP2040" expected by build_family.py
2021-05-31 10:06:12 -05:00
graham sanderson 95f2478146 Rework rp2040 examples and CMake build:
- Examples should be CMake buildable from their own subdirectory; such a build will error out based on
	  matching .skip.MCU_xxx or a mismatched .only.MCU_
	- It should be possible to build from a higher level and use .skip.MCU_ and .only.MCU_ to filter which
          examples get built
	- The intention is for the CMakeLists.txts in the examples to be non family specific and without MCU based IFs. I have
          started this work, but am not really sure the state of the esp32 stuff; in any case the plan is to have
          everything encapsulated in the FAMILY/family.cmake
	- pico_examples now just includes examples/device/CMakeLists.txt and examples/host/CMakeLists.txt directly, as they
	  also build correctly when included from there.
Note that .skip.MCU_ for esp32 in the directories it wasn't previously avaiable has not been added, as the .skip is common to the regular Makefile builds also. It isn't clear whether these examples should build for esp32, but if not .skip should be added.
2021-05-30 20:13:47 -05:00
hathach f9c542aa52
fix dfu example build 2021-05-26 18:16:56 +07:00
hathach 689d74a595
fix board test example build with nrf 2021-05-26 16:41:17 +07:00
hathach 954056da0c
fix warnings cast function type for nrf, fix pico osal warning
add TODO for overflow in tusb_fifo.c
2021-05-25 21:02:40 +07:00
hathach e70fb7fd41 fix mkl25z ci 2021-04-29 00:33:03 +07:00
hathach cf64b2214b fix build with mkl25z 2021-04-29 00:22:28 +07:00
hathach d70af332c0 fixed build with lpc51 2021-04-28 23:44:04 +07:00
hathach fdda9f75db add lpc54628 but usb clock;phy doesn't seem to be right 2021-04-28 23:25:07 +07:00
hathach 8a9f412788 fix lpc54 button 2021-04-28 22:34:56 +07:00
hathach 71a1f57ccd generalize lpc54 family 2021-04-28 21:34:26 +07:00
hathach 9a6552c4b3 fix build with lpc54 2021-04-28 20:02:17 +07:00
hathach fcedb2eecb fix lpc55 build 2021-04-28 19:53:31 +07:00
hathach 810057bdb2 fix build with imxrt 2021-04-28 19:30:23 +07:00
hathach af0db342df update lpc mcu sdk path 2021-04-28 18:30:19 +07:00
hathach aaa8c9928c add official nxp mcux-sdk submodule 2021-04-28 18:26:04 +07:00
hathach e115e08728 add nxp_lpcopen as submodule 2021-04-28 18:11:49 +07:00
hathach 62c5fa1056 remove submodule hw/mcu/nxp 2021-04-28 18:07:26 +07:00
hathach 3da76ae449 making new family lpc54 2021-04-28 16:13:43 +07:00
hathach c1c4b2f6bf complete lpc15 family 2021-04-28 15:16:36 +07:00
hathach bbc6d4f9e8 create new lpc15 family 2021-04-28 15:10:31 +07:00
hathach 6882a7af3b lpc1549 work well now 2021-04-28 14:53:46 +07:00
hathach b5339caa17 clean up lpc55 boards 2021-04-26 21:40:58 +07:00
hathach f4475ea85b change lpc55s28 default port to 1 2021-04-26 21:26:13 +07:00
Ha Thach 7abafbb1bd
Merge pull request #807 from UweBonnes/lpc55-port1-hs
mcu-link: Board support for MCU-LINK with LPC55S69JBD64
2021-04-26 20:28:47 +07:00
hathach ba90a8cb79 use correct NBYTES_MAX for full and high speed 2021-04-26 20:22:40 +07:00
Uwe Bonnes fd7337fe04 mcu_link: Board support for MCU_LINK with LPC55S69JBD64 2021-04-26 10:26:46 +02:00
hathach 8ebdf2b097 ip3511 correct buffer offset, nbytes layout for highspeed port1
able to get passed enumeration and up to READ10
2021-04-26 14:43:58 +07:00
hathach b15d126d59 lpc55 improve multiple controller support
port1 highspeed requires USB_RAM
2021-04-24 13:36:05 +07:00
hathach 7089df2088 lpc55 correct bus_reset with highspeed on support controller
correct hsphy init for family
2021-04-24 12:19:13 +07:00