Commit graph

200 commits

Author SHA1 Message Date
Andree Buschmann
5d849a963e Clean up multiple definitions of RAM size. Remove -DMEM (make) and MEM (code), use the already defined MEMORYSIZE instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29189 a1c6a512-1295-4272-9138-f99709370657
2011-02-02 17:43:32 +00:00
Teruaki Kawashima
01313d5039 * Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does.
* Add backlight_force_on() which forces to turn on backlight even when the setting is set to Off. use this in lamp.
No functional change except lamp.
See aslo FS#9883.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29128 a1c6a512-1295-4272-9138-f99709370657
2011-01-24 12:29:16 +00:00
Michael Stummvoll
cac01b9cc9 set the sampling rate back to default on closing,
even it is not a clean shutdown (cleanshut setted)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28835 a1c6a512-1295-4272-9138-f99709370657
2010-12-15 11:33:22 +00:00
Marcin Bukat
dd61702fb0 HD300 - plugins keymaps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28712 a1c6a512-1295-4272-9138-f99709370657
2010-11-30 10:52:14 +00:00
Michael Stummvoll
a0480c734a applying FS#10489: Rockboy - rotate directional keys when screen is rotated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28695 a1c6a512-1295-4272-9138-f99709370657
2010-11-28 19:49:15 +00:00
Michael Stummvoll
4fe5580fbe Fixing FS#11745 (Rockboy Screen on Sansa Clip+)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28669 a1c6a512-1295-4272-9138-f99709370657
2010-11-26 14:22:40 +00:00
Mustapha Senhaji
7c1c9ccff7 Code Police: C comment style.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28668 a1c6a512-1295-4272-9138-f99709370657
2010-11-26 13:29:35 +00:00
Michael Stummvoll
7704a3ccd7 Added the snapshot patch for rockboy (FS#11757)
Added a simple filesize-check for the options file before loading
to avoid crashes due the changed config


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28664 a1c6a512-1295-4272-9138-f99709370657
2010-11-25 12:45:13 +00:00
Michael Stummvoll
70bbbcdf92 correction from previous commit. Completly removing the splashes is better
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28661 a1c6a512-1295-4272-9138-f99709370657
2010-11-24 17:00:40 +00:00
Michael Stummvoll
0c4e658f84 Rockboy: Changed the time of showing splash messages to 0 to decrase loading time.
now the messages will only shown as long as needed.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28660 a1c6a512-1295-4272-9138-f99709370657
2010-11-24 16:44:10 +00:00
Michael Stummvoll
286eceb04b Rockboy: Added an short stats option which only shows the two numbers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28658 a1c6a512-1295-4272-9138-f99709370657
2010-11-24 16:41:45 +00:00
Michael Stummvoll
5a9805d24e rockoy: boosting the max frameskip option up to 20 Max instead of 6
because 6 is not enough sometimes


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28657 a1c6a512-1295-4272-9138-f99709370657
2010-11-24 13:08:21 +00:00
Michael Stummvoll
72b4c4ff3b Adding an reset option to the rockboy menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28655 a1c6a512-1295-4272-9138-f99709370657
2010-11-24 11:39:40 +00:00
Teruaki Kawashima
5727688e72 rest of FS#11632 by Michael Stummvoll with modification by me.
- don't turn off backlight while playing.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28557 a1c6a512-1295-4272-9138-f99709370657
2010-11-11 12:08:00 +00:00
Teruaki Kawashima
04626ce583 maintain spaces and remove tabs for readability in apps/plugins/rockboy/rockboy.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28555 a1c6a512-1295-4272-9138-f99709370657
2010-11-11 11:35:38 +00:00
Teruaki Kawashima
91bab9b5a5 FS#11632: (rockboy) Some fixes and improvements by Michael Stummvoll
- increase number of slots to save/load state.
- add volume control.
- present old description when overwriting exsinting savegame and don't save when cancelled while input the description.

Flyspray: FS#11632
Author: Michael Stummvoll


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28554 a1c6a512-1295-4272-9138-f99709370657
2010-11-11 10:58:09 +00:00
Teruaki Kawashima
97a783a79a rockboy: fix that description is cut off if it is near 20 bytes in load/save menu.
replace some numbers by #define value.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28521 a1c6a512-1295-4272-9138-f99709370657
2010-11-06 14:20:57 +00:00
Robert Menes
c638e96738 These should be the last of the plugin keymaps required
for the GoGear HDD6330.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28467 a1c6a512-1295-4272-9138-f99709370657
2010-11-03 02:45:53 +00:00
Rafaël Carré
791d425ff1 plugins (doom, midi, rockboy): don't use non-static inline
some functions can be static -> static inline
some functions are external and can't be inlined -> remove inline

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28019 a1c6a512-1295-4272-9138-f99709370657
2010-09-07 14:09:11 +00:00
Rafaël Carré
da16248e47 Plugins: modify IRAM copying code
Move to plugin_crt0.c, plugins don't need PLUGIN_IRAM_* macros anymore
IRAM is no longered zeroed before copying (as it is at the same address
than BSS) -> Fix FS#11581
Use cpucache_invalidate() (and not cpucache_flush), needed for self-modifying code on cached IRAM

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27948 a1c6a512-1295-4272-9138-f99709370657
2010-08-30 20:47:53 +00:00
Rafaël Carré
ab9fd1840b plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:46:45 +00:00
Thomas Martitz
cae4ae2c71 Second try: Introduce plugin_crt0.c that every plugin links.
It handles exit() properly, calling the handler also when the plugin returns
normally (also make exit() more standard compliant while at it).
It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore.

To work better together with callbacks passed to rb->default_event_handler_ex() introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it.
In most cases rb->default_event_handler_ex() was passed a callback which was manually called at all other return points. This can now be done via atexit().

In future plugin_crt0.c could also handle clearing bss, initializing iram and more.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27873 a1c6a512-1295-4272-9138-f99709370657
2010-08-24 14:30:46 +00:00
Thomas Martitz
93cb949372 Revert "Introduce plugin_crt0.c that every plugin links."
Too much errors and no time to fix them now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 17:12:26 +00:00
Thomas Martitz
abdc5935be Introduce plugin_crt0.c that every plugin links.
It handles exit() properly, calling the handler also when the plugin returns
normally (also it makes exit() more standard compliant while at it).
It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore.

To work better together with callbacks passed to rb->default_event_handler_ex introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it.
In most cases it was passed a callback which was manually called at all other return points. This can now be done via atexit().

In future plugin_crt0.c could also handle clearing bss, initializing iram and more.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27862 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 16:56:49 +00:00
Thomas Martitz
35e8b1429a Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently).
The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR).
The new define is to (de-)select code to compile on hosted platforms generally.

