chusan, cm, mai2, mu3: Added dipSw support and highBaudrate AiMe

This commit is contained in:
2023-08-15 17:28:19 +02:00
parent 3dc2ec6e69
commit 608c9ac1a6
14 changed files with 209 additions and 50 deletions

View File

@ -30,6 +30,7 @@ void aime_config_load(struct aime_config *cfg, const wchar_t *filename)
aime_dll_config_load(&cfg->dll, filename);
cfg->enable = GetPrivateProfileIntW(L"aime", L"enable", 1, filename);
cfg->high_baudrate = GetPrivateProfileIntW(L"aime", L"highbaud", 1, filename);
}
void io4_config_load(struct io4_config *cfg, const wchar_t *filename)

View File

@ -70,6 +70,10 @@ HRESULT sg_reader_hook_init(
InitializeCriticalSection(&sg_reader_lock);
if (!cfg->high_baudrate) {
sg_reader_uart.baud.BaudRate = 38400;
}
uart_init(&sg_reader_uart, port_no);
sg_reader_uart.written.bytes = sg_reader_written_bytes;
sg_reader_uart.written.nbytes = sizeof(sg_reader_written_bytes);

View File

@ -9,6 +9,7 @@
struct aime_config {
struct aime_dll_config dll;
bool enable;
bool high_baudrate;
};
HRESULT sg_reader_hook_init(