diff --git a/include/utils.h b/include/utils.h new file mode 100644 index 0000000000000000000000000000000000000000..d3fd72084a1a36b97717f003826cc805daa17214 --- /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