Should be no functional change to targets or the simulator.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657
2010-06-21 16:53:00 +00:00
Rafaël Carré
5f4d687cb9 rockboy: use unions instead of type-punning
avoid a warning when using -Os

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26734 a1c6a512-1295-4272-9138-f99709370657
2010-06-10 02:26:15 +00:00
Rafaël Carré
b36e721aa6 rockboy: rename pcm_*() functions to avoid namespace clash with rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26327 a1c6a512-1295-4272-9138-f99709370657
2010-05-27 12:00:23 +00:00
Rafaël Carré
681cedb4d8 Build overlay plugins for all targets with PLUGIN_BUFFER <= 0x10000 bytes
Bring Clipv1 & m200v4 plugin buffer down to this limit
zxbox, chessbox and rockboy build on the clip
rockboy doesn't build on m200v4 due to not enough buttons to make a keymap
Some gameboy roms won't run on Clipv1: tetris does but not pokemon for example

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26144 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 14:14:53 +00:00
Rafaël Carré
a01422c54b plugins: changes for targets with small plugin buffer (Clipv1)
- only enable overlays for targets with very small plugin buffer (<=
  0x10000 bytes, i.e. archos)
- change the condition for rockboy to reflect exactly why it can be
  built or not
- Some plugins need a large plugin buffer, only enable them if the
  buffer is big enough (sizes measured on Clipv1)
- disable MIDI if we have 2MB (or less), we won't be able to load the
  instruments in the audio buffer
- remove unusable lua overlay loader
- sokoban code is bigger on clipv1 than on SH, assume it code is 20kB on
  anything but SH so it builds with buffer smaller than 192kB
- reduce the Clipv1 plugin buffer size from 288kB to 96kb, disabling
  zxbox, chessbox, and fft

zxbox and chessbox have overlays which run on archos, we just need to
enable them on other targets. We'll also be able to run rockboy.

