aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/hal_uart.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-04 11:11:06 -0700
committerJosh Blum <josh@joshknows.com>2010-08-04 11:11:06 -0700
commitfe622fb28654e6a578395d7b688e7c1958d373be (patch)
treec4cad6eb4c77895ddbc7bf8b297f4c115e6c52f7 /firmware/microblaze/lib/hal_uart.h
parentee32fa2290f8b6abe83f1b8b33aff922f9d1e24c (diff)
parent4240d5a2a1b705fe8ed5c3a1d1deef24be00d444 (diff)
downloaduhd-fe622fb28654e6a578395d7b688e7c1958d373be.tar.gz
uhd-fe622fb28654e6a578395d7b688e7c1958d373be.tar.bz2
uhd-fe622fb28654e6a578395d7b688e7c1958d373be.zip
Merge branch 'fw_reorg'
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