summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-05-05 18:45:27 +0200
committerNao Pross <naopross@thearcway.org>2018-05-05 18:45:27 +0200
commit8668d0b74f541843704d87b7ba76bfed2ff95ddb (patch)
tree103d4f97b138365c20beb6568b274d10e38e2eab
parentAdd gpio::is_set() to read from _latch register, update command parsing (diff)
downloadSAMLiquidSmoke-8668d0b74f541843704d87b7ba76bfed2ff95ddb.tar.gz
SAMLiquidSmoke-8668d0b74f541843704d87b7ba76bfed2ff95ddb.zip
Fix comments
-rw-r--r--hal/uart.hpp4
-rw-r--r--main.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/hal/uart.hpp b/hal/uart.hpp
index 65062f6..c3807c2 100644
--- a/hal/uart.hpp
+++ b/hal/uart.hpp
@@ -51,7 +51,7 @@ namespace uart
std::queue<uint8_t> _rx_buffer[devices_count];
std::queue<uint8_t> _tx_buffer[devices_count];
- // the following functions have been inlined
+ // the following commented functions have been inlined
// template<unsigned dev>
// std::queue<uint8_t>& rx_buffer();
@@ -67,7 +67,7 @@ namespace uart
void set_baudrate(long baud);
#endif
- // the following functions have been inlined
+ // the following commented functions have been inlined
// template<unsigned dev>
// void echo(bool enabled);
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;