diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 23:32:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 23:32:23 +0000 |
commit | d7d4a0d765d12cc152c62a37b490702c39d76447 (patch) | |
tree | d3969c50e49cd742124e05349431556344a93f54 /nuttx/include/nuttx/i2c.h | |
parent | 313eb5bb780f9e9baa353651996b51ce33a85fca (diff) | |
download | nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.tar.gz nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.tar.bz2 nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.zip |
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2340 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/i2c.h')
-rw-r--r-- | nuttx/include/nuttx/i2c.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/include/nuttx/i2c.h b/nuttx/include/nuttx/i2c.h index e44684cbd..8ebf65aa1 100644 --- a/nuttx/include/nuttx/i2c.h +++ b/nuttx/include/nuttx/i2c.h @@ -41,10 +41,11 @@ ****************************************************************************/ #include <nuttx/config.h> -#include <sys/types.h> + +#include <stdint.h> /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /* I2C address calculation. Convert 7- and 10-bit address to 8-bit and @@ -160,10 +161,10 @@ struct i2c_dev_s; struct i2c_ops_s { - uint32 (*setfrequency)(FAR struct i2c_dev_s *dev, uint32 frequency); + uint32_t (*setfrequency)(FAR struct i2c_dev_s *dev, uint32_t frequency); int (*setaddress)(FAR struct i2c_dev_s *dev, int addr, int nbits); - int (*write)(FAR struct i2c_dev_s *dev, const ubyte *buffer, int buflen); - int (*read)(FAR struct i2c_dev_s *dev, ubyte *buffer, int buflen); + int (*write)(FAR struct i2c_dev_s *dev, const uint8_t *buffer, int buflen); + int (*read)(FAR struct i2c_dev_s *dev, uint8_t *buffer, int buflen); }; /* I2C private data. This structure only defines the initial fields of the |