diff options
Diffstat (limited to 'i2c.h')
-rw-r--r-- | i2c.h | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1,17 +1,17 @@ #ifndef TW_H #define TW_H -typedef enum { - TWM_INVALID = 0, - TWM_WRITE, - TWM_READ, -} twMode; - -typedef enum { - TWST_WAIT = 0, - TWST_OK = 1, - TWST_ERR = 2, -} twStatus; +#include <stdint.h> + +typedef uint8_t twMode; +#define TWM_INVALID 0 +#define TWM_WRITE 1 +#define TWM_READ 2 + +typedef uint8_t twStatus; +#define TWST_WAIT 0 +#define TWST_OK 1 +#define TWST_ERR 2 #include <stdint.h> |