aboutsummaryrefslogtreecommitdiff
path: root/include/io.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-11-16 15:22:24 -0700
committerJosh Rahm <joshuarahm@gmail.com>2024-11-16 15:22:24 -0700
commit7d64711cf7cbdf81d5a692044161ddc69e3dc33f (patch)
treefce2a6e12d8d648dda5cf4f4b55d5d5dc0cf72a0 /include/io.h
parent4c0d75cccc41335bcc39677d39d6761b77024dc6 (diff)
downloadch573-7d64711cf7cbdf81d5a692044161ddc69e3dc33f.tar.gz
ch573-7d64711cf7cbdf81d5a692044161ddc69e3dc33f.tar.bz2
ch573-7d64711cf7cbdf81d5a692044161ddc69e3dc33f.zip
Cleanup and get the program to a basic Hello, World program.
Add separate source file for initializing the uart for stdout.
Diffstat (limited to 'include/io.h')
-rw-r--r--include/io.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/io.h b/include/io.h
new file mode 100644
index 0000000..d4eb5b5
--- /dev/null
+++ b/include/io.h
@@ -0,0 +1,8 @@
+#pragma once
+
+#ifndef BAUD_RATE
+#define BAUD_RATE 115200
+#endif
+
+/** Initializes uart1 for use as stdout. */
+void init_uart1_for_stdout(void);