5733 Commits

Author SHA1 Message Date
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
c722133671 change OPT_MCU_PIC32MZ to value of 1900 2022-01-16 15:38:23 +07:00
Ha Thach
5dab0e8aed
Merge pull request #1282 from hathach/fix-esp-ci
Fix esp ci
2022-01-16 14:20:41 +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
Ha Thach
76987fb357
Merge pull request #1235 from vmilea/feature/feedback_format
Support disabling feedback format correction #1234
2022-01-16 12:54:50 +07:00
hathach
45fb60e883 update format correction with actual bus speed 2022-01-16 12:12:57 +07:00
Jerzy Kasenberg
da44fe3fc9 nrf5x: Fix EP OUT race conditions
When dcd_edpt_xfer() starts new transfer two separate problems were observed.
For both problems stream of OUT packets was pouring from host.

First problem was that total_len and actual_len were not atomic.
In case where incoming OUT packets are less (63) than MPS (64), actual_len and total_len
are set 63.
Then transfer complete from USBD is called that will schedule next 64 bytes transfer.
At that point incoming packet would start DMA if there is place in RAM, normally
it does not happen since actual_len == total_len.
If packets arrives and interrupt is raised after total_len is set (64) but actual_len is still 63 from
previous transfer, interrupt code sees that there is place in ram (1 byte) and transfer this 1 byte
to buffer that was already filled with previous packet.
To remedy this USB interrupt is blocked during transfer setup.

Second problem can happen when dcd_edpt_xfer setups xfer->total_len and actual_len correctly
but then context switch happens before xfer->data_received is checked.
If during this time two packets arrive one will be copied to RAM second will stay in endpoint with
data_received set to 1.
Then when xfer_edpt_xfer() checks data_receive flag it starts DMA again overwriting data.
To remedy this, data_received is checked together with check if data was already transferred.
If transfer was complete, there is no need to start DMA yet.
In such case data_received will be handled in same place by next xfer_edpt_xfer() correctly.
2022-01-14 09:46:39 +01: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
kkitayam
c5d825450a Fix dwFrameIntervalStep and dwMaxFrameInterval
dwMaxFrameInterval minus dwMinFrameInterval should be evenly divisible by
dwFrameIntervalStep.
2022-01-13 00:24:56 +09: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
Jerzy Kasenberg
340309561d Add driver for PIC32MZ MCUs
Device-only driver for PIC32MZ MCUs.
2022-01-07 14:12:42 +01:00
Valentin Milea
c2533a45bd Merge branch 'master' into feature/feedback_format 2022-01-07 15:12:07 +02:00
Valentin Milea
a284e438f1 Disable feedback format correction by default #1234 2022-01-07 15:02:52 +02:00
Man, Jianting (Meco)
13015a17a4
Update README.rst 2022-01-06 12:40:08 -05:00
Ha Thach
3b09b82123
Merge pull request #1272 from EmergReanimator/cortex-m33
Enable breakpoints for ARM8M (e.g. cortex-m33)
2022-01-06 18:17:12 +07:00
EmergReanimator
44406a8940 Enable breakpoints for ARM8M (e.g. cortex-m33) 2022-01-06 09:56:45 +01:00
Ha Thach
77b42344ac
Merge pull request #1271 from tannewt/rpi_zero
Add Raspberry Pi Zero W and Zero 2 W
2022-01-06 10:42:25 +07:00
Scott Shawcroft
bed8913107
Skip dfu and usbtmc on pi zero 2022-01-05 16:17:19 -08: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
Meco Man
5f9e361f5c [rt-thread] add rt-thread os in readme 2022-01-02 02:06:53 -05:00
Jerzy Kasenberg
2f69649bb6 Add register file for Microchip PIC32MZ 2021-12-31 22:53:27 +01:00
Ha Thach
868948f67c
Merge pull request #1264 from kasjer/kasjer/make-files-for-xc32
build system: Changes for xc32 compiler
2021-12-31 19:22:52 +07:00
Ha Thach
c8641ee940
Merge pull request #1263 from kasjer/kasjer/mynewt-eptri
Fix Mynewt build for Microchip PIC32MZ devices.
2021-12-30 22:48:11 +07:00
hathach
c5d2c82cbb
fix unreachable warnings with keil 2021-12-30 20:59:53 +07:00
hathach
adb848f754
update docs 2021-12-29 19:42:34 +07: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
2b8b8a3a97 Fix hcd_edpt_clear_stall 2021-12-27 22:55:28 +09:00
kkitayam
745607357b Update Renesas RX status 2021-12-27 21:51:23 +09:00
kkitayam
2c0fcc2fa7 Add statements for control VBUS 2021-12-27 21:36:49 +09: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
Jerzy Kasenberg
7a596b9e55 Fix Mynewt build for Microchip PIC32MZ devices.
definition of DEBUG breaks Microchip pic32 builds for Mynewt.
When MCU is not VALENTYUSB_EPTRI there is no need to have any
preprocessor definitions.
It may not look like a big deal but for xc32 builds, compiler
automatically force-includes some file that have structure with field name
DEBUG that result in build error in dcd_eptri.c when this file
is not really needed.

Moving DEBUG and LOG_USB few lines down should not break eptri builds.
2021-12-27 10:14:38 +01:00
Jerzy Kasenberg
5c5ecea6f1 build system: Changes for xc32 compiler
Three changes are needed to accommodate xc32 compiler build:
- optimized build flag other than -Os
   added CFLAGS_OPTIMIZED that defaults to -Os but can be overridden in boards
- build without -lnosys
   added LIBS_GCC with default libraries that can be changed in boards
- build without LD_FILE specification
   if LD_FILE is empty -Wl,-T options is not added to LDFLAGS
2021-12-27 10:11:56 +01:00
Ha Thach
a6789b5d5a
Merge pull request #1260 from leptun/patch-1
Fix typo
2021-12-23 11:30:15 +07:00
Alex Voinea
103817b8b6
Fix typo
Oops. Made a typo in 6de423606fc9d512efb830b198c76f095a182a1c
2021-12-22 22:56:53 +02:00
Ha Thach
557eb51405
Merge pull request #1258 from leptun/nucleo-f439zi
nucleo-f439zi support
2021-12-22 13:25:16 +07:00
Alex Voinea
6de423606f nucleo-f439zi support 2021-12-21 18:24:05 +01:00
Ha Thach
a4cfd1c69a
Merge pull request #1255 from hathach/add-s3-devkitm
Add s3 devkitm & devkitc
2021-12-21 01:07:54 +07:00
hathach
311248c8b0 add s3 devkitc 2021-12-21 00:10:38 +07:00
hathach
63310d72e1 skip ci for s3 2021-12-21 00:04:50 +07:00