diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-09-28 14:34:18 +0200 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-09 12:14:35 +0200 |
commit | 1c64cf73cde5b15f02d5a4d7ba4e611ea4d05316 (patch) | |
tree | 1aec0716028a824fcc1e106917f86142eb950043 /broccoli/includes/types.h | |
parent | 209a57957267823302cd8aedf47de406edbc6488 (diff) | |
download | midbro-1c64cf73cde5b15f02d5a4d7ba4e611ea4d05316.tar.gz midbro-1c64cf73cde5b15f02d5a4d7ba4e611ea4d05316.tar.bz2 |
Move includes folder to broccoli
Diffstat (limited to 'broccoli/includes/types.h')
-rw-r--r-- | broccoli/includes/types.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/broccoli/includes/types.h b/broccoli/includes/types.h new file mode 100644 index 0000000..a8fa1cf --- /dev/null +++ b/broccoli/includes/types.h @@ -0,0 +1,29 @@ +#ifndef TYPES_H +#define TYPES_H + +#define true 1 +#define false 0 + +typedef int boolean; +typedef struct sensor_t Sensor_t; +typedef struct queue_t Queue_t; +typedef struct fifo_q Fifo_q; + +struct sensor_t{ + int uid; + int value; +}; + +struct queue_t{ + Sensor_t * sensor; + Queue_t * next; +}; + +struct fifo_q{ + Queue_t * head; + Queue_t * tail; + int maxSize; + int currentSize; +}; + +#endif |