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
@@ -279,7 +279,7 @@ static void UI2C_deInit(Unit *unit)
// ------------------------------------------------------------------------
enum PinCmd_ {
CMD_QUERY = 0,
CMD_TEST = 0,
CMD_READ = 1,
CMD_WRITE_REG = 2,
CMD_READ_REG = 3,
@@ -410,7 +410,7 @@ static error_t UI2C_handleRequest(Unit *unit, TF_ID frame_id, uint8_t command, P
switch (command) {
/** Write byte(s) - addr:u16, byte(s) */
case CMD_QUERY:
case CMD_TEST:
addr = pp_u16(pp);
const uint8_t *bb = pp_tail(pp, &len);