added a kb protocol document

This commit is contained in:
dekunukem
2021-11-18 11:01:43 +00:00
parent 8b100d988e
commit 12c787022f
3 changed files with 5 additions and 3 deletions

View File

@@ -91,7 +91,7 @@
<WindowPosition>
<length>44</length>
<flags>2</flags>
<showCmd>3</showCmd>
<showCmd>2</showCmd>
<MinPosition>
<xPos>-32000</xPos>
<yPos>-32000</yPos>
@@ -111,7 +111,7 @@
<RegID>0</RegID>
<MDITabState>
<Len>494</Len>
<Data>01000000040000000100000001000000010000000100000000000000020000000000000001000000010000000000000028000000280000000100000003000000010000000100000041433A5C55736572735C616C6C656E5C4465736B746F705C7265706F735C757362327073325C6669726D776172655C6164625F663034325C5372635C6D61696E2E6300000000066D61696E2E6300000000C5D4F200FFFFFFFF40433A5C55736572735C616C6C656E5C4465736B746F705C7265706F735C757362327073325C6669726D776172655C6164625F663034325C5372635C6164622E6300000000056164622E6300000000FFDC7800FFFFFFFF6C433A5C55736572735C616C6C656E5C4465736B746F705C7265706F735C757362327073325C6669726D776172655C6164625F663034325C447269766572735C53544D3332463078785F48414C5F4472697665725C496E635C73746D3332663078785F68616C5F6770696F2E68000000001473746D3332663078785F68616C5F6770696F2E6800000000BECEA100FFFFFFFF0100000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD500010000000000000002000000F4000000660000008007000026030000</Data>
<Data>01000000040000000100000001000000010000000100000000000000020000000000000001000000010000000000000028000000280000000100000003000000010000000100000041433A5C55736572735C616C6C656E5C4465736B746F705C7265706F735C757362327073325C6669726D776172655C6164625F663034325C5372635C6D61696E2E6300000000066D61696E2E6300000000C5D4F200FFFFFFFF40433A5C55736572735C616C6C656E5C4465736B746F705C7265706F735C757362327073325C6669726D776172655C6164625F663034325C5372635C6164622E6300000000056164622E6300000000FFDC7800FFFFFFFF6C433A5C55736572735C616C6C656E5C4465736B746F705C7265706F735C757362327073325C6669726D776172655C6164625F663034325C447269766572735C53544D3332463078785F48414C5F4472697665725C496E635C73746D3332663078785F68616C5F6770696F2E68000000001473746D3332663078785F68616C5F6770696F2E6800000000BECEA100FFFFFFFF0100000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD500010000000000000002000000F483FFFF4F83FFFF808AFFFF0F86FFFF</Data>
</MDITabState>
</MDIClientArea>
<ViewEx>

View File

@@ -213,7 +213,8 @@ uint8_t adb_write_byte(uint8_t data)
ADB_DATA_LOW();
delay_us(35);
ADB_DATA_HI();
if(ADB_READ_DATA_PIN() != GPIO_PIN_SET)
// if the line doesnt actually go high, then there has been a bus collision
if(ADB_READ_DATA_PIN() != GPIO_PIN_SET)
return ADB_LINE_STATUS_COLLISION;
delay_us(65);
}
@@ -244,6 +245,7 @@ void write_test(void)
;
}
// to be called right after a LISTEN command from host
uint8_t adb_send_response_16b(uint16_t data)
{
delay_us(170); // stop-to-start time

View File

Binary file not shown.