diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-01-16 15:11:29 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-01-16 15:11:29 +0000 |
commit | d7b4645f5c7274660c9a020f172ac54f546686b5 (patch) | |
tree | dd4506aabd67d6e4abb4ec9eebc85219a34e66f2 /firmware/usb.c | |
parent | ed69390542e8d4a1d8b46853807db28db28e4b46 (diff) | |
download | rockbox-d7b4645f5c7274660c9a020f172ac54f546686b5.tar.gz rockbox-d7b4645f5c7274660c9a020f172ac54f546686b5.zip |
Ludovic Lange's initial code for FM Recorder, edited and adjusted by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3110 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 64474c7b66..fcc06c2f6e 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -218,8 +218,12 @@ static void usb_tick(void) | |||
218 | #ifdef ARCHOS_RECORDER | 218 | #ifdef ARCHOS_RECORDER |
219 | current_status = (adc_read(ADC_USB_POWER) > 500)?true:false; | 219 | current_status = (adc_read(ADC_USB_POWER) > 500)?true:false; |
220 | #else | 220 | #else |
221 | #ifdef ARCHOS_FMRECORDER | ||
222 | current_status = (adc_read(ADC_USB_POWER) < 512)?true:false; | ||
223 | #else | ||
221 | current_status = (PADR & 0x8000)?false:true; | 224 | current_status = (PADR & 0x8000)?false:true; |
222 | #endif | 225 | #endif |
226 | #endif | ||
223 | 227 | ||
224 | /* Only report when the status has changed */ | 228 | /* Only report when the status has changed */ |
225 | if(current_status != last_usb_status) | 229 | if(current_status != last_usb_status) |