add TS3USB30 to test s3 host with slave/dma
This commit is contained in:
@@ -41,9 +41,10 @@
|
||||
#define BUTTON_PIN 35
|
||||
#define BUTTON_STATE_ACTIVE 0
|
||||
|
||||
// For CI hardware test, to test both device and host on the same HS port with help of
|
||||
#define HIL_DEVICE_HOST_MUX_PIN 47
|
||||
#define HIL_DEVICE_STATE 1
|
||||
// For CI hardware test, to test both device and host on the same HS port with help of TS3USB30
|
||||
// https://www.adafruit.com/product/5871
|
||||
#define HIL_TS3USB30_MODE_PIN 47
|
||||
#define HIL_TS3USB30_MODE_DEVICE 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@@ -49,6 +49,11 @@
|
||||
#define MAX3421_CS_PIN 15
|
||||
#define MAX3421_INTR_PIN 14
|
||||
|
||||
// For CI hardware test, to test both device and host on the same HS port with help of TS3USB30
|
||||
// https://www.adafruit.com/product/5871
|
||||
#define HIL_TS3USB30_MODE_PIN 47
|
||||
#define HIL_TS3USB30_MODE_DEVICE 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@@ -92,10 +92,10 @@ void board_init(void) {
|
||||
usb_init();
|
||||
#endif
|
||||
|
||||
#ifdef HIL_DEVICE_HOST_MUX_PIN
|
||||
gpio_reset_pin(HIL_DEVICE_HOST_MUX_PIN);
|
||||
gpio_set_direction(HIL_DEVICE_HOST_MUX_PIN, GPIO_MODE_OUTPUT);
|
||||
gpio_set_level(HIL_DEVICE_HOST_MUX_PIN, CFG_TUD_ENABLED ? HIL_DEVICE_STATE : (1-HIL_DEVICE_STATE));
|
||||
#ifdef HIL_TS3USB30_MODE_PIN
|
||||
gpio_reset_pin(HIL_TS3USB30_MODE_PIN);
|
||||
gpio_set_direction(HIL_TS3USB30_MODE_PIN, GPIO_MODE_OUTPUT);
|
||||
gpio_set_level(HIL_TS3USB30_MODE_PIN, CFG_TUD_ENABLED ? HIL_TS3USB30_MODE_DEVICE : (1-HIL_TS3USB30_MODE_DEVICE));
|
||||
#endif
|
||||
|
||||
#if CFG_TUH_ENABLED && CFG_TUH_MAX3421
|
||||
|
Reference in New Issue
Block a user