<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tinyusb.git/examples/dual/dynamic_switch/src/main.c, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/tinyusb.git/atom/examples/dual/dynamic_switch/src/main.c?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/tinyusb.git/atom/examples/dual/dynamic_switch/src/main.c?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/'/>
<updated>2026-06-01T03:05:17Z</updated>
<entry>
<title>ultrareview nits: keep xfer_result table in sync, hoist blinky loop</title>
<updated>2026-06-01T03:05:17Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-06-01T03:05:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=7e0fcaa41ee9330274808d88e5211bdbe37511a4'/>
<id>urn:sha1:7e0fcaa41ee9330274808d88e5211bdbe37511a4</id>
<content type='text'>
- src/tusb.c: extend tu_str_xfer_result[] with "ABORTED" and "INVALID"
  to match the new enum size. Not reachable today (no HCD posts those
  values through hcd_event_xfer_complete), but keeps the enum/table
  invariant intact so future HCDs that surface ABORTED don't index OOB.

- examples/dual/dynamic_switch/src/main.c: apply the same while(1)
  hoist already done for cdc_task / print_devinfo_task to
  led_blinking_task. On OS_NONE the loop returned mid-iteration, which
  on first call could fire multiple back-to-back toggles while
  start_ms (initially 0) caught up to uptime.

Co-Authored-By: Claude Opus 4.7 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>dynamic_switch: hoist while(1) out for OS_NONE</title>
<updated>2026-05-29T17:52:22Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-05-29T17:52:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=a64eb336c4a8d3f9c160aa30b81033e3ad7227d8'/>
<id>urn:sha1:a64eb336c4a8d3f9c160aa30b81033e3ad7227d8</id>
<content type='text'>
Sonar flagged the loop body as executing only once on OS_NONE because
the OS_NONE branch returns inside the first iteration (main() drives
the task again). Make the while(1) conditional on RTOS so the OS_NONE
build is a straight-line function with no misleading loop.

Co-Authored-By: Claude Opus 4.7 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>remove sync() in tinyusb callback since it cause issue with RTOS when usbh task is blocking</title>
<updated>2026-05-28T11:20:22Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-05-28T11:20:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=c954c8c4c70df616e429d8e7ae1c382d3043acea'/>
<id>urn:sha1:c954c8c4c70df616e429d8e7ae1c382d3043acea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>replace board_millis() with tusb_time_millis_api() in dynamic_switch example</title>
<updated>2026-03-04T10:44:14Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-03-04T10:44:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=3fb668c2ac7ed612102221d086179d4a61f03c8d'/>
<id>urn:sha1:3fb668c2ac7ed612102221d086179d4a61f03c8d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a dynamic switch example</title>
<updated>2026-02-27T10:46:54Z</updated>
<author>
<name>HiFiPhile</name>
<email>admin@hifiphile.com</email>
</author>
<published>2025-11-28T18:46:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=5095ec97d872d51bd338e49987d8e336b9939628'/>
<id>urn:sha1:5095ec97d872d51bd338e49987d8e336b9939628</id>
<content type='text'>
Signed-off-by: HiFiPhile &lt;admin@hifiphile.com&gt;
</content>
</entry>
</feed>
