diff options
| author | hathach <[email protected]> | 2023-10-27 17:40:53 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-10-27 17:40:53 +0700 |
| commit | 9cba9a753b2d8a8c06f1dacc5c16d656397f5d79 (patch) | |
| tree | a8cfa51408b3e4fa8e45c8218a6230f0e7780d8c /src | |
| parent | a2390802f83e7c98cba7ca0bb816c89649661045 (diff) | |
update s3 devkitm with max3421 pin following metro s3, check max3421 version to make sure it is valid
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/analog/max3421/hcd_max3421.c | 5 |
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); |
