diff options
| author | hathach <[email protected]> | 2024-11-28 16:11:30 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-11-28 16:11:30 +0700 |
| commit | 79373afaafffe64dd2bb33d725b88137c3d4ee6f (patch) | |
| tree | 272da237079fd812ec088f16fa0cabb3494891c7 /examples/device/audio_test/src | |
| parent | 047ba0a62db8a078aa2f7d68d00cbf41406c0fb2 (diff) | |
| parent | 5bb90efd5ff59d3b1d67f3c9269ce1aa57a925a6 (diff) | |
Merge branch 'master' into fork/HiFiPhile/lwip_fix
Diffstat (limited to 'examples/device/audio_test/src')
| -rw-r--r-- | examples/device/audio_test/src/main.c | 6 | ||||
| -rwxr-xr-x[-rw-r--r--] | examples/device/audio_test/src/plot_audio_samples.py | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/examples/device/audio_test/src/main.c b/examples/device/audio_test/src/main.c index f79bb4468..018c48994 100644 --- a/examples/device/audio_test/src/main.c +++ b/examples/device/audio_test/src/main.c @@ -79,7 +79,11 @@ int main(void) board_init(); // init device stack on configured roothub port - tud_init(BOARD_TUD_RHPORT); + tusb_rhport_init_t dev_init = { + .role = TUSB_ROLE_DEVICE, + .speed = TUSB_SPEED_AUTO + }; + tusb_init(BOARD_TUD_RHPORT, &dev_init); if (board_init_after_tusb) { board_init_after_tusb(); diff --git a/examples/device/audio_test/src/plot_audio_samples.py b/examples/device/audio_test/src/plot_audio_samples.py index 1504684a6..ea6aa661e 100644..100755 --- a/examples/device/audio_test/src/plot_audio_samples.py +++ b/examples/device/audio_test/src/plot_audio_samples.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import sounddevice as sd import matplotlib.pyplot as plt import numpy as np |
