diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-09-28 14:34:18 +0200 |
---|---|---|
committer | Robert Gustafsson <robg@student.chalmers.se> | 2017-09-28 14:34:53 +0200 |
commit | a333c2c239a964ba2f898d23528186af1c5a1608 (patch) | |
tree | 08b6abc07fb4388696448dcb6852c6af038b7fff /includes | |
parent | 733ad771621e6a43866e9686481609ed9ce6f860 (diff) | |
download | midbro-a333c2c239a964ba2f898d23528186af1c5a1608.tar.gz midbro-a333c2c239a964ba2f898d23528186af1c5a1608.tar.bz2 |
Move includes folder to broccoli
Diffstat (limited to 'includes')
-rw-r--r-- | includes/fifoqueue.h | 15 | ||||
-rw-r--r-- | includes/types.h | 29 |
2 files changed, 0 insertions, 44 deletions
diff --git a/includes/fifoqueue.h b/includes/fifoqueue.h deleted file mode 100644 index 9ee5c53..0000000 --- a/includes/fifoqueue.h +++ /dev/null @@ -1,15 +0,0 @@ -#include <stdlib.h> -#include <stdio.h> -#include "types.h" - -Fifo_q * init_queue(int size); - -boolean is_full(Fifo_q * q); - -boolean is_empty(Fifo_q * q); - -int add_to_queue(Fifo_q * q, Sensor_t * sensor); - -Sensor_t * pop_from_queue(Fifo_q * q); - -void print_queue(Fifo_q * q); diff --git a/includes/types.h b/includes/types.h deleted file mode 100644 index a8fa1cf..0000000 --- a/includes/types.h +++ /dev/null @@ -1,29 +0,0 @@ -#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 |