summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 46e5342..c48fcae 100644
--- a/main.cpp
+++ b/main.cpp
@@ -113,6 +113,7 @@ int main(int argc, char** argv)
}
#endif
+ // parse command
if (command.size() == 1) {
if (command[0] == "help") {
uart::print<1>("List of available commands:");
@@ -141,6 +142,7 @@ int main(int argc, char** argv)
if (command[0] == "set") {
if (command[1] == "baudrate") {
if (command[2] == "9600") {
+ // TODO: replace with uart::set_baudrate<dev>(baud);
U1BRG = 0x19;
} else if (command[2] == "4800") {
U1BRG = 0x33;