summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include
diff options
context:
space:
mode:
authorHarald Welte2010-04-07 04:16:06 +0200
committerHarald Welte2010-04-07 07:35:41 +0200
commit9319ac57a1dcd56c634de7c11fd9ff609c9148f7 (patch)
treecf589bf6598f1fc2114d88d70071c3b6fe328905 /src/target/firmware/include
parentlayer1: remove static global variable last_task_fnr (diff)
downloadosmocom-9319ac57a1dcd56c634de7c11fd9ff609c9148f7.tar.gz
osmocom-9319ac57a1dcd56c634de7c11fd9ff609c9148f7.tar.xz
osmocom-9319ac57a1dcd56c634de7c11fd9ff609c9148f7.zip
layer1: remove sb_cnt and sb_once static global variables
and instead move them into the l1s data structure
Diffstat (limited to 'src/target/firmware/include')
-rw-r--r--src/target/firmware/include/layer1/sync.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/firmware/include/layer1/sync.h b/src/target/firmware/include/layer1/sync.h
index 585f5c8..c117758 100644
--- a/src/target/firmware/include/layer1/sync.h
+++ b/src/target/firmware/include/layer1/sync.h
@@ -56,6 +56,12 @@ struct l1s_state {
struct {
uint8_t mode; /* FB_MODE 0/1 */
} fb;
+
+ struct {
+ unsigned int count;
+ unsigned int synced;
+ } sb;
+
struct {
/* power measurement l1 task */
unsigned int mode;