diff options
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r-- | apps/recorder/radio.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 0459ff3d74..ab0c1eb004 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -74,6 +74,18 @@ void radio_stop(void) | |||
74 | 74 | ||
75 | } | 75 | } |
76 | 76 | ||
77 | bool radio_hardware_present(void) | ||
78 | { | ||
79 | int val; | ||
80 | |||
81 | fmradio_set(2, 0x140885); /* 5kHz, 7.2MHz crystal, test mode 1 */ | ||
82 | val = fmradio_read(0); | ||
83 | if(val == 0x140885) | ||
84 | return true; | ||
85 | else | ||
86 | return false; | ||
87 | } | ||
88 | |||
77 | void radio_set_frequency(int freq) | 89 | void radio_set_frequency(int freq) |
78 | { | 90 | { |
79 | /* We add the standard Intermediate Frequency 10.7MHz before calculating | 91 | /* We add the standard Intermediate Frequency 10.7MHz before calculating |