From 8a4eb837ab74bbbfa2a51dd6d1e8c4a03c15505a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 2 May 2017 21:41:36 +0200 Subject: sercomm: Move HDLC related defines into C file Those values are not relevant to the sercomm user, only to the implementation and thus can remain inside sercomm.c Change-Id: I5700a45985b7c119c6338932171aae62ee4e2d22 --- include/osmocom/core/sercomm.h | 7 ------- src/sercomm.c | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/osmocom/core/sercomm.h b/include/osmocom/core/sercomm.h index 3d986c60..05833907 100644 --- a/include/osmocom/core/sercomm.h +++ b/include/osmocom/core/sercomm.h @@ -3,13 +3,6 @@ #include -#define HDLC_FLAG 0x7E -#define HDLC_ESCAPE 0x7D - -#define HDLC_C_UI 0x03 -#define HDLC_C_P_BIT (1 << 4) -#define HDLC_C_F_BIT (1 << 4) - /* a low sercomm_dlci means high priority. A high DLCI means low priority */ enum sercomm_dlci { SC_DLCI_HIGHEST = 0, diff --git a/src/sercomm.c b/src/sercomm.c index dbe3d057..75e79684 100644 --- a/src/sercomm.c +++ b/src/sercomm.c @@ -58,6 +58,13 @@ static inline void sercomm_unlock(unsigned long *flags) #endif +#define HDLC_FLAG 0x7E +#define HDLC_ESCAPE 0x7D + +#define HDLC_C_UI 0x03 +#define HDLC_C_P_BIT (1 << 4) +#define HDLC_C_F_BIT (1 << 4) + enum rx_state { RX_ST_WAIT_START, RX_ST_ADDR, -- cgit v1.2.3