summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-10-30 11:10:03 +0700
committerGitHub <[email protected]>2023-10-30 11:10:03 +0700
commita91b720c2e9af142cc7b26801381e84cf4e50953 (patch)
treed8fc339dcaeec8d17f1e28954e393fe12ae68754 /src
parent10558acac6658d1480a6a6c025e006f2a6f4e212 (diff)
parent9cba9a753b2d8a8c06f1dacc5c16d656397f5d79 (diff)
Merge pull request #2291 from hathach/minor-update-max3421
minor update for max3421
Diffstat (limited to 'src')
-rw-r--r--src/portable/analog/max3421/hcd_max3421.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/portable/analog/max3421/hcd_max3421.c b/src/portable/analog/max3421/hcd_max3421.c
index 787c1e511..4665c1b06 100644
--- a/src/portable/analog/max3421/hcd_max3421.c
+++ b/src/portable/analog/max3421/hcd_max3421.c
@@ -433,8 +433,9 @@ bool hcd_init(uint8_t rhport) {
reg_write(rhport, PINCTL_ADDR, PINCTL_FDUPSPI, false);
// V1 is 0x01, V2 is 0x12, V3 is 0x13
-// uint8_t const revision = reg_read(rhport, REVISION_ADDR, false);
-// TU_LOG2_HEX(revision);
+ uint8_t const revision = reg_read(rhport, REVISION_ADDR, false);
+ TU_ASSERT(revision == 0x01 || revision == 0x12 || revision == 0x13, false);
+ TU_LOG2_HEX(revision);
// reset
reg_write(rhport, USBCTL_ADDR, USBCTL_CHIPRES, false);