summaryrefslogtreecommitdiff
path: root/firmware/timer.c (follow)
Commit message (Collapse)AuthorAge
* Remove the TIMER_* macros and declare target-specific functions in timer.hRafaël Carré2009-06-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21559 a1c6a512-1295-4272-9138-f99709370657
* Remove int_prio argument from timer_register, and move the only use for it ↵Rafaël Carré2009-06-29
| | | | | | | | into alpine_cdc plugin, since this plugin is only built on SH7034 Also remove it from TIMER_START() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21558 a1c6a512-1295-4272-9138-f99709370657
* Move PP (last target) timer code in target treeRafaël Carré2009-06-29
| | | | | | | | | Put warnings in timer.h for incomplete targets (TIMER_FREQ not defined and/or timer-target.h inexistant) Correct TIMER_STOP & TIMER_START macros arguments for target without timers TIMER_START takes an extra argument in multicore builds (macro in macro doesn't work fine..) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21557 a1c6a512-1295-4272-9138-f99709370657
* Move SH7034 timer code in the target treeRafaël Carré2009-06-29
| | | | | | | Add an argument int_prio to TIMER_START() macro because SH7034 needs it Leaves a target specific code in timer_register (could be given to target code through timer_set and __timer_set() ) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21556 a1c6a512-1295-4272-9138-f99709370657
* Move coldfire timer code in the target treeRafaël Carré2009-06-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21555 a1c6a512-1295-4272-9138-f99709370657
* Move PNX0101 timer code in the target treeRafaël Carré2009-06-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21554 a1c6a512-1295-4272-9138-f99709370657
* Rename TIMER_REGISTER macro to TIMER_START and TIMER_UNREGISTER to ↵Rafaël Carré2009-06-29
| | | | | | | | | TIMER_STOP to reflect what they does exactly. registering and unregistering are handled by the non target-specific functions of timer.c Remove arguments from the new TIMER_START since they are unused by targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21553 a1c6a512-1295-4272-9138-f99709370657
* Move Sansa AMS timer code in the target treeRafaël Carré2009-06-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21552 a1c6a512-1295-4272-9138-f99709370657
* Fix bug in earlier commit of FS#10317: don't mix TIMER1 and TIMER2 settingsBertrik Sikken2009-06-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21273 a1c6a512-1295-4272-9138-f99709370657
* FS#10317 - Sansa AMS 32-bit timers. Configure the timers for 32-bit mode ↵Bertrik Sikken2009-06-12
| | | | | | instead of the default 16-bit mode. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21266 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Get timer API working. metronome will work now.Michael Sevakis2009-01-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19676 a1c6a512-1295-4272-9138-f99709370657
* Sansa AMS: correct VIC registers usageRafaël Carré2008-12-05
| | | | | | | * Do not use |= on write only registers * Do use it in when setting kernel tick timer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19350 a1c6a512-1295-4272-9138-f99709370657
* AS3525: timer supportRafaël Carré2008-11-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19025 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Rename CPU/COP_INT_CLR to CPU/COP_INT_DIS since it's really a 'write one to ↵Michael Sevakis2008-06-03
| | | | | | disable' register and hasn't anything to do with acknowledging interrupts-- that's handled at the module level. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17683 a1c6a512-1295-4272-9138-f99709370657
* Commit whole Creative Zen Vision:M target tree + all related firmware/ Maurus Cuelenaere2008-04-24
| | | | | | | changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17241 a1c6a512-1295-4272-9138-f99709370657
* Kill warnings that annoy me when building for Gigabeat S.Michael Sevakis2008-04-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17120 a1c6a512-1295-4272-9138-f99709370657
* Enable nocache sections using the linker. PP5022/4 must use SW_CORELOCK now ↵Michael Sevakis2008-04-06
| | | | | | with shared variables in DRAM (it seems swp(b) is at least partially broken on all PP or I'm doing something very wrong here :\). For core-shared data use SHAREDBSS/DATA_ATTR. NOCACHEBSS/DATA_ATTR is available whether or not single core is forced for static peripheral-DMA buffer allocation without use of the UNCACHED_ADDR macro in code and is likely useful on a non-PP target with a data cache (although not actually enabled in config.h and the .lds's in this commit). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16981 a1c6a512-1295-4272-9138-f99709370657
* Allow to select the core for running the user timer on portalplayer targets. ↵Jens Arnold2008-04-04
| | | | | | * Incompatible plugin API change -> sorted API. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16965 a1c6a512-1295-4272-9138-f99709370657
* Fix empty commit: Add grayscale support for ARM in vertical packing format.Tomasz Malesinski2007-09-22
| | | | | | | Enable grayscale for Iriver ifp. Fix timer_unregister for PNX0101. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14825 a1c6a512-1295-4272-9138-f99709370657
* A few minor cleanups for the Gigabeat SWill Robertson2007-09-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14812 a1c6a512-1295-4272-9138-f99709370657
* Beginning of an M:Robe 500i port. Currently only in the bootloader stage. ↵Karl Kurbjun2007-09-20
| | | | | | Needs another piece of code to start the boot process - will be in the wiki. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14763 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat: Add timer functionality. Rework tick timer setup to be exactly ↵Michael Sevakis2007-07-06
| | | | | | 100Hz. Metronome should work now but some pcm changes are needed to have faster tocks work correctly (in the works). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13806 a1c6a512-1295-4272-9138-f99709370657
* PNX0101 changes:Tomasz Malesinski2007-03-24
| | | | | | | | | | Make PNX0101-specific system.c and crt0.S. Add new register names from LPC2880 user manual. Add support for timer. Enable CPU frequency changing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12904 a1c6a512-1295-4272-9138-f99709370657
* Change if CONFIG_CPU==PP50XX to ifdef CPU_PP where appropriateDaniel Ankers2006-11-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11569 a1c6a512-1295-4272-9138-f99709370657
* reduce the number of gigabeat warningsMarcoen Hirschberg2006-10-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11316 a1c6a512-1295-4272-9138-f99709370657
* Make backlight fading work again on PP targets. The PP timer cannot handle a ↵Jens Arnold2006-09-01
| | | | | | (real) cycle count of 1, the minimum is 2. This is now checked in timer_register() and timer_set_period(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10849 a1c6a512-1295-4272-9138-f99709370657
* Fixed an off-by-one error in the portalplayer timer handling.Jens Arnold2006-09-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10837 a1c6a512-1295-4272-9138-f99709370657
* Fix broken backlight fading on ipod. The timer period setting must not be ↵Jens Arnold2006-08-28
| | | | | | delayed if timer_set_period() is called from within the isr. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10779 a1c6a512-1295-4272-9138-f99709370657
* PP: Make on-the-fly timer period changes glitch-free. Stop timer when not in ↵Jens Arnold2006-08-27
| | | | | | use. * #ifdef cleanup git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10776 a1c6a512-1295-4272-9138-f99709370657
* Ooops. The TMR reset must only be done when starting the timer.Linus Nielsen Feltzing2006-08-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10744 a1c6a512-1295-4272-9138-f99709370657
* Fix the problem with the user timer on X5 by explicitly resetting the timer ↵Linus Nielsen Feltzing2006-08-25
| | | | | | before setting it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10743 a1c6a512-1295-4272-9138-f99709370657
* Simplification for user timer on coldfire. We define TIMER_FREQ separately ↵Jens Arnold2006-04-04
| | | | | | anyway. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9479 a1c6a512-1295-4272-9138-f99709370657
* Add timer.c module support for ipods. Remove uneeded SIMULATOR check.Thom Johansen2006-03-17
| | | | | | | Introduce TIMER_FREQ define. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9067 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
* Fixed warnings on iFP.Tomasz Malesinski2006-02-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8550 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
* Fixup of the MCF5249 memory mapped register definitions.Jens Arnold2005-11-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7755 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: New timer handling on CPU frequency change, adjusting the ↵Jens Arnold2005-10-03
| | | | | | prescaler on the fly, for both tick and user timer. Precondition is that the higher frequencies are integer multiples of the base: now NORMAL is 45 MHz and MAX is 124 MHz. Removes the need for applications with longer timer periods (>= 10 ms) to boost the CPU all the time, e.g. the grayscale lib. Timer counts are now always based on the base frequency (CPU_FREQ). * Adjusted the RAM refresh timers to the new frequencies (all frequencies for H100) * All: Fixed the tick timer count being off by one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7576 a1c6a512-1295-4272-9138-f99709370657
* Moved implementation of user timer to the firmware layer, implemented it for ↵Jens Arnold2005-07-26
iriver, and made it shareable based on priorities. On iriver, the user timer is shared between the backlight fading and other use, so if a plugin registers the timer, the backlight will resort to simple on/off switching until the plugin releases the timer again. Sorted and bumped the plugin api. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7242 a1c6a512-1295-4272-9138-f99709370657