Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef DBGU_H
- #define DBGU_H
- #include <stdbool.h>
- #define PROCESSOR_CLOCK 100000000 // 100MHz
- #define BUFFERSIZE 0xF
- #define RETURN 13
- typedef struct FIFO {
- char buffer[BUFFERSIZE + 1];
- unsigned int head;
- unsigned int tail;
- } Fifo;
- int DBGU_init(void);
- int dbgu_print_ascii();
- int dbgu_read_ascii();
- void dbgu_print_warning();
- void newLine();
- void FIFO_Init (Fifo *);
- bool is_FIFO_full(Fifo *);
- int FIFO_Put (Fifo *, char);
- int FIFO_Get (Fifo *, char *);
- void echo(char *);
- void charToUpper(char *);
- void charToLower(char *);
- #endif
Add Comment
Please, Sign In to add comment