diff options
Diffstat (limited to 'Support_Libs/debug/debug.hcc')
-rw-r--r-- | Support_Libs/debug/debug.hcc | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/Support_Libs/debug/debug.hcc b/Support_Libs/debug/debug.hcc index 2cc6bef..303adde 100644 --- a/Support_Libs/debug/debug.hcc +++ b/Support_Libs/debug/debug.hcc @@ -19,15 +19,20 @@ void print_hex_value(unsigned value) ch += (ch > 9) ? 0x37 : 0x30;
PalDataPortWrite(PalRS232PortCT(0), ch);
}
-
- PalDataPortWrite(PalRS232PortCT(0), 0x0A);
- PalDataPortWrite(PalRS232PortCT(0), 0x0D);
}
-void print_string(unsigned 8 s[16]) {
+void print_string(unsigned char *s) {
unsigned 4 i;
-
- for(i = 0;('\0' != s[i]) || (0 < i);i++) {
- PalDataPortWrite(PalRS232PortCT(0), s[i] +0x30);
- }
+ i = 0;
+ for(i = 0;'\0' != s[i];i++)
+ {
+ PalDataPortWrite(PalRS232PortCT(0), s[i]);
+ }
+
}
+
+void print_eol(void)
+{
+ PalDataPortWrite(PalRS232PortCT(0), 0x0A);
+ PalDataPortWrite(PalRS232PortCT(0), 0x0D);
+}
\ No newline at end of file |