P3IO and EXTIO drivers, ddrio-p3io implementation #255

Merged
icex2 merged 20 commits from p3iodrv into master 2023-06-25 14:24:08 +03:00
Showing only changes of commit 367c9ca0d3 - Show all commits
+4 -3
View File
@@ -136,7 +136,7 @@ static HRESULT p3io_handle_write(struct irp *irp)
struct iobuf desc;
HRESULT hr;
desc.bytes = req.raw;
desc.bytes = req.raw.data;
desc.nbytes = sizeof(req);
desc.pos = 0;
@@ -146,10 +146,11 @@ static HRESULT p3io_handle_write(struct irp *irp)
return hr;
}
switch (p3io_req_cmd(&req)) {
switch (req.hdr.cmd) {
case P3IO_CMD_RS232_OPEN_CLOSE:
EnterCriticalSection(&p3io_cmd_lock);
p3io_uart_cmd_open_close(&req.rs232_open_close, &resp.u8);
p3io_uart_cmd_open_close(
&req.rs232_open_close, &resp.rs232_open_close);
break;