diff options
| author | Limor "Ladyada" Fried <[email protected]> | 2024-04-25 17:24:51 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-25 17:24:51 -0400 |
| commit | a0cba9b0454b72905075d4adb131e77a16b63bcf (patch) | |
| tree | c262c4a1cde6d10135d89ba40eacc16af42a0d1b /src/portable | |
| parent | fc91e15488523548b6eafa63a3cb6190c1ba72d8 (diff) | |
| parent | 022de87550fdc63dd6dea91f39feecfce59eabe5 (diff) | |
Merge pull request #2611 from hathach/add-esp32-max3421e
Add esp32 max3421e
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/analog/max3421/hcd_max3421.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/portable/analog/max3421/hcd_max3421.c b/src/portable/analog/max3421/hcd_max3421.c index 39afb7505..4dc93d2d8 100644 --- a/src/portable/analog/max3421/hcd_max3421.c +++ b/src/portable/analog/max3421/hcd_max3421.c @@ -479,13 +479,15 @@ bool hcd_init(uint8_t rhport) { _hcd_data.spi_mutex = osal_mutex_create(&_hcd_data.spi_mutexdef); #endif + // NOTE: driver does not seem to work without nRST pin signal + // full duplex, interrupt negative edge reg_write(rhport, PINCTL_ADDR, _tuh_cfg.pinctl | PINCTL_FDUPSPI, false); // v1 is 0x01, v2 is 0x12, v3 is 0x13 uint8_t const revision = reg_read(rhport, REVISION_ADDR, false); - TU_ASSERT(revision == 0x01 || revision == 0x12 || revision == 0x13, false); TU_LOG2_HEX(revision); + TU_ASSERT(revision == 0x01 || revision == 0x12 || revision == 0x13, false); // reset reg_write(rhport, USBCTL_ADDR, USBCTL_CHIPRES, false); |
