repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify expression
[mTask.git]
/
int
/
interface.c
diff --git
a/int/interface.c
b/int/interface.c
index
bec4f09
..
6809110
100644
(file)
--- a/
int/interface.c
+++ b/
int/interface.c
@@
-16,7
+16,7
@@
bool input_available(void)
uint8_t read_byte(void)
{
uint8_t read_byte(void)
{
- return sdGet(&SD3);
+ return
(uint8_t)
sdGet(&SD3);
}
void write_byte(uint8_t b)
}
void write_byte(uint8_t b)
@@
-75,14
+75,12
@@
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');
-#endif
+// unsigned int i;
+// write_byte((uint8_t)'m');
+// for(i = 0; i<strlen(fmt); i++){
+// write_byte((uint8_t)fmt[i]);
+// }
+// write_byte('\n');
(void)fmt;
}
(void)fmt;
}
@@
-93,5
+91,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;
}