add TS3USB30 to test s3 host with slave/dma
This commit is contained in:
@@ -41,9 +41,10 @@
|
|||||||
#define BUTTON_PIN 35
|
#define BUTTON_PIN 35
|
||||||
#define BUTTON_STATE_ACTIVE 0
|
#define BUTTON_STATE_ACTIVE 0
|
||||||
|
|
||||||
// For CI hardware test, to test both device and host on the same HS port with help of
|
// For CI hardware test, to test both device and host on the same HS port with help of TS3USB30
|
||||||
#define HIL_DEVICE_HOST_MUX_PIN 47
|
// https://www.adafruit.com/product/5871
|
||||||
#define HIL_DEVICE_STATE 1
|
#define HIL_TS3USB30_MODE_PIN 47
|
||||||
|
#define HIL_TS3USB30_MODE_DEVICE 1
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@@ -49,6 +49,11 @@
|
|||||||
#define MAX3421_CS_PIN 15
|
#define MAX3421_CS_PIN 15
|
||||||
#define MAX3421_INTR_PIN 14
|
#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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -92,10 +92,10 @@ void board_init(void) {
|
|||||||
usb_init();
|
usb_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HIL_DEVICE_HOST_MUX_PIN
|
#ifdef HIL_TS3USB30_MODE_PIN
|
||||||
gpio_reset_pin(HIL_DEVICE_HOST_MUX_PIN);
|
gpio_reset_pin(HIL_TS3USB30_MODE_PIN);
|
||||||
gpio_set_direction(HIL_DEVICE_HOST_MUX_PIN, GPIO_MODE_OUTPUT);
|
gpio_set_direction(HIL_TS3USB30_MODE_PIN, GPIO_MODE_OUTPUT);
|
||||||
gpio_set_level(HIL_DEVICE_HOST_MUX_PIN, CFG_TUD_ENABLED ? HIL_DEVICE_STATE : (1-HIL_DEVICE_STATE));
|
gpio_set_level(HIL_TS3USB30_MODE_PIN, CFG_TUD_ENABLED ? HIL_TS3USB30_MODE_DEVICE : (1-HIL_TS3USB30_MODE_DEVICE));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CFG_TUH_ENABLED && CFG_TUH_MAX3421
|
#if CFG_TUH_ENABLED && CFG_TUH_MAX3421
|
||||||
|
@@ -21,16 +21,18 @@
|
|||||||
"name": "espressif_s3_devkitm",
|
"name": "espressif_s3_devkitm",
|
||||||
"uid": "84F703C084E4",
|
"uid": "84F703C084E4",
|
||||||
"build" : {
|
"build" : {
|
||||||
"flags_on": ["", "CFG_TUD_DWC2_DMA_ENABLE"]
|
"flags_on": ["", "CFG_TUD_DWC2_DMA_ENABLE CFG_TUH_DWC2_DMA_ENABLE"]
|
||||||
},
|
},
|
||||||
"tests": {
|
"tests": {
|
||||||
"only": ["device/cdc_msc_freertos", "device/hid_composite_freertos"]
|
"only": ["device/cdc_msc_freertos", "device/hid_composite_freertos", "host/device_info"],
|
||||||
|
"dev_attached": [{"vid_pid": "1a86_55d4", "serial": "52D2005402"}]
|
||||||
},
|
},
|
||||||
"flasher": {
|
"flasher": {
|
||||||
"name": "esptool",
|
"name": "esptool",
|
||||||
"uid": "3ea619acd1cdeb11a0a0b806e93fd3f1",
|
"uid": "3ea619acd1cdeb11a0a0b806e93fd3f1",
|
||||||
"args": "-b 1500000"
|
"args": "-b 1500000"
|
||||||
}
|
},
|
||||||
|
"comment": "Use TS3USB30 mux to test both device and host"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "feather_nrf52840_express",
|
"name": "feather_nrf52840_express",
|
||||||
|
Reference in New Issue
Block a user