summaryrefslogtreecommitdiffstats
path: root/src/sercomm.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-14 21:48:41 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-17 15:15:09 +0100
commit7af6d22a4e15ea7dde5869ca6784e06dbff87a28 (patch)
tree1fda03041229fd3e73dc05b59e12e39086187fa3 /src/sercomm.c
parentfe71ee9d993af078aac0596ee081f04ca9145e7e (diff)
sercomm: Include in libosmocore Makefile
Change-Id: If9d50d634381f43b2c67b97fea36a462a66e4559
Diffstat (limited to 'src/sercomm.c')
-rw-r--r--src/sercomm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sercomm.c b/src/sercomm.c
index ff6a5a36..f3241c4e 100644
--- a/src/sercomm.c
+++ b/src/sercomm.c
@@ -29,7 +29,7 @@
#include <osmocom/core/sercomm.h>
#include <osmocom/core/linuxlist.h>
-#ifdef HOST_BUILD
+#ifndef EMBEDDED
# define DEFAULT_RX_MSG_SIZE 2048
static inline void sercomm_drv_lock(unsigned long __attribute__((unused)) *flags) {}
@@ -107,7 +107,7 @@ void osmo_sercomm_sendmsg(struct osmo_sercomm_inst *sercomm, uint8_t dlci, struc
msgb_enqueue(&sercomm->tx.dlci_queues[dlci], msg);
sercomm_drv_unlock(&flags);
-#ifndef HOST_BUILD
+#ifdef EMBEDDED
/* tell UART that we have something to send */
uart_irq_enable(sercomm->uart_id, UART_IRQ_TX_EMPTY, 1);
#endif
@@ -126,7 +126,7 @@ unsigned int osmo_sercomm_tx_queue_depth(struct osmo_sercomm_inst *sercomm, uint
return num;
}
-#ifndef HOST_BUILD
+#ifdef EMBEDDED
/* wait until everything has been transmitted, then grab the lock and
* change the baud rate as requested */
void osmo_sercomm_change_speed(struct osmo_sercomm_inst *sercomm, enum uart_baudrate bdrt)