dioannidis / usbasp

usbasp improved firmware
GNU General Public License v2.0
75 stars 12 forks source link

uart activation / deactivation #5

Closed dioannidis closed 2 years ago

dioannidis commented 2 years ago

Implement activation / deactivation for the uart communication using hid feature report.

dioannidis commented 2 years ago

Added an 8 byte feature report which is used like this :

The first 2 bytes are the uint16 prescaler for the uart ( lowbyte first highbyte second ). The 3rd byte is a bitfield bitmasked for parity, stop bit and data bit. The 4th byte is reserved.

The remaining 4 bytes is the capabilities of the device identical with the USBASP_FUNC_GETCAPABILITIES.

When you send a set_feature_report request we write only the first 4 bytes. The capabilities 4 bytes are preserved.