mirror of
https://github.com/hathach/tinyusb.git
synced 2026-03-30 03:13:24 +00:00
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
2. Build at least one representative example (e.g., `examples/device/cdc_msc`) via CMake+Ninja or Make.
|
||||
3. Run unit tests relevant to touched modules; add fuzz/HIL coverage when modifying parsers or protocol state machines.
|
||||
|
||||
## Copilot Agent Notes (`./github/copilot-instruction.md`)
|
||||
## Copilot Agent Notes (`.github/copilot-instructions.md`)
|
||||
# TinyUSB
|
||||
TinyUSB is an open-source cross-platform USB Host/Device stack for embedded systems, designed to be memory-safe with no dynamic allocation and thread-safe with all interrupt events deferred to non-ISR task functions.
|
||||
|
||||
|
||||
@ -176,7 +176,7 @@ TU_ATTR_ALWAYS_INLINE static inline void dwc2_int_set(uint8_t rhport, tusb_role_
|
||||
TU_ATTR_ALWAYS_INLINE static inline void dwc2_remote_wakeup_delay(void) {
|
||||
// try to delay for 1 ms
|
||||
uint32_t count = SystemCoreClock / 1000;
|
||||
while ((count--) > 0) {
|
||||
while (count--) {
|
||||
__NOP();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user