summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-09-28 16:15:31 +0700
committerhathach <[email protected]>2023-09-28 16:15:31 +0700
commit8348631bf538e2aa0a433ed6e7df9e42bb39bdd5 (patch)
tree18fd0a2c14493d2e6baf7490fc73deac81fe2290 /hw
parent6b8933cfe838b369c58d4fc9ced8aa5c9382a6d6 (diff)
improve esp32 ci, build esp32 with -DDMAX3421_HOST=1 for max3421 testing
revert change in hcd.h
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/espressif/boards/espressif_s3_devkitm/board.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/bsp/espressif/boards/espressif_s3_devkitm/board.h b/hw/bsp/espressif/boards/espressif_s3_devkitm/board.h
index fe33b5c43..4b4151e72 100644
--- a/hw/bsp/espressif/boards/espressif_s3_devkitm/board.h
+++ b/hw/bsp/espressif/boards/espressif_s3_devkitm/board.h
@@ -36,6 +36,14 @@
#define BUTTON_PIN 0
#define BUTTON_STATE_ACTIVE 0
+// SPI for USB host shield
+#define MAX3421_SPI_HOST SPI2_HOST
+#define MAX3421_SCK_PIN 36
+#define MAX3421_MOSI_PIN 35
+#define MAX3421_MISO_PIN 37
+#define MAX3421_CS_PIN 15
+#define MAX3421_INTR_PIN 14
+
#ifdef __cplusplus
}
#endif