Skip to content

Commit 8384004

Browse files
committed
update esp32 to also be supported by hil test
test run locally well
1 parent 9c9ebb3 commit 8384004

File tree

18 files changed

+99
-33
lines changed

18 files changed

+99
-33
lines changed

.github/workflows/build_esp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# ESP32-S2
3333
- 'espressif_kaluga_1'
3434
# ESP32-S3
35-
- 'espressif_s3_devkitm'
35+
- 'espressif_s3_devkitc'
3636

3737
steps:
3838
- name: Setup Python

examples/device/audio_4_channel_mic/skip.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ mcu:SAMD11
22
mcu:SAME5X
33
mcu:SAMG
44
family:broadcom_64bit
5+
family:espressif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
mcu:SAMD11
22
mcu:SAME5X
33
mcu:SAMG
4+
family:espressif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
mcu:SAMD11
22
mcu:SAME5X
33
mcu:SAMG
4+
family:espressif

examples/device/board_test/src/tusb_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
#define CFG_TUSB_OS OPT_OS_NONE
4949
#endif
5050

51+
// Espressif IDF requires "freertos/" prefix in include path
52+
#if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3)
53+
#define CFG_TUSB_OS_INC_PATH freertos/
54+
#endif
55+
5156
// This example only test LED & GPIO, disable both device and host stack
5257
#define CFG_TUD_ENABLED 0
5358
#define CFG_TUH_ENABLED 0

examples/device/cdc_msc/skip.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
mcu:SAMD11
2+
family:espressif

examples/device/cdc_msc_freertos/src/msc_disk.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ int32_t tud_msc_read10_cb(uint8_t lun, uint32_t lba, uint32_t offset, void* buff
184184
uint8_t const* addr = msc_disk[lba] + offset;
185185
memcpy(buffer, addr, bufsize);
186186

187-
return bufsize;
187+
return (int32_t) bufsize;
188188
}
189189

190190
// Callback invoked when received WRITE10 command.
@@ -203,7 +203,7 @@ int32_t tud_msc_write10_cb(uint8_t lun, uint32_t lba, uint32_t offset, uint8_t*
203203
(void) lba; (void) offset; (void) buffer;
204204
#endif
205205

206-
return bufsize;
206+
return (int32_t) bufsize;
207207
}
208208

209209
// Callback invoked when received an SCSI command not in built-in list below
@@ -237,14 +237,14 @@ int32_t tud_msc_scsi_cb (uint8_t lun, uint8_t const scsi_cmd[16], void* buffer,
237237
{
238238
if(in_xfer)
239239
{
240-
memcpy(buffer, response, resplen);
240+
memcpy(buffer, response, (size_t) resplen);
241241
}else
242242
{
243243
// SCSI output
244244
}
245245
}
246246

247-
return resplen;
247+
return (int32_t) resplen;
248248
}
249249

250250
#endif

examples/device/dfu/skip.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
mcu:TM4C123
22
mcu:BCM2835
3+
family:espressif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
mcu:SAMD11
2+
family:espressif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
mcu:SAMD11
22
mcu:MKL25ZXX
3+
family:espressif

0 commit comments

Comments
 (0)