summaryrefslogtreecommitdiff
path: root/firmware/drivers/adc.c (follow)
Commit message (Collapse)AuthorAge
* Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.Jens Arnold2006-11-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11504 a1c6a512-1295-4272-9138-f99709370657
* Target tree support for Iriver iFP.Tomasz Malesinski2006-11-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11485 a1c6a512-1295-4272-9138-f99709370657
* move the iriver h1x0/h3x0 targets to the target treeJonathan Gordon2006-10-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11392 a1c6a512-1295-4272-9138-f99709370657
* H300: Slight simplification of adc_scan(), ported from X5.Jens Arnold2006-10-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11384 a1c6a512-1295-4272-9138-f99709370657
* Move all iPod targets into the target tree. FS#5890Barry Wardell2006-10-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11129 a1c6a512-1295-4272-9138-f99709370657
* Added remote backlight on hold option to players with remote hold switch. ↵Michael Sevakis2006-09-10
| | | | | | Disabled IRQs while reading pcf50606 ADC. This seems to have stopped buttons becoming unresponsive when using remote. Maybe fixes other button glitches as well? git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10911 a1c6a512-1295-4272-9138-f99709370657
* Move X5 ADC code to target tree. Fix power button detection on H10. New ADCBarry Wardell2006-08-22
| | | | | | | driver for H10. Thanks to Laurent Baum for all his help with this code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10701 a1c6a512-1295-4272-9138-f99709370657
* Replaced remaining '#pragma interrupt' with ↵Jens Arnold2006-04-26
| | | | | | __attribute__((interrupt_handler)). It's cleaner this way, and fixes sh-elf-gcc 3.4.x builds with -Os or -O2. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9816 a1c6a512-1295-4272-9138-f99709370657
* Fix ipod 3g build that was broken (by me perhaps?)Brandon Low2006-03-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9200 a1c6a512-1295-4272-9138-f99709370657
* Improve ipod i2c driver somewhat by at least taking advantage of the ↵Brandon Low2006-03-09
| | | | | | in-device addressing in the pcf50605, also switch to a 10bit resistive divider for the ipod battery reading, this is easily configurable if it needs changing, or even to become a user/runtime setting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8980 a1c6a512-1295-4272-9138-f99709370657
* Use an 8 bit ADC read for battery reading on ipod, that provides better than ↵Brandon Low2006-03-09
| | | | | | centivolt precision any way, also enable charging, it seems to detect fine when charging by USB git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8966 a1c6a512-1295-4272-9138-f99709370657
* Make the ipod ADC driver more generic, preparing to share code between it ↵Brandon Low2006-03-06
| | | | | | and the iRiver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8934 a1c6a512-1295-4272-9138-f99709370657
* Finer grained irq masking, blocking for i2c, plus a mutex to prevent ↵Brandon Low2006-03-05
| | | | | | conflicting read/writes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8922 a1c6a512-1295-4272-9138-f99709370657
* Fix some yellow buildsBrandon Low2006-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8913 a1c6a512-1295-4272-9138-f99709370657
* Basic battery monitoring for ipod 5g, should work on other ipods as well, ↵Brandon Low2006-03-05
| | | | | | but needs testing and stuff. Also improved the RTC driver and moved it to where it belongs, and interrupt protected a bunch of possibly broken i2c. Also start preparing code for ipod charge monitoring. Note: on the 5g, this takes up enough processor time to increase skippiness noticeably in WPS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8911 a1c6a512-1295-4272-9138-f99709370657
* More iPod 3G work from Seven Le MesleDave Chapman2006-02-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8835 a1c6a512-1295-4272-9138-f99709370657
* ADC driver for iAudio X5Linus Nielsen Feltzing2006-02-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8811 a1c6a512-1295-4272-9138-f99709370657
* Remote type autodetection on iriver, remote_type() returns ↵Linus Nielsen Feltzing2006-02-17
| | | | | | REMOTETYPE_H100_LCD, REMOTETYPE_H300_LCD or REMOTETYPE_H300_NONLCD git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8721 a1c6a512-1295-4272-9138-f99709370657
* iAudio X5: Dummy ADC functionsLinus Nielsen Feltzing2006-02-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8573 a1c6a512-1295-4272-9138-f99709370657
* Work-in-progress iriver iFP-7xx port by Tomasz MalesinskiDave Chapman2006-01-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8342 a1c6a512-1295-4272-9138-f99709370657
* H300: ADC driverLinus Nielsen Feltzing2005-11-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7906 a1c6a512-1295-4272-9138-f99709370657
* iPod: Code cleanup - the bootloader now compiles with zero warningsDave Chapman2005-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7812 a1c6a512-1295-4272-9138-f99709370657
* Initial commit of work-in-progress iPod portDave Chapman2005-11-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
* More atomic GPIOLinus Nielsen Feltzing2005-07-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7123 a1c6a512-1295-4272-9138-f99709370657
* Atomic GPIO accessLinus Nielsen Feltzing2005-07-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7114 a1c6a512-1295-4272-9138-f99709370657
* First lame attempt to show correct battery level on the iRiverLinus Nielsen Feltzing2005-04-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6258 a1c6a512-1295-4272-9138-f99709370657
* iRiver: Support for remote control buttonsLinus Nielsen Feltzing2005-02-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5909 a1c6a512-1295-4272-9138-f99709370657
* Jean-Philippe Bernardy: removed bad emu_debugf() callDaniel Stenberg2005-01-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5552 a1c6a512-1295-4272-9138-f99709370657
* Jean-Philippe Bernardy: ADC support for TCC730Daniel Stenberg2005-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5547 a1c6a512-1295-4272-9138-f99709370657
* Added iRiver ADC tick taskLinus Nielsen Feltzing2004-11-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5431 a1c6a512-1295-4272-9138-f99709370657
* Ported to iRiver (unfinished)Linus Nielsen Feltzing2004-11-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5378 a1c6a512-1295-4272-9138-f99709370657
* We must sleep 2 ticks to be really sure that all A/D channels have been ↵Linus Nielsen Feltzing2004-10-01
| | | | | | converted at least once before returning from adc_init() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5136 a1c6a512-1295-4272-9138-f99709370657
* Ensure vaild readings when adc_init() returnsJens Arnold2004-09-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5117 a1c6a512-1295-4272-9138-f99709370657
* Removed the obsolete adcreg[] tableLinus Nielsen Feltzing2004-09-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5100 a1c6a512-1295-4272-9138-f99709370657
* New A/D conversion strategy, now updates all channels every tickLinus Nielsen Feltzing2004-09-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5099 a1c6a512-1295-4272-9138-f99709370657
* More const policeing step 3Jens Arnold2004-08-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4982 a1c6a512-1295-4272-9138-f99709370657
* Reverted to the old ADC driver, since it appeared to cause fake OFF ↵Linus Nielsen Feltzing2004-01-20
| | | | | | keypresses (weird indeed, since the OFF key doesn't use the ADC on the plain Recorder). However, I did fix the batch convert, since it caused fake keypresses at boot time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4260 a1c6a512-1295-4272-9138-f99709370657
* Faster, simplified A/D driver. The previous batch convert in init_adc() ↵Linus Nielsen Feltzing2004-01-13
| | | | | | produced garbage because of the fast conversion time, causing fake keypresses that made ask_resume() return prematurely. This should fix the intermittent resume problem reported by many users. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4222 a1c6a512-1295-4272-9138-f99709370657
* Magnus Holmgren: Just realized one thing: doing AN0-3 last is slightly ↵Jörg Hohensohn2003-07-17
| | | | | | | | | better, as AN0 will then remain valid for the first execution of the tick task function. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3842 a1c6a512-1295-4272-9138-f99709370657
* Removed a compiler warningLinus Nielsen Feltzing2003-07-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3837 a1c6a512-1295-4272-9138-f99709370657
* Patch 772577 by Magnus Holmgren: measure all ADC channels within adc_init(), ↵Jörg Hohensohn2003-07-16
| | | | | | so afterwards adc_read() can be used right away. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3834 a1c6a512-1295-4272-9138-f99709370657
* Removed TAB charsLinus Nielsen Feltzing2002-07-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1280 a1c6a512-1295-4272-9138-f99709370657
* First versionLinus Nielsen Feltzing2002-06-30
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1273 a1c6a512-1295-4272-9138-f99709370657