From 547ddeae35d750686149707e9e2e2f0cd48c691f Mon Sep 17 00:00:00 2001
From: Bah Thierno-Souleymane <thiernosouleymane.bah.etu@univ-lille.fr>
Date: Tue, 20 Apr 2021 01:09:21 +0200
Subject: [PATCH] feat(main.c file functions reorganized, assert function also
 done)

---
 include/utils.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 include/utils.h

diff --git a/include/utils.h b/include/utils.h
new file mode 100644
index 0000000..d3fd720
--- /dev/null
+++ b/include/utils.h
@@ -0,0 +1,16 @@
+#if !defined(UTILS_H)
+#define UTILS_H
+
+#define NULL 0
+#define EXIT_SUCCESS 0
+#define assert(b) assert0((b), __FILE__, __FUNCTION__, __LINE__)
+
+void clear_screen();            /* clear screen */
+void putc(char aChar);          /* print a single char on screen */
+void puts(const char *aString); /* print a string on the screen */
+void puthex(int aNumber);       /* print an Hex number on screen */
+void assert0(char b, const char *filename, const char *fct_name, const int line);
+void irq_disable();
+void irq_enable();
+
+#endif // UTILS_H
-- 
GitLab