<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tinyusb.git/src/portable/dialog, branch 0.12.0</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/tinyusb.git/atom/src/portable/dialog?h=0.12.0</id>
<link rel='self' href='http://cgit.235523.xyz/tinyusb.git/atom/src/portable/dialog?h=0.12.0'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/'/>
<updated>2021-10-15T10:02:15Z</updated>
<entry>
<title>dcd_da146xx: Drop unexpected data</title>
<updated>2021-10-15T10:02:15Z</updated>
<author>
<name>Jerzy Kasenberg</name>
<email>jerzy.kasenberg@codecoup.pl</email>
</author>
<published>2021-10-15T09:57:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=bf4b133084585d302691e53faf868c0c37b9eaf0'/>
<id>urn:sha1:bf4b133084585d302691e53faf868c0c37b9eaf0</id>
<content type='text'>
USB3CV tool verifies MSC device by sending too short or
too long packets.
In case of too long packets (msc_device requested 31 bytes
but incoming data had 32 bytes) extra byte(s) were left in
FIFO resulting in some data mismatch later on.

Now if more data is received in packet that expected extra
bytes are just dropped.
</content>
</entry>
<entry>
<title>dcd_da146xx: Fix EPIN stall notification handling</title>
<updated>2021-10-15T10:02:15Z</updated>
<author>
<name>Jerzy Kasenberg</name>
<email>jerzy.kasenberg@codecoup.pl</email>
</author>
<published>2021-10-15T09:34:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=49aa0b72a8301f21281fa6498af47ac26bcb1bea'/>
<id>urn:sha1:49aa0b72a8301f21281fa6498af47ac26bcb1bea</id>
<content type='text'>
Normal TX handler for IN non-0 endpoints is called during
outgoing transfer or just after it was finished.
It may need to fill TX fifo with same data if TX_DONE is present
but ACK_STAT is not.
It may need to fill more data when called during transfer.
But it may also be called when STALL was sent.
In this case TX_DONE is set ACK_STAT is not, just like for packets
that were sent but no ACK was received.
Code was trying to send something again. There was nothing to send
so empty ZLP was scheduled for stalled endpoint.
This ZLP was later send to host where valid response was required.

This change checks if notification was for STALL endpoint and
does not try to fill TX FIFO in that case.
</content>
</entry>
<entry>
<title>Merge pull request #1101 from kasjer/kasjer/da146xx-bus-reset-sleep</title>
<updated>2021-10-13T09:33:54Z</updated>
<author>
<name>Ha Thach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2021-10-13T09:33:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=9da234cd7c73786624970206d7b7b7361275a6b7'/>
<id>urn:sha1:9da234cd7c73786624970206d7b7b7361275a6b7</id>
<content type='text'>
da146xx bus reset and sleep reworked</content>
</entry>
<entry>
<title>Merge pull request #1103 from kasjer/kasjer/da146xx-close-cleanup</title>
<updated>2021-09-24T13:55:16Z</updated>
<author>
<name>Ha Thach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2021-09-24T13:55:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=1c17cb1c451f8564623fef09fa4bd74a0e2a30da'/>
<id>urn:sha1:1c17cb1c451f8564623fef09fa4bd74a0e2a30da</id>
<content type='text'>
dcd_da146xx: Remove registers pointer from xfer_ctl_t</content>
</entry>
<entry>
<title>dcd_da146xx: Implement dcd_edpt_close_all()</title>
<updated>2021-09-24T08:46:16Z</updated>
<author>
<name>Jerzy Kasenberg</name>
<email>jerzy.kasenberg@codecoup.pl</email>
</author>
<published>2021-09-20T13:32:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=fbac58e3e40a3741db96c258ac88ec5d19ee0251'/>
<id>urn:sha1:fbac58e3e40a3741db96c258ac88ec5d19ee0251</id>
<content type='text'>
Unconditionally disables all endpoints except EP0.
</content>
</entry>
<entry>
<title>dcd_da146xx: Clear transfer data on dcd_edpt_close</title>
<updated>2021-09-24T07:28:51Z</updated>
<author>
<name>Jerzy Kasenberg</name>
<email>jerzy.kasenberg@codecoup.pl</email>
</author>
<published>2021-09-24T07:15:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=1503955860ba1b0797a07dfab15a9d424f105839'/>
<id>urn:sha1:1503955860ba1b0797a07dfab15a9d424f105839</id>
<content type='text'>
Closing endpoint clears data in affected xfer_ctl_t
</content>
</entry>
<entry>
<title>dcd_da146xx: Remove registers pointer from xfer_ctl_t</title>
<updated>2021-09-24T07:28:51Z</updated>
<author>
<name>Jerzy Kasenberg</name>
<email>jerzy.kasenberg@codecoup.pl</email>
</author>
<published>2021-09-24T07:12:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=f172c5ee13fe9eb00e7560c5f2ded34290b9e4f7'/>
<id>urn:sha1:f172c5ee13fe9eb00e7560c5f2ded34290b9e4f7</id>
<content type='text'>
Note: this commit does not change any logic.

xfer_ctl_t structure keeps all dynamic data connected with transfer.
It used to have pointer to register set that was constant and was there
for convenience only.
Removing register pointer from structure makes cleanup easier as whole
structure can be erased with memset like function.

In many cases functions were using local variable regs and xfer-&gt;regs which
were same, that could be confusing so this part is unified.

Few macros were added for easy conversion between epnum, xfer, and regs.
</content>
</entry>
<entry>
<title>dcd_da146xx: Update bus handling</title>
<updated>2021-09-23T12:12:50Z</updated>
<author>
<name>Jerzy Kasenberg</name>
<email>jerzy.kasenberg@codecoup.pl</email>
</author>
<published>2021-09-23T11:40:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=428eedcd04bf6e84f15252df6aebd030942c0f01'/>
<id>urn:sha1:428eedcd04bf6e84f15252df6aebd030942c0f01</id>
<content type='text'>
So far bus reset was handled (with some holes in it).
Sleep and remote wakeup were not really tested and did not work.

With this change:
- bus reset is reworked
- remote wakeup works
- bus signal sleep is handled
</content>
</entry>
<entry>
<title>dcd_da146xx: Handle only enabled interrupts</title>
<updated>2021-09-23T12:12:50Z</updated>
<author>
<name>Jerzy Kasenberg</name>
<email>jerzy.kasenberg@codecoup.pl</email>
</author>
<published>2021-09-23T11:36:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=c4277124499430ecfc6bed9cb2789144a3872b02'/>
<id>urn:sha1:c4277124499430ecfc6bed9cb2789144a3872b02</id>
<content type='text'>
Not much of an improvement but handle only interrupts
that were enabled and are expected.
</content>
</entry>
<entry>
<title>dcd_da146xx: Add VBUS handling</title>
<updated>2021-09-17T10:10:17Z</updated>
<author>
<name>Jerzy Kasenberg</name>
<email>jerzy.kasenberg@codecoup.pl</email>
</author>
<published>2021-09-17T09:41:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=6d8677a78ab4973ff498ec2fe8ea40a1cde230a1'/>
<id>urn:sha1:6d8677a78ab4973ff498ec2fe8ea40a1cde230a1</id>
<content type='text'>
DA146xx are Bluetooth devices that may be battery
powered and when not connected to USB host there
is no need for USB peripheral to be running.

This change allows to enable USB peripheral when
VBUS is present otherwise USB is down reducing
power consumption.

tud_vsub_changed() function must be called
whenever VBUS change was detected.
For bus-powered devices this function should be called
at startup since VBUS must be present while device
is working.
</content>
</entry>
</feed>
