<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tinyusb.git/examples/host/cdc_msc_hid/src/cdc_app.c, branch rework-metrics</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/tinyusb.git/atom/examples/host/cdc_msc_hid/src/cdc_app.c?h=rework-metrics</id>
<link rel='self' href='http://cgit.235523.xyz/tinyusb.git/atom/examples/host/cdc_msc_hid/src/cdc_app.c?h=rework-metrics'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/'/>
<updated>2026-09-05T08:25:15Z</updated>
<entry>
<title>examples: write the host cdc console over RTT when that is the console</title>
<updated>2026-09-05T08:25:15Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-09-03T11:19:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=c60c7bac231cee58db0fa8bdd3c3fd251dad2ee8'/>
<id>urn:sha1:c60c7bac231cee58db0fa8bdd3c3fd251dad2ee8</id>
<content type='text'>
console_write() forwards what the attached CDC device sent back to the
board's console, and reached for board_uart_write() directly to stay
non-blocking. On a board whose console is the debug probe there is no UART:
board_uart_write() is a stub returning -1, so everything the device echoed was
dropped, and the do/while loop retried a write that could never make progress
and spun until more data arrived.

Send it through SEGGER_RTT_Write() on LOGGER_RTT builds -- already
non-blocking in the default NO_BLOCK_SKIP mode, which is what the UART path
wanted board_uart_write() for.

The retry is also bounded now. board_uart_write() is only documented to
return the number of bytes sent, and the stubs disagree on how they say "no
console here" -- lpc40 returns -1, apm32f0xx returns 0 -- so the loop cannot
decide from the return value alone when to stop. It gives up after 10 ms
without progress instead, which no draining console ever hits, and keeps the
negative return as a fast path so a stub UART does not cost that wait on
every read.

The RTT header include lives in board_api.h so any example can reach it; the
include path only exists when LOGGER=rtt defines LOGGER_RTT.

host/cdc_msc_hid now passes on ea4088_quickstart, whose probe (LPC-Link2) has
no VCOM: the CDC echo round-trips through a CH340 with TX-RX shorted.
</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>fix issue with exmaple</title>
<updated>2026-04-03T03:45:16Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-04-02T16:56:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=9368e5d40f3d8e5ac323d288f969782a962d593e'/>
<id>urn:sha1:9368e5d40f3d8e5ac323d288f969782a962d593e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix hil host cdc echo test with imxrt and other fast mcu</title>
<updated>2026-04-03T03:45:13Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-04-02T16:30:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=134e14849b1864ce3454950a50d2c79d93a96cd8'/>
<id>urn:sha1:134e14849b1864ce3454950a50d2c79d93a96cd8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix more alerts</title>
<updated>2025-11-08T08:54:02Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2025-11-08T08:54:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=7f173ab5ed6a80a5fd6780779fe63fb97d2be0e9'/>
<id>urn:sha1:7f173ab5ed6a80a5fd6780779fe63fb97d2be0e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>improve cmake warning flags, fix various warnings in examples</title>
<updated>2025-10-14T10:13:28Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2025-10-14T10:13:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=47b13f6b102ea981b79588158dca436ebc21f1ae'/>
<id>urn:sha1:47b13f6b102ea981b79588158dca436ebc21f1ae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update example</title>
<updated>2025-07-02T08:38:14Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2025-07-02T08:38:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=a8b5e2bfc0a2d35ba775f7b2de81d531ed525e41'/>
<id>urn:sha1:a8b5e2bfc0a2d35ba775f7b2de81d531ed525e41</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cdch clean up and refactor, add explicit sync() API</title>
<updated>2025-06-20T05:52:34Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2025-06-20T05:52:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=adf6cbfe03523cd8f7e23cb7f2edbb4304a6cd89'/>
<id>urn:sha1:adf6cbfe03523cd8f7e23cb7f2edbb4304a6cd89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add common cdch_process_set_config() to safely complete set_config() when it failed.</title>
<updated>2025-06-17T15:16:13Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2025-06-17T15:16:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=d4abf43f226b5594c935c60c38d05a90359763e1'/>
<id>urn:sha1:d4abf43f226b5594c935c60c38d05a90359763e1</id>
<content type='text'>
driver_process_set_config() also pass drv index with user_data
</content>
</entry>
<entry>
<title>fix wanings</title>
<updated>2025-03-25T10:36:15Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2025-03-25T10:36:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=99673cdbb81b76f7020cf6aacb182ea86fdee3da'/>
<id>urn:sha1:99673cdbb81b76f7020cf6aacb182ea86fdee3da</id>
<content type='text'>
</content>
</entry>
</feed>
