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