new firmware, fixed XT keyboard mapping and better serial mouse RTS handlign

This commit is contained in:
dekunukem
2022-06-23 11:31:54 +01:00
parent 66c4f0b4a4
commit 5ab8489e00
15 changed files with 1231 additions and 72 deletions

View File

@@ -69,7 +69,7 @@ UART_HandleTypeDef huart3;
const uint8_t board_id = 1;
const uint8_t version_major = 0;
const uint8_t version_minor = 5;
const uint8_t version_patch = 4;
const uint8_t version_patch = 5;
uint8_t hw_revision;
uint8_t spi_transmit_buf[SPI_BUF_SIZE];
@@ -467,6 +467,7 @@ void microsoft_serial_mouse_update(void)
{
serial_mouse_rts_response = 0x4d; // 0x4d = 'M'
HAL_UART_Transmit_IT(&huart3, &serial_mouse_rts_response, 1);
serial_mouse_is_tx_in_progress = 1;
rts_active = 0;
}

View File

@@ -143,13 +143,13 @@ uint8_t xtkb_press_key(uint8_t code, uint8_t status)
code = 72;
break;
case KEY_PAGEUP:
code = 74;
code = 73;
break;
case KEY_LEFT:
code = 75;
break;
case KEY_RIGHT:
code = 78;
code = 77;
break;
case KEY_END:
code = 79;