summaryrefslogtreecommitdiff
path: root/firmware/drivers/fmradio.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/fmradio.c')
-rw-r--r--firmware/drivers/fmradio.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/firmware/drivers/fmradio.c b/firmware/drivers/fmradio.c
index 0d947f4480..14abb8e2b0 100644
--- a/firmware/drivers/fmradio.c
+++ b/firmware/drivers/fmradio.c
@@ -50,17 +50,7 @@
50/* delay loop */ 50/* delay loop */
51#define DELAY do { int _x; for(_x=0;_x<10;_x++);} while (0) 51#define DELAY do { int _x; for(_x=0;_x<10;_x++);} while (0)
52 52
53static struct mutex fmradio_mtx; 53static int fmstatus = 0;
54
55void fmradio_begin(void)
56{
57 mutex_lock(&fmradio_mtx);
58}
59
60void fmradio_end(void)
61{
62 mutex_unlock(&fmradio_mtx);
63}
64 54
65int fmradio_read(int addr) 55int fmradio_read(int addr)
66{ 56{
@@ -130,4 +120,14 @@ void fmradio_set(int addr, int data)
130 CE_LO; 120 CE_LO;
131} 121}
132 122
123void fmradio_set_status(int status)
124{
125 fmstatus = status;
126}
127
128int fmradio_get_status(void)
129{
130 return fmstatus;
131}
132
133#endif 133#endif