base of 1wire, need to make async

This commit is contained in:
2018-01-29 08:40:41 +01:00
parent a63f040271
commit 18e76ad060
9 changed files with 435 additions and 8 deletions
+2 -2
View File
@@ -451,7 +451,7 @@ error_t UU_SPI_Write(Unit *unit, uint8_t slave_num,
enum PinCmd_ {
CMD_QUERY = 0,
CMD_TEST = 0,
CMD_MULTICAST = 1,
};
@@ -469,7 +469,7 @@ static error_t USPI_handleRequest(Unit *unit, TF_ID frame_id, uint8_t command, P
switch (command) {
/** Write and read byte(s) - slave_num:u8, req_len:u16, resp_skip:u16, resp_len:u16, byte(s) */
case CMD_QUERY:
case CMD_TEST:
slave = pp_u8(pp);
resp_skip = pp_u16(pp);
resp_len = pp_u16(pp);