You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
380 B
19 lines
380 B
|
15 years ago
|
#ifndef __DEBUG_H
|
||
|
|
#define __DEBUG_H
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
#define DEBUGCHARS 100
|
||
|
|
extern char debugStr[];
|
||
|
|
extern volatile uint8_t dbgStrFill; // amount of available chars in debugStr
|
||
|
|
extern volatile uint8_t dbgHasNewSPI;
|
||
|
|
extern volatile char dbgCurChar;
|
||
|
|
|
||
|
|
|
||
|
|
void dbgLog(const char* fmt, ...);
|
||
|
|
uint8_t dbgHasNew();
|
||
|
|
char dbgReadChar();
|
||
|
|
void dbgAdvanceChar();
|
||
|
|
#endif
|