Skip to content
Snippets Groups Projects
Commit a65262c8 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

P-code BINFMT: Add logic to pass information from the binfmt logic to the...

P-code BINFMT:  Add logic to pass information from the binfmt logic to the P-code interpreter.  This includes some extension to the binfmt interfaces.
parent f37d1c2a
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
#include "i2ctool.h" #include "i2ctool.h"
/**************************************************************************** /****************************************************************************
* Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
...@@ -108,6 +108,7 @@ int i2ccmd_get(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) ...@@ -108,6 +108,7 @@ int i2ccmd_get(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
{ {
return ERROR; return ERROR;
} }
argndx += nargs; argndx += nargs;
} }
...@@ -217,6 +218,7 @@ int i2ctool_get(FAR struct i2ctool_s *i2ctool, FAR struct i2c_dev_s *dev, ...@@ -217,6 +218,7 @@ int i2ctool_get(FAR struct i2ctool_s *i2ctool, FAR struct i2c_dev_s *dev,
msg[1].addr = i2ctool->addr; msg[1].addr = i2ctool->addr;
msg[1].flags = I2C_M_READ; msg[1].flags = I2C_M_READ;
if (i2ctool->width == 8) if (i2ctool->width == 8)
{ {
msg[1].buffer = &u.data8; msg[1].buffer = &u.data8;
...@@ -254,5 +256,6 @@ int i2ctool_get(FAR struct i2ctool_s *i2ctool, FAR struct i2c_dev_s *dev, ...@@ -254,5 +256,6 @@ int i2ctool_get(FAR struct i2ctool_s *i2ctool, FAR struct i2c_dev_s *dev,
*result = u.data16; *result = u.data16;
} }
} }
return ret; return ret;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment