mirror of https://gerrit.osmocom.org/libosmocore
sercomm: include header file from osmocom/core
Change-Id: Iff5ff3a51d7781bcfb3aff0839b733bc7a71b7e5
This commit is contained in:
parent
f6adcd7dd6
commit
1a97e2c962
|
@ -25,6 +25,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <osmocom/core/msgb.h>
|
#include <osmocom/core/msgb.h>
|
||||||
|
#include <osmocom/core/sercomm.h>
|
||||||
|
|
||||||
#ifdef HOST_BUILD
|
#ifdef HOST_BUILD
|
||||||
|
|
||||||
|
@ -32,7 +33,6 @@
|
||||||
# ifndef ARRAY_SIZE
|
# ifndef ARRAY_SIZE
|
||||||
# define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
|
# define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
|
||||||
# endif
|
# endif
|
||||||
# include <sercomm.h>
|
|
||||||
|
|
||||||
static inline void sercomm_lock(unsigned long __attribute__((unused)) *flags) {}
|
static inline void sercomm_lock(unsigned long __attribute__((unused)) *flags) {}
|
||||||
static inline void sercomm_unlock(unsigned long __attribute__((unused)) *flags) {}
|
static inline void sercomm_unlock(unsigned long __attribute__((unused)) *flags) {}
|
||||||
|
@ -54,7 +54,6 @@ static inline void sercomm_unlock(unsigned long *flags)
|
||||||
local_irq_restore(*flags);
|
local_irq_restore(*flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
# include <comm/sercomm.h>
|
|
||||||
# include <uart.h>
|
# include <uart.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue