repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
separate in directories
[mTask.git]
/
client
/
stm32
/
interface.c
diff --git
a/client/interface.c
b/client/stm32/interface.c
similarity index 97%
rename from
client/interface.c
rename to
client/stm32/interface.c
index
432671c
..
4caf47e
100644
(file)
--- a/
client/interface.c
+++ b/
client/stm32/interface.c
@@
-77,11
+77,11
@@
void led_off(uint8_t i)
}
}
}
}
-long millis(void){
+long
get
millis(void){
return ST2MS(chVTGetSystemTime());
}
return ST2MS(chVTGetSystemTime());
}
-void delay(long ms)
+void
ms
delay(long ms)
{
chThdSleepMilliseconds(ms);
}
{
chThdSleepMilliseconds(ms);
}
@@
-117,7
+117,7
@@
void die(char *fmt, ...)
palWriteLine(LINE_LED2, PAL_HIGH);
palWriteLine(LINE_LED3, PAL_HIGH);
while(1){
palWriteLine(LINE_LED2, PAL_HIGH);
palWriteLine(LINE_LED3, PAL_HIGH);
while(1){
- delay(100);
+
ms
delay(100);
}
(void)fmt;
}
}
(void)fmt;
}