fft won't run as it needs a large plugin buffer for greylib

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26141 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 12:46:53 +00:00
Teruaki Kawashima
20041b96c8 rockboy: fix format strings in snprintf. use int for slot_id and use %d tag for it in format strings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26104 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 12:49:51 +00:00
Rafaël Carré
487b24cbf5 rockboy: add a Clip keymap
the plugin is still disabled, the build condition needs work

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26099 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 10:01:49 +00:00
Thomas Martitz
50a6ca39ad Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 21:04:40 +00:00
Thomas Martitz
0a1d7c28b7 Make open() posix compliant api-wise. A few calls (those with O_CREAT) need the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 17:35:13 +00:00
Szymon Dziok
841cffab5b Packard Bell Vibe 500: More plugin keymaps (second portion).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24634 a1c6a512-1295-4272-9138-f99709370657
2010-02-13 15:46:34 +00:00
Tomer Shalev
47ddbaa47b Cowon D2: Rename COWOND2_PAD -> COWON_D2_PAD to match macro used in manual, and
to target naming conventions in general


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24010 a1c6a512-1295-4272-9138-f99709370657
2009-12-15 20:51:41 +00:00
Robert Menes
ed64d91bc2 Yet more GoGear SA9200 plugin keymaps. Almost done!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23893 a1c6a512-1295-4272-9138-f99709370657
2009-12-07 18:23:25 +00:00
Teruaki Kawashima
5cdd920d12 Correct checking return value of open in plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23874 a1c6a512-1295-4272-9138-f99709370657
2009-12-06 13:52:28 +00:00
Rafaël Carré
2b2b4f5559 rockboy: remove useless assignement for fuze
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23032 a1c6a512-1295-4272-9138-f99709370657
2009-10-09 07:34:08 +00:00
Maurus Cuelenaere
9680244f4a * Fix plugin keymaps for VX777
* Enable plugins for VX777
 * Fix VX777 simulator

All done by Aaron DeMille.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22576 a1c6a512-1295-4272-9138-f99709370657
2009-08-31 21:11:32 +00:00
Nils Wallménius
3200d04d75 Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22440 a1c6a512-1295-4272-9138-f99709370657
2009-08-20 16:47:44 +00:00
Thomas Martitz
98f1aa6025 Fix mistake at checking the return in rockboy. Thanks Al Le for spotting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22273 a1c6a512-1295-4272-9138-f99709370657
2009-08-12 15:00:16 +00:00
Thomas Martitz
18e40e0f4c Make kbd_input() show a cancel splash to indicate user abort better and for better consistency all over the place. Change checking for its return value (style-wise) at some places too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22269 a1c6a512-1295-4272-9138-f99709370657
2009-08-12 14:38:25 +00:00
Karl Kurbjun
729ff6f503 Rockboy: Cleanup red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22215 a1c6a512-1295-4272-9138-f99709370657
2009-08-09 03:35:53 +00:00
Karl Kurbjun
4cded9c7b9 Rockboy: Significantly reduce the number of palette updates, add support for hardware palette mode, screen can now be rotated left or right.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22214 a1c6a512-1295-4272-9138-f99709370657
2009-08-09 03:20:55 +00:00
Karl Kurbjun
4caf3b3aa0 M:Robe 500: Make yes/no screen work better and add appropriate strings for some screens. Rockboy: Improve m:robe 500 default keymap.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22201 a1c6a512-1295-4272-9138-f99709370657
2009-08-08 07:21:37 +00:00
Michael Giacomelli
594b6e2b49 Commit FS#10251. Plugins for the YH-820, YH-920, and YH-925 by Jens Erdmann with improvements and bitmap graphics by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22149 a1c6a512-1295-4272-9138-f99709370657
2009-08-04 03:08:32 +00:00
Nils Wallménius
3d4701a6e4 FS#10080
* Move strncpy() from core to the pluginlib
* Introduce strlcpy() and use that instead in most places (use memcpy in a few) in core and some plugins
* Drop strncpy() from the codec api as no codec used it
* Bump codec and plugin api versions


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21863 a1c6a512-1295-4272-9138-f99709370657
2009-07-14 13:57:45 +00:00
Jonathan Gordon
af9f405651 Accept FS#10094 by Teruaki Kawashima:
Replace the old menu API with the "new" one (a very long time overdue so huge thanks for the work.)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21306 a1c6a512-1295-4272-9138-f99709370657
2009-06-16 04:25:21 +00:00
Michael Giacomelli
39691c9cd0 Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21287 a1c6a512-1295-4272-9138-f99709370657
2009-06-15 05:56:48 +00:00
Thomas Martitz
adb55c518b FS#10327: Patch by Frederick Full to fix the scrollwheel and default
controls in Rockbox on the Fuze.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21286 a1c6a512-1295-4272-9138-f99709370657
2009-06-15 05:17:54 +00:00