summaryrefslogtreecommitdiffstats
path: root/src/target/firmware
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-07 13:27:06 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-07 13:27:25 +0100
commit279cc2e3d8e51ed257842f331e3f91d38648f8e6 (patch)
tree0f630ffb557a545f72033a223399a252eac0c63d /src/target/firmware
parentd03f0a4ca55b85adb8959cabea1dac81654ee257 (diff)
fix compiler warnings
Diffstat (limited to 'src/target/firmware')
-rw-r--r--src/target/firmware/apps/hello_world/main.c4
-rw-r--r--src/target/firmware/include/layer1/async.h2
-rw-r--r--src/target/firmware/include/layer1/mframe_sched.h4
-rw-r--r--src/target/firmware/layer1/sync.c1
4 files changed, 9 insertions, 2 deletions
diff --git a/src/target/firmware/apps/hello_world/main.c b/src/target/firmware/apps/hello_world/main.c
index b6f22fc4..e74fcbc1 100644
--- a/src/target/firmware/apps/hello_world/main.c
+++ b/src/target/firmware/apps/hello_world/main.c
@@ -61,7 +61,7 @@ const char *hr = "==============================================================
void key_handler(enum key_codes code, enum key_states state);
-static void *console_rx_cb(uint8_t dlci, struct msgb *msg)
+static void console_rx_cb(uint8_t dlci, struct msgb *msg)
{
if (dlci != SC_DLCI_CONSOLE) {
printf("Message for unknown DLCI %u\n", dlci);
@@ -69,7 +69,7 @@ static void *console_rx_cb(uint8_t dlci, struct msgb *msg)
}
printf("Message on console DLCI: '%s'\n", msg->data);
- st7558_puts(msg->data);
+ st7558_puts((char *) msg->data);
msgb_free(msg);
}
diff --git a/src/target/firmware/include/layer1/async.h b/src/target/firmware/include/layer1/async.h
index de9897ab..9e057c3c 100644
--- a/src/target/firmware/include/layer1/async.h
+++ b/src/target/firmware/include/layer1/async.h
@@ -1,6 +1,8 @@
#ifndef _L1_ASYNC_H
#define _L1_ASYNC_H
+#include <layer1/mframe_sched.h>
+
/* safely enable a message into the L1S TX queue */
void l1a_txq_msgb_enq(struct llist_head *queue, struct msgb *msg);
diff --git a/src/target/firmware/include/layer1/mframe_sched.h b/src/target/firmware/include/layer1/mframe_sched.h
index bd752543..87f31a9e 100644
--- a/src/target/firmware/include/layer1/mframe_sched.h
+++ b/src/target/firmware/include/layer1/mframe_sched.h
@@ -1,3 +1,5 @@
+#ifndef _L1_MFRAME_SCHED_H
+#define _L1_MFRAME_SCHED_H
#include <stdint.h>
@@ -33,3 +35,5 @@ uint8_t mframe_task2chan_nr(enum mframe_task mft, uint8_t ts);
/* Schedule mframe_sched_items according to current MF TASK list */
void mframe_schedule(uint32_t task_bitmask);
+
+#endif /* _MFRAME_SCHED_H */
diff --git a/src/target/firmware/layer1/sync.c b/src/target/firmware/layer1/sync.c
index 4743f715..da444aa7 100644
--- a/src/target/firmware/layer1/sync.c
+++ b/src/target/firmware/layer1/sync.c
@@ -30,6 +30,7 @@
#include <defines.h>
#include <debug.h>
#include <memory.h>
+#include <gsm.h>
#include <calypso/dsp_api.h>
#include <calypso/irq.h>
#include <calypso/tpu.h>