-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(esp_tinyusb): Uninstall TinyUSB driver while external task is using #115
base: feature/esp32p4_fs_phy_config
Are you sure you want to change the base?
fix(esp_tinyusb): Uninstall TinyUSB driver while external task is using #115
Conversation
ac9b94c
to
bb9ab4a
Compare
} | ||
|
||
/** | ||
* @brief TinyUSB Teardown specific testcase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @brief TinyUSB Teardown specific testcase | |
* @brief TinyUSB Task specific testcase |
} | ||
|
||
/** | ||
* @brief TinyUSB Teardown specific testcase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @brief TinyUSB Teardown specific testcase | |
* @brief TinyUSB Task specific testcase |
/** | ||
* @brief TinyUSB Teardown specific testcase | ||
* | ||
* Scenario: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Scenario: | |
* Scenario: | |
* 1. Install TinyUSB driver | |
* 2. Wait tud_mount_cb() until TUSB_DEVICE_DELAY_MS | |
* 3. Wait TUSB_DEVICE_DELAY_MS | |
* 4. Teardown TinyUSB | |
* 5. Release resources |
* 2. Create external TinyUSB task for tud_task() | ||
* 3. Wait tud_mount_cb() for TUSB_DEVICE_DELAY_MS | ||
* 4. Wait TUSB_DEVICE_DELAY_MS | ||
* 5. Teardwon TinyUSB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 5. Teardwon TinyUSB | |
* 5. Teardown TinyUSB |
} | ||
|
||
/** | ||
* @brief TinyUSB Teardown specific testcase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @brief TinyUSB Teardown specific testcase | |
* @brief TinyUSB Task specific testcase |
/** | ||
* @brief TinyUSB Teardown specific testcase | ||
* | ||
* Scenario: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Scenario: | |
* Scenario: | |
* 1. Install TinyUSB driver | |
* 2. Wait tud_mount_cb() until TUSB_DEVICE_DELAY_MS | |
* 3. Wait TUSB_DEVICE_DELAY_MS | |
* 4. Teardown TinyUSB | |
* 5. Release resources |
@@ -0,0 +1,16 @@ | |||
# Configure TinyUSB, it will be used to mock USB devices |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Configure TinyUSB, it will be used to mock USB devices | |
# Configure TinyUSB |
@@ -0,0 +1,16 @@ | |||
# Configure TinyUSB, it will be used to mock USB devices |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Configure TinyUSB, it will be used to mock USB devices | |
# Configure TinyUSB |
@@ -0,0 +1,16 @@ | |||
# Configure TinyUSB, it will be used to mock USB devices |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Configure TinyUSB, it will be used to mock USB devices | |
# Configure TinyUSB |
* Scenario: | ||
* 1. Install TinyUSB driver | ||
* 2. Create external TinyUSB task for tud_task() | ||
* 3. Wait tud_mount_cb() for TUSB_DEVICE_DELAY_MS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 3. Wait tud_mount_cb() for TUSB_DEVICE_DELAY_MS | |
* 3. Wait tud_mount_cb() until TUSB_DEVICE_DELAY_MS |
Description
Fixed error when esp_tinyusb is configured with
CONFIG_TINYUSB_NO_DEFAULT_TASK=y
Related
Prerequisites for dynamic TinyUSB configuration:
Testing
Added three additional test applications for two parameters
CONFIG_TINYUSB_NO_DEFAULT_TASK
andCONFIG_TINYUSB_INIT_IN_DEFAULT_TASK
Test Matrix:
CONFIG_TINYUSB_NO_DEFAULT_TASK=n
,CONFIG_TINYUSB_INIT_IN_DEFAULT_TASK=n
)CONFIG_TINYUSB_NO_DEFAULT_TASK=n
,CONFIG_TINYUSB_INIT_IN_DEFAULT_TASK=y
)CONFIG_TINYUSB_NO_DEFAULT_TASK=y
)Checklist
Before submitting a Pull Request, please ensure the following: