aboutsummaryrefslogtreecommitdiff
path: root/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'i2c.h')
-rw-r--r--i2c.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/i2c.h b/i2c.h
index 1090ee2..fb481e3 100644
--- a/i2c.h
+++ b/i2c.h
@@ -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>