aboutsummaryrefslogtreecommitdiff
path: root/cio.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2026-09-29 23:40:31 +0200
committerJavier <dev.git@javispedro.com>2026-09-29 23:40:31 +0200
commit0a656a4a84f920194958d339d61ed567eba9c03c (patch)
tree0feecbddf0150e02fe7a2fa619dc232c50ced4c8 /cio.h
downloadchu-0a656a4a84f920194958d339d61ed567eba9c03c.tar.gz
chu-0a656a4a84f920194958d339d61ed567eba9c03c.zip
initial import
Diffstat (limited to 'cio.h')
-rw-r--r--cio.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/cio.h b/cio.h
new file mode 100644
index 0000000..24a67ae
--- /dev/null
+++ b/cio.h
@@ -0,0 +1,31 @@
+/*
+ * CHU - driver for CH375 in disk mode
+ * Copyright (C) 2024 Javier S. Pedro
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef CIO_H
+#define CIO_H
+
+void c_utoa(unsigned num, unsigned base);
+void c_itoa(int num, unsigned base);
+unsigned c_strtou(const char * *str);
+
+void c_printf(const char *fmt, ...);
+void c_putc(char c);
+void c_puts(const char *s);
+
+#endif // CIO_H