add 'struct timer_list' timer code similar to linux + OpenBSC
[osmocom-bb.git] / src / target / firmware / apps / layer1 / main.c
index 6247543..d1dae5b 100644 (file)
@@ -35,6 +35,7 @@
 #include <rf/trf6151.h>
 
 #include <comm/sercomm.h>
+#include <comm/timer.h>
 
 #include <calypso/clock.h>
 #include <calypso/tpu.h>
@@ -103,7 +104,9 @@ int main(void)
 
        tpu_frame_irq_en(1, 1);
 
-       while (1) {}
+       while (1) {
+               update_timers();
+       }
 
        /* NOT REACHED */