repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
not working again.
[mTask.git]
/
int
/
interface.c
diff --git
a/int/interface.c
b/int/interface.c
index
bec4f09
..
ba4446f
100644
(file)
--- a/
int/interface.c
+++ b/
int/interface.c
@@
-75,17
+75,23
@@
void setup(void)
void debug(char *fmt, ...)
{
void debug(char *fmt, ...)
{
-#ifdef DEBUG
unsigned int i;
write_byte('m');
for(i = 0; i<strlen(fmt); i++){
write_byte((uint8_t)fmt[i]);
}
write_byte('\n');
unsigned int i;
write_byte('m');
for(i = 0; i<strlen(fmt); i++){
write_byte((uint8_t)fmt[i]);
}
write_byte('\n');
+#ifdef DEBUG
#endif
(void)fmt;
}
#endif
(void)fmt;
}
+void debugi(int i)
+{
+ char m[10];
+ debug(itoa(i, m, 10));
+}
+
void pdie(char *s)
{
(void)s;
void pdie(char *s)
{
(void)s;
@@
-93,5
+99,11
@@
void pdie(char *s)
void die(char *fmt, ...)
{
void die(char *fmt, ...)
{
+ palWriteLine(LINE_LED1, PAL_HIGH);
+ palWriteLine(LINE_LED2, PAL_HIGH);
+ palWriteLine(LINE_LED3, PAL_HIGH);
+ while(1){
+ delay(100);
+ }
(void)fmt;
}
(void)fmt;
}