Commit Graph

6821 Commits

Author SHA1 Message Date
bbc76e7777 Merge pull request #2104 from hathach/g4-pd
Initial support for USB PD stack
2023-06-12 23:14:48 +07:00
41801c2a6b add typec example to cmake 2023-06-12 17:12:25 +07:00
d2d486dced update docs 2023-06-12 17:06:04 +07:00
7a1179a4e1 tested with 9V request 2023-06-12 17:01:54 +07:00
6941a5af81 wrap up initial PD support for G4 2023-06-12 16:42:27 +07:00
c28503060c ad pd_types.h 2023-06-12 14:57:50 +07:00
debde4cc97 response with request safe5v, get passed PS_READY 2023-06-12 12:14:55 +07:00
39a64334aa Merge pull request #2100 from kilograham/top_broken
movement of TOP in c0ecf8b5 broke RP2040 SDK build
2023-06-10 17:24:23 +07:00
bb4fb0543b able to parse SOURCE_CAP message from dfp 2023-06-09 19:38:50 +07:00
912802456b move protocol message to stack, disable battery in PWR's CR3
there is still issue with CC1/CC2 pull down resistor and vstate is not
correct.
2023-06-09 18:15:28 +07:00
8181d470e5 enable DMA for both pd rx, tx 2023-06-08 18:55:54 +07:00
9c2a8490af dma rx works well 2023-06-08 13:37:37 +07:00
fc761953b3 define tuc_int_handler() to empty if TUC not enabled 2023-06-08 09:34:15 +07:00
7fd0a17bc3 default CFG_TUC_ENABLED to 0 2023-06-08 09:11:29 +07:00
0493983a8f movement of TOP in c0ecf8b5 broke RP2040 SDK build 2023-06-07 14:46:14 -05:00
aaec12a3fb Merge pull request #2077 from abakosh/renesas_packed
fix(RA Host Portable): git rid of the IAR warnings for packed
2023-06-07 19:00:41 +07:00
9b7dee563e able to response with good crc 2023-06-07 18:57:48 +07:00
8bb012e50b fix(RA): static assert RUSB2 register 2023-06-07 12:01:59 +02:00
b893f1d541 inital support for usb typec and pd example 2023-06-07 15:10:40 +07:00
914e82b25d able to receive first PD message 2023-06-07 09:36:37 +07:00
e02eee7477 revert board flash latency to 8 2023-06-07 00:14:22 +07:00
23f7130ae4 update rtt to rev 25842 2023-06-07 00:07:58 +07:00
b3fda4a354 able to get usbpd irq handler
- handle cc1, cc2 voltage changes
- get order set, rx message end interrupt
- add  segger rtt support for cmake
2023-06-06 23:55:33 +07:00
a70978e057 clean up 2023-06-05 19:53:40 +07:00
f6a45a7aab clean up 2023-06-05 15:41:45 +07:00
268ab5863a fix(RA Host Portable): git rid of the IAR warnings for packed 2023-06-02 14:14:57 +02:00
c7686f8d5e Merge pull request #2092 from hathach/stm32g4
Stm32g4
2023-06-02 17:07:28 +07:00
2016ad72f3 fix iar ci 2023-06-02 16:21:49 +07:00
11fb837b51 fix ci 2023-06-02 16:15:26 +07:00
c2bc363f06 build g0 g4 iar cmake 2023-06-02 16:11:00 +07:00
bb795e6a5e update cmake to build with IAR for g0 and g4 2023-06-02 15:26:16 +07:00
fcf7791454 add IAR support for G0 with cmake 2023-06-02 13:27:18 +07:00
e7090c7514 cmake refactor 2023-06-02 11:42:17 +07:00
ba3d71b615 fix usb clock for dpow1 2023-06-02 10:19:46 +07:00
002cb9289d Merge pull request #2089 from DRNadler/master
Fix diagnostic format string (missing %u)
2023-06-01 22:56:18 +07:00
c3bde520cc add new b_g474e_dpow1 board 2023-06-01 22:16:30 +07:00
70a92291fe Fix diagnostic format string (missing %u) 2023-06-01 10:58:03 -04:00
cbbd858be4 Merge pull request #1942 from HubertD/feature/STM32G0
STM32G0 support
2023-06-01 21:34:39 +07:00
dc3afdbf3b add note for B0 clock variant 2023-06-01 20:52:48 +07:00
c750030f7a add freertosconfig for g0, add cmake stlink, add g0 to cmake ci 2023-06-01 17:09:00 +07:00
6280cba6e8 tested with g0b1 nucleo 2023-06-01 16:52:58 +07:00
6b44d8fb55 add cmake support for g0, exlicitly call HAL_Init() and also HAL_IncTick() in systick irq, fix button active state. 2023-06-01 15:58:02 +07:00
af59864ab5 Merge branch 'master' into feature/STM32G0 2023-06-01 13:28:28 +07:00
77714e02ca Merge pull request #2088 from hathach/minor-cleanup
add lto for cmake
2023-06-01 13:22:09 +07:00
62b2d05d34 skip set CMAKE_EXECUTABLE_SUFFIX for espressif port 2023-06-01 12:50:32 +07:00
19a597bcae add lto for cmake 2023-06-01 12:36:08 +07:00
ddc029ce54 Merge pull request #2016 from ipopov/master
Even when we get an empty "status change" interrupt from the hub, schedule another interrupt poll
2023-05-29 13:47:23 +07:00
20ef6c4ef7 slightly clean up 2023-05-29 13:29:11 +07:00
5c428d35a6 check status_change is not zero first 2023-05-29 13:27:20 +07:00
8ad024e51b Even when we get an empty "status change" interrupt from the hub, schedule another interrupt poll.
During enumeration, when there are multiple devices attached to the
hub as it's plugged into the Pi Pico, enumeration hangs, because we
get a "status change" callback with value zero. With this patch, we
retry several times on "zero" status change callbacks, until
eventually we succeed.

This is the cheapo hub that exhibits this behavior, but I assume it's
not the only one: https://www.amazon.com/gp/product/B083RQMC7S.

While debugging this, I consulted the implementation in the Linux
kernel. There, hub setup explicitly checks each port individually,
before starting to depend on "status change" interrupts:
https://elixir.bootlin.com/linux/latest/source/drivers/usb/core/hub.c#L1133.
We probably should do something like that here, but it's a much bigger
change.
2023-05-29 13:18:16 +07:00