aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/hal_uart.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-30 12:43:41 -0700
committerJosh Blum <josh@joshknows.com>2010-07-30 12:43:41 -0700
commit4240d5a2a1b705fe8ed5c3a1d1deef24be00d444 (patch)
tree6c292d10784049bd5f4e92e69de00f227b279cb1 /firmware/microblaze/lib/hal_uart.h
parent5dca9e6315c5f827d97351316e5bdd3a786dc4f1 (diff)
downloaduhd-4240d5a2a1b705fe8ed5c3a1d1deef24be00d444.tar.gz
uhd-4240d5a2a1b705fe8ed5c3a1d1deef24be00d444.tar.bz2
uhd-4240d5a2a1b705fe8ed5c3a1d1deef24be00d444.zip
usrp2: reorganized firmware directory
Diffstat (limited to 'firmware/microblaze/lib/hal_uart.h')
-rw-r--r--firmware/microblaze/lib/hal_uart.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/microblaze/lib/hal_uart.h b/firmware/microblaze/lib/hal_uart.h
index 2ddfa6259..dfd73c323 100644
--- a/firmware/microblaze/lib/hal_uart.h
+++ b/firmware/microblaze/lib/hal_uart.h
@@ -19,6 +19,16 @@
#ifndef INCLUDED_HAL_UART_H
#define INCLUDED_HAL_UART_H
+/*!
+ * \brief uart mode flags
+ */
+#define UART_MODE_RAW 0x0000 // no mapping on input or output
+#define UART_MODE_ONLCR 0x0001 // map \n to \r\n on output (default)
+
+/*
+ * \brief Set uart mode
+ */
+void hal_uart_set_mode(int flags);
/*!
* \brief one-time call to init