summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/rf
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-07 20:42:17 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-07 20:56:12 +0100
commit97c8b6f33b1a00ed1c138070ca14faaa6f71cfc6 (patch)
treeb8951a27ae92d4924e8cca7599eafb777143e2af /src/target/firmware/rf
parent5f3ead20158d059d022a11e121861e14bd0674df (diff)
start to use libosmocore within the firmware
* remove linuxlist.h copy and use osmocore * don't put 'struct gsm_time' into l1ctl packets * include rx_level and snr for each burst in l1ctl * properly build libosmocore.a for target * move gsmtime functions into libosmocore * move ctype.h to standard location
Diffstat (limited to 'src/target/firmware/rf')
-rw-r--r--src/target/firmware/rf/trf6151.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/target/firmware/rf/trf6151.c b/src/target/firmware/rf/trf6151.c
index 1db1c725..dfbad151 100644
--- a/src/target/firmware/rf/trf6151.c
+++ b/src/target/firmware/rf/trf6151.c
@@ -26,7 +26,7 @@
#include <debug.h>
#include <memory.h>
#include <keypad.h>
-#include <gsm.h>
+#include <osmocore/gsm_utils.h>
#include <calypso/tpu.h>
#include <calypso/tsp.h>
@@ -306,22 +306,22 @@ void trf6151_set_arfcn(uint16_t arfcn, int uplink)
uint32_t freq_khz;
switch (gsm_arfcn2band(arfcn)) {
- case GSM_850:
+ case GSM_BAND_850:
rf_band = GSM850_LOW; /* FIXME: what about HIGH */
break;
- case GSM_900:
+ case GSM_BAND_900:
rf_band = GSM900;
break;
- case GSM_1800:
+ case GSM_BAND_1800:
rf_band = GSM1800;
break;
- case GSM_1900:
+ case GSM_BAND_1900:
rf_band = GSM1900;
break;
- case GSM_450:
- case GSM_480:
- case GSM_750:
- case GSM_810:
+ case GSM_BAND_450:
+ case GSM_BAND_480:
+ case GSM_BAND_750:
+ case GSM_BAND_810:
printf("Unsupported rf_band.\n");
break;
}