summaryrefslogtreecommitdiff
path: root/firmware/usb.c (follow)
Commit message (Collapse)AuthorAge
...
* Only show the usb screen once a real usb connection is established. In case ↵Frank Gevaerts2008-03-02
| | | | | | other threads are slow in acknowledging the SYS_USB_CONNECTED message, tell the OS that the disk is not ready yet (the OS interprets this as "spinning up") git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16471 a1c6a512-1295-4272-9138-f99709370657
* HAVE_POWER isn't defined for any target. It should be HAVE_USB_POWER.Barry Wardell2008-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16442 a1c6a512-1295-4272-9138-f99709370657
* check for HAVE_POWER outside all uses of USBPOWER_BUTTONFrank Gevaerts2008-02-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16436 a1c6a512-1295-4272-9138-f99709370657
* move the usb_core thread functionality to the main usb threadFrank Gevaerts2008-02-27
| | | | | | | | | fix button-detection so screenshots and charge-only mode work without enabling UMS firewire detection is now handled separately from usb detection increase the usb thread priority while an UMS connection is active git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16435 a1c6a512-1295-4272-9138-f99709370657
* New USB stackBjörn Stenberg2007-11-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15758 a1c6a512-1295-4272-9138-f99709370657
* Take out some NOCACHEBSS_ATTR's that were accidentally left. Put some ↵Michael Sevakis2007-10-16
| | | | | | threading code in IRAM that should be there on PP502x. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15155 a1c6a512-1295-4272-9138-f99709370657
* Finally full multicore support for PortalPlayer 502x targets with an eye ↵Michael Sevakis2007-10-16
| | | | | | towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
* Commit a subset of the dual core changes that have to do with cache ↵Michael Sevakis2007-09-28
| | | | | | handling, stacks, firmware startup and thread startup. Tested on e200, H10-20GB, iPod Color and 5.5G. Thread function return implemented for all targets. Some changes to plugins to follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14879 a1c6a512-1295-4272-9138-f99709370657
* FS #7691 - improved USB detection on PP devices. This patch modifies the ↵Dave Chapman2007-09-04
| | | | | | target-tree function usb_detect() on all targets from bool to int, returning USB_INSERTED or USB_EXTRACTED instead of true or false. This was done to enable the PP usb_detect() to check for USB_POWER (either a connection to a USB wall charger, or the user holding "charge mode" button) and return that as a third value. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14600 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7134 - Sansa: external sd card support by Antonius Hellmann with ↵Michael Sevakis2007-06-30
| | | | | | some tweaks. All testers have given the green light. (Now for the RED ?? ;). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13741 a1c6a512-1295-4272-9138-f99709370657
* Moved archos USB handling to target tree. Minor simplification for coldfire ↵Jens Arnold2007-04-11
| | | | | | (only one usb-target.h). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13110 a1c6a512-1295-4272-9138-f99709370657
* Remove unused code (already moved to target tree).Barry Wardell2007-04-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13091 a1c6a512-1295-4272-9138-f99709370657
* It's not necessary (anymore?) to map lcd_icon() to sim_lcd_icon() for the ↵Jens Arnold2007-04-03
| | | | | | simulator. * Removed a stray lcd_icon() call from usb handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13006 a1c6a512-1295-4272-9138-f99709370657
* Make scheduler functions thread safe core wise. A big step towards playback ↵Miika Pekkarinen2007-03-26
| | | | | | running on COP (not yet possible because more protection on file system level is necessary). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12926 a1c6a512-1295-4272-9138-f99709370657
* Rename some macros to account for the recently added M5 port. No code changes.Jens Arnold2007-03-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12809 a1c6a512-1295-4272-9138-f99709370657
* Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - ↵Daniel Ankers2007-03-04
| | | | | | iPod G3 will be coming soon.) This allows threads to be run on either core provided that all communications between the cores is done using uncached memory. There should be no significant change in battery life from doing this. Documentation (on the RockboxKernel wiki page) will follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12601 a1c6a512-1295-4272-9138-f99709370657
* CONFIG_CHARGINGJonathan Gordon2007-02-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12384 a1c6a512-1295-4272-9138-f99709370657
* FS#4770 - Add USB charging for the H300 seriesSteve Bavin2007-02-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12169 a1c6a512-1295-4272-9138-f99709370657
* iPod USB code has already been moved to the target tree so it's not used ↵Barry Wardell2007-01-02
| | | | | | here any more. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11884 a1c6a512-1295-4272-9138-f99709370657
* Convert queues to use intptr_t for event data and return values as most of ↵Michael Sevakis2006-12-19
| | | | | | the time pointer are not passed and it should make some things a bit cleaner. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
* Sansa doesn't use a Wolfson codec. Various other changes to allow Sansa to ↵Daniel Ankers2006-11-22
| | | | | | compile correctly with a normal build. Based on FS#6336 by Pavel Gnelitsa git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11570 a1c6a512-1295-4272-9138-f99709370657
* 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
* 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
* 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
* Detect charger connected on H10. No need to sleep(HZ) when powering off.Barry Wardell2006-09-20
| | | | | | | | More sensible USB support for H10: plugging in puts it into USB charging mode and leaves Rockbox usable, holding 'O' while pluggin in the USB cable will reboot the H10 (continuing to hold 'O' starts it up in UMS mode), holding any other button brings up the USB screen as previously. Implement system_reboot() for all PP5020 devices. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11015 a1c6a512-1295-4272-9138-f99709370657
* New scheduler, with priorities for swcodec platforms. Frequent taskMiika Pekkarinen2006-09-16
| | | | | | | | | | switching should be more efficient and tasks are stored in linked lists to eliminate unnecessary task switching to improve performance. Audio should no longer skip on swcodec targets caused by too CPU hungry UI thread or background threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
* update the gigabeat code and move to target_treeMarcoen Hirschberg2006-08-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10535 a1c6a512-1295-4272-9138-f99709370657
* Get rid of the redundant APPLE_* macros. * Fix wrong comments in lcd-ipod.cJens Arnold2006-04-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9561 a1c6a512-1295-4272-9138-f99709370657
* iPod mini 2G: Properly reboot into diskmode for USB access.Jens Arnold2006-03-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9369 a1c6a512-1295-4272-9138-f99709370657
* USB mode for iAudio X5Linus Nielsen Feltzing2006-03-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9179 a1c6a512-1295-4272-9138-f99709370657
* Fix yellow build as well.Jens Arnold2006-03-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9094 a1c6a512-1295-4272-9138-f99709370657
* Proper charger input, usb and charger activity detection/reporting for ipod ↵Brandon Low2006-03-16
| | | | | | video git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9061 a1c6a512-1295-4272-9138-f99709370657
* Ooops. Fix warning in simsDave Chapman2006-02-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8836 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
* Patch #1435744 from Andrew Scott - initial iPod Mini supportDave Chapman2006-02-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8764 a1c6a512-1295-4272-9138-f99709370657
* Fix red builds - only check for USB_POWERED status if HAVE_USB_POWER is defined.Dave Chapman2006-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8734 a1c6a512-1295-4272-9138-f99709370657
* Patch #1434442 by Mikael Magnusson - Prevent shutdown when charging from USBLinus Nielsen Feltzing2006-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8733 a1c6a512-1295-4272-9138-f99709370657
* iPod 5G: Change USB detection to use pin 1 on GPIOB instead of the USB ↵Dave Chapman2006-02-17
| | | | | | status register. One user reported that USB_STATUS was giving false positives, and never changing when USB was inserted/removed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8713 a1c6a512-1295-4272-9138-f99709370657
* Revert the ATA/USB power fix until I find an even more correct way of doing ↵Linus Nielsen Feltzing2006-02-16
| | | | | | it :-) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8707 a1c6a512-1295-4272-9138-f99709370657
* More correct power handling of the HDD and ISD300 chips on the H300 platformLinus Nielsen Feltzing2006-02-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8688 a1c6a512-1295-4272-9138-f99709370657
* Create config file for iPod 4G greyscale and various iPod 3G/4G greyscale fixesDave Chapman2006-02-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8585 a1c6a512-1295-4272-9138-f99709370657
* Further iPod 3G work from Seven Le MesleDave Chapman2006-02-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8583 a1c6a512-1295-4272-9138-f99709370657
* iAudio X5: various fixes to make the bootloader compileLinus Nielsen Feltzing2006-02-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8560 a1c6a512-1295-4272-9138-f99709370657
* Enable USB charging mode on H300, hold Rec when inserting the USB connector ↵Linus Nielsen Feltzing2006-01-26
| | | | | | to not enter USB mode. This may not always work, since we don't yet know how to control the charging chip correctly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8460 a1c6a512-1295-4272-9138-f99709370657
* Fix reboot-to-diskmode for the Nano and Video - the "diskmode" string is ↵Dave Chapman2006-01-19
| | | | | | written to the end of IRAM, which is larger on the PP5022 devices. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8378 a1c6a512-1295-4272-9138-f99709370657
* Remove a redundant lineHristo Kovachev2006-01-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8371 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: Bootloader USB mode detection on EXTON wakeupLinus Nielsen Feltzing2006-01-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8326 a1c6a512-1295-4272-9138-f99709370657
* iPod: Add USB detection. When inserting the USB cable, hold down MENU to ↵Dave Chapman2006-01-07
| | | | | | charge via USB, otherwise Rockbox will reboot into the Disk Mode application stored in flash git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8303 a1c6a512-1295-4272-9138-f99709370657
* H300 bootloader USB modeLinus Nielsen Feltzing2005-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8168 a1c6a512-1295-4272-9138-f99709370657