summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/comm/Makefile
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-07 01:29:47 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-07 01:29:47 +0100
commitf216bb3024f1b557d73af459c999f53feb483baf (patch)
tree12930f6696a7db5051bf1ee1b26d8f8c51bc1048 /src/target/firmware/comm/Makefile
parentba82248d3398b0034102e58c2d22b12f2b4569d0 (diff)
add 'struct timer_list' timer code similar to linux + OpenBSC
We now support arbitrary timers by means of 'struct timer_list'. Any part of the program can register such a callback by means of schedule_timer() on a millisecond-granularity. However, there is no guarantee on the timer precision. It will not execute before the timer expires - but it might expire quite a bit later than we have asked it for, depending on how busy the cpu is with other work. The timer code is in the 'comm/' directory, as it is intended to be migrated into libosmocore soon. Furthermore, as we currently don't yet have a scheduler or tasks, the main() routine explicitly has to call update_timers() to check for any expired timers and run them.
Diffstat (limited to 'src/target/firmware/comm/Makefile')
-rw-r--r--src/target/firmware/comm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/comm/Makefile b/src/target/firmware/comm/Makefile
index c2c6fcf0..c6661e48 100644
--- a/src/target/firmware/comm/Makefile
+++ b/src/target/firmware/comm/Makefile
@@ -2,7 +2,7 @@ INCLUDES=-I../include/
-include ../Makefile.inc
LIBNAME=comm
-CSRCS=msgb.c sercomm.c sercomm_cons.c
+CSRCS=msgb.c sercomm.c sercomm_cons.c timer.c
SSRCS=
COBJS=$(CSRCS:.c=.o)