adding support for esp32 for use with max3421e host

This commit is contained in:
hathach
2024-04-25 20:23:40 +07:00
parent fc91e15488
commit 2e995d7cf4
21 changed files with 94 additions and 49 deletions

View File

@@ -484,8 +484,8 @@ bool hcd_init(uint8_t rhport) {
// 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);